-
-
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] Cannot recompile Pixel SystemUI #3392
Comments
This is common when the upgraded build tools (aapt2) are more strict than the original tools used to build application. As those errors suggest - this application is using private resources, which should be avoided and rather copied into project. However, as you might imagine - changing every application you choose to decode to build up to the modern build tool standards may be insane. So I prepped a workaround to aapt2 to remove this restriction - iBotPeaches/platform_frameworks_base#14 Also saying that though - who knows if this will work or just move the problem downstream. So tldr - holding for a bit. |
That test semi-worked. You just moved to a new issue, which is a known one in the backlog affecting more and more applications.
|
Can you share the updated apktool with resolved resource referencing error? Thanks |
Sorry I cannot. That build was only with Linux binaries and posting dirty test builds I tend to avoid. |
I concur. Doesn't look like anything to do with Apktool, and I don't actually understand how such APKs are even valid when they clearly have missing attribute resources... and I have no logical solutions for that. |
@IgorEisberg - I'm investigating those odd issues in #3129 (comment). I'm just going to retrace some steps and dig into alias attributes, splits, etc and see if I'm missing something. |
Strangely, when I search the missing attributes in resources.arsc using a hex editor, I can find them. Example:
But the decompiled attribute in XML is:
So when trying to recompile the APK:
|
I'm just happy to know I wasn't going crazy and couldn't make sense of those attributes. |
Nah, I'm going crazy for a while now trying to make sense of this. |
Information
apktool -version
) - 2.9.0java --version
) - 11.0.20.1Stacktrace/Logcat
Steps to Reproduce
apktool d SystemUIGoogle.apk
apktool b SystemUIGoogle
Also tried importing frameworks-res.apk from same build but same error
Frameworks
If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files
(
.apks
that live in/system/framework
or/system/priv-app
)APK
If this APK can be freely shared, please upload/attach a link to it.
APK Link
Questions to ask before submission
apktool d
,apktool b
without changing anything? yesThe text was updated successfully, but these errors were encountered: