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

Expand use_aapt2 cli arg for which aapt version we use for badge dumping #703

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mitchcapper
Copy link

Fixes newer apk patching that aapt cannot handle

There are various reasons aapt dump badging may fail with newer APKs. Given google has moved on to aapt2 for nearly everything we should be using it instead of aapt for dumping I would assume. I don't know if there is ever a negative for using aapt2 dump badging but this was a simple call. We already have a --use-aapt2 command used for when we call apktool lets just hijack that arg to also decide if we use it for badge dumping. This should resolve a few of the bugs were people may not have been able to patch apks due to Unable to determine launchable activity without manually specifying the target class.

If someone thinks aapt2 might be more likely to fail during dumping for some reason we could add a second use-aapt2 flag just for this but that seems like overkill.

Fixes newer apk patching that aapt cannot handle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant