-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
Certain apps, primarily system apps, may produce a warning during decoding.
Example from Android 15:
I: Loading resource table from file: bin\framework\1.apk
I: Decoding file resources...
W: Unresolved attr reference: ns=android, name=dreamCategory, id=0x01b70003
W: Could not decode attribute value: ns=android, name=dreamCategory, type=0x11, value=0x00000002
Thing is, 0x01b70003 is a staged alias.
https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-15.0.0_r36/core/res/res/values/public-staging.xml#112
Currently we skip over RES_TABLE_STAGED_ALIAS_TYPE which means we lose all staged aliases in framework-res.apk. We would need to support this chunk to get rid of those warnings.
When finalized, they are part of public.xml (aka public-final.xml) and come in the form of:
<staging-public-group-final type="attr" first-id="0x01ff0000">
<public name="exampleAttr1"/>
<public name="removed_exampleAttr2"/>
<public name="exampleAttr3"/>
</staging-public-group-final>
<public type="attr" name="exampleAttr1" id="0x0101088a"/>
<public type="attr" name="exampleAttr3" id="0x0101088b"/>
Read more in head comment:
https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-15.0.0_r36/core/res/res/values/public-staging.xml#59
Reactions are currently unavailable