-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
fix: decoding references to private resources #2650
Conversation
Approved the workfun to run. I remember reverting this fix a few years ago because I improperly added it to ALL resources, this seems like a safer version. |
brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/ResResSpec.java
Outdated
Show resolved
Hide resolved
Do you have a good idea of a way we can test this in our test suite? Like finding a resource that should remain private and adding it to colors.xml? Then testing to make sure it comes out with the asterisk? |
@MrIkso ping here. I am curious if you have a good idea for a test so we don't regress this. |
33f6d46
@iBotPeaches even thought of this for the test... |
thanks! |
This is fixed in aapt/aapt2 https://github.com/pashamcr/AAPTS/tree/windows, and works without this fix with #2637 , |
fix: decoding references to private resources (iBotPeaches#2650)
This reverts commit d294111.
fixed #2033, fixed #2637 of error
error: resource <name> is private.
Use
*
before resource name if rererence to private resources.Expample:
before fix
<color name="gm3_ref_palette_dynamic_tertiary900">@android:color/Indigo_700</color>
after fix
<color name="gm3_ref_palette_dynamic_tertiary900">@*android:color/Indigo_700</color>