Skip to content

[BUG] Unresolved style reference (Could not decode attribute value) (TikTok) #4127

@oSumAtrIX

Description

@oSumAtrIX

Using ApkTool v3.0.1 (which supports SDK 36.1) fails to decode and build the resources of TikTok as a consequence:

I: Decoding value resources...
I: Loading resource table from file: C:\Users\oSumAtrIX\AppData\Local\apktool\framework\1.apk
W: Unresolved style reference: key=ResReference{pkg=ResPackage{id=0x7f, name=com.zhiliaoapp.musically}, id=0x0101069a, type=ref}, value=ResPrimitive{type=0x12, data=0xffffffff}
W: Unresolved style reference: key=ResReference{pkg=ResPackage{id=0x7f, name=com.zhiliaoapp.musically}, id=0x0101069a, type=ref}, value=ResPrimitive{type=0x12, data=0x00000000}
I: Decoding file resources...
W: Unresolved attr reference: ns=, name=, id=0x0101069d
W: Could not decode attribute value: ns=, name=, type=0x12, value=0x00000000

What the decoder produced:

Image

What is expected to be decoded:

Image

https://developer.android.com/reference/android/R.attr#useLocalePreferredLineHeightForMinimum was introduced in API 35

Consequence (obviously related to #1407 but different cause likely):

W: C:\Users\oSumAtrIX\Desktop\com.zhiliaoapp.musically_43.7.3-2024307030_minAPI23(arm64-v8a,armeabi-v7a)(nodpi)_apkmirror.com\res\layout\da2.xml:32: error: not well-formed (invalid token).
W: C:\Users\oSumAtrIX\Desktop\com.zhiliaoapp.musically_43.7.3-2024307030_minAPI23(arm64-v8a,armeabi-v7a)(nodpi)_apkmirror.com\res\layout\da2.xml: error: file failed to compile.

I am not exactly sure why this happens because API 36 is supported, but this attribute is introduced with API 35. Reproduce with https://www.apkmirror.com/apk/tiktok-pte-ltd/tik-tok-including-musical-ly/tiktok-44-7-1-release/tiktok-44-7-1-android-apk-download/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions