Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binres.py #14

Open
5 of 14 tasks
obfusk opened this issue Feb 27, 2023 · 0 comments
Open
5 of 14 tasks

binres.py #14

obfusk opened this issue Feb 27, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@obfusk
Copy link
Owner

obfusk commented Feb 27, 2023

  • basic functionality
  • fix show/json/xml
  • find out how to use/display Style/Span
  • get_manifest_info(): idver + uses-sdk + features + perms (+ abis)
  • handle versionName being a REFERENCE
  • FLAG_PUBLIC, FLAG_WEAK; FLAG_SPARSE, overlay packages
  • use XMLResourceMapChunk to for e.g. XMLAttrs to resource IDs
  • handle <android:uses-permission>?
  • add anim/ / (file) / type=PNG stuff
  • fully implement & test LibraryChunk
  • incomplete BinResCfg
  • fix FIXMEs (payload size checks, weakrefs)
  • permissions protection level?
  • format updates?

minSdkVersion/targetSdkVersion being a code name instead of a version

  • It seems Android doesn't actually turn a pre-release SDK minSdkVersion or targetSdkVersion like "Q" into an int (29), merely checking if it matches the current non-release platform and returning 10000 (CUR_DEVELOPMENT) if so.
  • apksigner returns one less than the expected API level for minSdkVersion (e.g. N = 23) and doesn't handle non-int targetSdkVersion at all (it errors out and uses minSdkVersion).
  • apksigner has a bug trying to parse the string value as an int value (which only changes the error but is still incorrect).
  • aapt seems to just return "Q" without trying to turn it into an int.
  • what do other tools do?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant