-
-
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] Extra * added in xml files #2771
Comments
So I took a look in detail on this. I attached a breakpoint and waited for the first resource to be detected as private. It was
Which is a private resource specific to that application. So I'm confused why this is attaching a private resource trick when I thought that was isolated to framework references. @MrIkso - Should the #2650 fix been applied only to non-private packageIds? Like we we ignore any on 7F, since its presumed those resources are private and internal. Or am I misunderstanding the patch? |
@iBotPeaches delete commit d294111 For example, aapt2_x64 from new sources, embed it in apktool (just an archiver) and check: |
Thanks @pashamcr, do you have a commit off hand for aapt/aapt2 that resolved this? What led aapt to handling private resources less strict than present? |
@iBotPeaches I don’t remember what I fixed, but there seems to be all the fixes like yours
|
Okay thanks, looks like I'll investigate this and look into a revert and updating aapt2. |
@iBotPeaches Let me know if you want me to test something. |
Checked for
Built
Will be resolved with #2787 |
Information
apktool -version
) - 2.6.1Stacktrace/Logcat
Steps to Reproduce
apktool
Just decode the SystemUI.apk and look into the xml files for the extra * added on code pointing to framework resources like this: android:textSize="@*android:dimen/text_size_.....apktool v2.6.0 : android:textSize="@android:dimen/text_size_body_2_material"
apktool v2.6.1: android:textSize="@*android:dimen/text_size_body_2_material"
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
)Framework and SystemUI uploaded here: https://drive.google.com/drive/folders/114MkIArkcbQeDqO702RTI-e3hllxJtOd?usp=sharing
APK
If this APK can be freely shared, please upload/attach a link to it.
Questions to ask before submission
apktool d
,apktool b
without changing anything? - Yes, same issueThis issue seems to be related to bug reference #2650.
The text was updated successfully, but these errors were encountered: