* Supports ASRC with null renamed package.
* Rework ASRC Chunk parser to a loop to break assumption of order of chunks
* Break out unknown skips for alignment to ResourceTypes.h
* Add verbose information for file skips
* Add test for protected apk sample
* Rework chunk parsing for StringBlock
* Refactor AXML Parser to support proper header reading
* Fix parsing if attribute size reported does not align to actual size
* refactor: rename package_ to pkgId
* refactor: ResAttrDecoder takes ResTable
* fix: fallback on attr decoding to proper prefix
* fix: reverse order of processing to trust string pool 2nd
Android prefers the resource map value over what the String block has.
This can be seen quite often in obfuscated apps where values such as:
<item android:state_enabled="true" app:state_collapsed="false" app:state_collapsible="true">
Are improperly decoded when trusting the String block.
Leveraging the resource map allows us to get the proper value.
<item android:state_enabled="true" app:d2="false" app:d3="true">
* refactor: set default value if no string/res value
* extract AaptInvoker and rename MetaFile to ApkInfo, all decode methods from AndrolibResources moved to the ApkDecoder
* extract ARSCData and FlagsOffset from ARSCDecoder and remove unused imports
* rebase to master
* move decodeManifest and decodeResources to the ResourceDecoder
* remove commented old code
Fastst way to fix empty key value splitting for styled strings.
Signed-off-by: Sven Marquardt <dev@mail.smarquardt.space>
Signed-off-by: Sven Marquardt <dev@mail.smarquardt.space>
* Correct falsely-referenced attribute into an entity which is an obfuscated name
* style: correct syntax for custom attributes
* fix: remove unused import
Co-authored-by: MyAnoneNeko <MyAnoneNeko@users.noreply.github.com>
* added option to include permissive network security config file during build
* added tests for app with existing network config and for app without
* minor fixes for pull 2791
* refactor: slim down test app for network config
* style: remove extra newlines
* refactor: moved network tests to aapt2
* refactor: remove unused exceptions
* test (aapt2): ensure aapt2 is used for net-sec-conf
* fix (cli): block use of net-sec-conf on aapt1
* fix conflict
Co-authored-by: Connor Tumbleson <connor@sourcetoad.com>
Co-authored-by: Connor Tumbleson <connor.tumbleson@gmail.com>
* feat: update internal framework to API 31 (12 Release)
* refactor: rename enums for new overlays/stagedAliases
* fix: introduce basic staged alias support
* feat: update internal framework to API 32 (12L Release)
* fix: add support for overlay spec skipping