-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
new: featureFlags support for SDK 35 apps #3706
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
Conversation
This records all featureFlag attrs that were enabled when the APK was originally built. This is now required by AAPT2 to pass these flags and their enabled/disabled state if they are used in AndroidManifest.xml. The flags are recorded to apktool.yml and can be configured, if so desired. In normal usage, all flags should remain set to true (i.e. enabled). Sample APK sourced from AOSP Android 15. https://drive.google.com/file/d/1av7Ih7-YUXi73Hf0E3xlPv-V-nE_sXdt/view
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we'll need to add a sample test for this to ensure we can decode/build it. So we can adapt the testapp or a new apk sample.
Done. You'll notice that if you rename or remove "brut.feature.flag" from apktool.yml, AAPT2 will fail to rebuild the manifest. |
thanks! |
If it's helpful, the NFC apk from Android 15 on a Pixel 9 Pro XL fails to build with the current apktool snapshot:
⠀
⠀
|
This update didn't seem to work on my Pixel 8 Pro on the SystemUIGoogle apk......Android 15 January update. No changes, just decompile, then recompile. I: Using Apktool v2.11.0-3-4b2c9abe-SNAPSHOT on SystemUIGoogle.apk with 4 threads |
I turned this discussion into a new bug since we are just commenting on a merged PR and it got lost. |
Thank you, sir! I was also wondering what happened to the missing attributes problem. Even after fixing the feature flag errors, the dozens of attribute problems show up....should I open a bug report or is this a known problem? Compiling first pass... |
This records all featureFlag attrs that were enabled when the APK was originally built. This is now required by AAPT2 to pass these flags and their enabled/disabled state if they are used in AndroidManifest.xml.
The flags are recorded to apktool.yml and can be configured, if so desired. In normal usage, all flags should remain set to true (i.e. enabled).