-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[BUG] Qualifier omittion causes conflict (Android 15 AOSP) #3743
Comments
The only way to safely remove that is to remove appt1 support, which may not be too crazy of an idea. |
My man, I removed aapt1 support on our private fork years ago. It has been obsolete for so long already. |
I'll release 2.11.x before end of year - then we can start 3.x and kill aapt1. I just want a smali release and might have to poke those guys so we can get a stable smali cut. |
Yeah, I have to fork smali cause the maintainers sure take their time... |
Conflict happens because Apktool currently doesn't preserve qualifiers as stored in resources.arsc.
While I get that omitting the API version qualifier makes sense in certain instances, apparently AAPT2 wasn't designed that way.
In this example
values-en-rXA-neuter
clashes withvalues-en-rXA-neuter-v33
because the-v33
is being omitted, the only way to decompile this APK is to not manipulate the output qualifiers withsdkVersion >= getNaturalSdkVersionRequirement()
.Source: https://github.com/iBotPeaches/Apktool/blob/master/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/ResConfigFlags.java#L587-L589
APK: https://drive.google.com/file/d/1FVp1ZPv858hpzCuKx2o5BnA3uVtwNxmK/view
Log:
The text was updated successfully, but these errors were encountered: