Skip to content
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

Failed on building resource on new Youtube apk: /decode/AndroidManifest.xml:110: error: No resource identifier found for attribute 'localeConfig' in package 'android' #2948

Closed
kurokawaikki opened this issue Nov 22, 2022 · 1 comment

Comments

@kurokawaikki
Copy link

kurokawaikki commented Nov 22, 2022

Information

  1. Apktool Version (apktool -version) - 2.6.1
  2. Operating System (Mac, Linux, Windows) - Linux Ubuntu 20
  3. APK From? (Playstore, ROM, Other) - Playstore (APKpure) Latest Youtube.apk

Stacktrace/Logcat
AAPT Fail Log

I: Using Apktool 2.6.1
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
W: /tmp/apk-mitm-a08049b6e1c03e961a067f5d17c307a1/decode/AndroidManifest.xml:110: error: No resource identifier found for attribute 'localeConfig' in package 'android'
W:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_35286588615310776327142288642863233101.tmp, p, --forced-package-id, 127, --min-sdk-version, 26, --target-sdk-version, 33, --version-code, 1532882368, --version-name, 17.46.37, --no-version-vectors, -F, /tmp/APKTOOL1225376266855875034.tmp, -e, /tmp/APKTOOL4493366663668791664.tmp, -0, arsc, -I, /tmp/apk-mitm-a08049b6e1c03e961a067f5d17c307a1/framework/1.apk, -S, /tmp/apk-mitm-a08049b6e1c03e961a067f5d17c307a1/decode/res, -M, /tmp/apk-mitm-a08049b6e1c03e961a067f5d17c307a1/decode/AndroidManifest.xml]

AAPT2 Fail Log

I: Using Apktool 2.6.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes4 folder into classes4.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes5 folder into classes5.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes6 folder into classes6.dex...
I: Checking whether resources has changed...
I: Building resources...
W: /tmp/apk-mitm-a08049b6e1c03e961a067f5d17c307a1/decode/AndroidManifest.xml:110: error: attribute android:localeConfig not found.
W: error: failed processing manifest.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_68536508599718786451667626956903997355.tmp, link, -o, /tmp/APKTOOL4965221470455852019.tmp, --package-id, 127, --min-sdk-version, 26, --target-sdk-version, 33, --version-code, 1532882368, --version-name, 17.46.37, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, -e, /tmp/APKTOOL11585256144456715087.tmp, -0, arsc, -I, /tmp/apk-mitm-a08049b6e1c03e961a067f5d17c307a1/framework/1.apk, --manifest, /tmp/apk-mitm-a08049b6e1c03e961a067f5d17c307a1/decode/AndroidManifest.xml, /tmp/apk-mitm-a08049b6e1c03e961a067f5d17c307a1/decode/build/resources.zip]

Steps to Reproduce

  1. apk-mitm y.apk --apktool /usr/local/bin/apktool.jar
  2. apktool b (in the working directory of apk-mitm also don't work)

APK
If this APK can be freely shared, please upload/attach a link to it.
https://m.apkpure.com/youtube/com.google.android.youtube

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything?
    Yes, I tried. But if I use apktool to decode the apk without apk-mitm, the decoding itself is not working...... Error log is here:
I: Using Apktool 2.6.1 on y.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x5b5dedc0
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x00000036
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x5b5dedc0
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x00000036
W: Could not decode attr value, using undecoded value instead: ns=android, name=compileSdkVersion, value=0x00000021
W: Could not decode attr value, using undecoded value instead: ns=android, name=compileSdkVersionCodename, value=0x0000003e
W: Could not decode attr value, using undecoded value instead: ns=android, name=minSdkVersion, value=0x0000001a
W: Could not decode attr value, using undecoded value instead: ns=android, name=targetSdkVersion, value=0x00000021
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x000000ef
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x000000ec
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x000000ed
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x000000f0
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x000000eb
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x000000ee
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000069
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000096
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000096
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000096
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000096
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x000000b3
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x000000b4
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x000000f8
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x000000b5
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x000000b0
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000071
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000063
W: Could not decode attr value, using undecoded value instead: ns=android, name=mimeType, value=0x00000184
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000005c
W: Could not decode attr value, using undecoded value instead: ns=android, name=mimeType, value=0x00000184
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000006a
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000094
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000065
W: Could not decode attr value, using undecoded value instead: ns=android, name=mimeType, value=0x00000196
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000006a
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000006c
W: Could not decode attr value, using undecoded value instead: ns=android, name=scheme, value=0x00000180
W: Could not decode attr value, using undecoded value instead: ns=android, name=host, value=0x000001a1
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000096
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000081
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000078
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000079
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000093
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000088
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000089
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000008b
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000083
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000007e
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000082
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000008f
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000151
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x000000f6
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000092
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000085
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000007b
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000091
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000100
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x000000ff
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000167
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000007f
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000007d
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000090
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000008e
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000084
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000087
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000077
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000076
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000008c
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000008a
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000008d
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000080
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000017a
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000017b
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000178
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000179
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000017c
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000017d
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000086
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000004e
W: Could not decode attr value, using undecoded value instead: ns=android, name=required, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000053
W: Could not decode attr value, using undecoded value instead: ns=android, name=required, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000054
W: Could not decode attr value, using undecoded value instead: ns=android, name=required, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000052
W: Could not decode attr value, using undecoded value instead: ns=android, name=required, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x0000004f
W: Could not decode attr value, using undecoded value instead: ns=android, name=required, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000050
W: Could not decode attr value, using undecoded value instead: ns=android, name=required, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000051
W: Could not decode attr value, using undecoded value instead: ns=android, name=required, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000167
W: Could not decode attr value, using undecoded value instead: ns=android, name=protectionLevel, value=0x00000002
W: Could not decode attr value, using undecoded value instead: ns=android, name=glEsVersion, value=0x00020000
W: Could not decode attr value, using undecoded value instead: ns=android, name=required, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x7f150650
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x7f140163
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x7f110008
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x000000ba
W: Could not decode attr value, using undecoded value instead: ns=android, name=backupAgent, value=0x000000c9
W: Could not decode attr value, using undecoded value instead: ns=android, name=allowBackup, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=restoreAnyVersion, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=logo, value=0x7f0800b4
W: Could not decode attr value, using undecoded value instead: ns=android, name=hardwareAccelerated, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=largeHeap, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=supportsRtl, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=networkSecurityConfig, value=0x7f170012W: Could not decode attr value, using undecoded value instead: ns=android, name=roundIcon, value=0x7f11000a
W: Could not decode attr value, using undecoded value instead: ns=android, name=requestLegacyExternalStorage, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=localeConfig, value=0x7f170010
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x00000070
W: Could not decode attr value, using undecoded value instead: ns=android, name=value, value=0x40066666
W: Could not decode attr value, using undecoded value instead: ns=android, name=name, value=0x000000f1
W: Could not decode attr value, using undecoded value instead: ns=android, name=value, value=0x0000003b
Exception in thread "main" java.lang.NullPointerException
        at java.base/java.util.regex.Matcher.getTextLength(Matcher.java:1770)
        at java.base/java.util.regex.Matcher.reset(Matcher.java:416)
        at java.base/java.util.regex.Matcher.<init>(Matcher.java:253)
        at java.base/java.util.regex.Pattern.matcher(Pattern.java:1134)
        at brut.androlib.res.decoder.AndroidManifestResourceParser.isNumericStringMetadataAttributeValue(AndroidManifestResourceParser.java:56)
        at brut.androlib.res.decoder.AndroidManifestResourceParser.getAttributeValue(AndroidManifestResourceParser.java:41)
        at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
        at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)        at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
        at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:80)
        at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:139)
        at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:151)
        at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:159)
        at brut.androlib.res.AndrolibResources.decodeManifestWithResources(AndrolibResources.java:193)
        at brut.androlib.Androlib.decodeManifestWithResources(Androlib.java:141)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:109)
        at brut.apktool.Main.cmdDecode(Main.java:175)
        at brut.apktool.Main.main(Main.java:79)
  1. If you are trying to install a modified apk, did you resign it? Yes, I want to. But the building is failed.
  2. Are you using the latest apktool version? yes
@iBotPeaches
Copy link
Owner

The first set of issues are known here - #2756

The 2nd set of issues was fixed here - fc1e21e

So closing for already fixed / duplicate.

@iBotPeaches iBotPeaches closed this as not planned Won't fix, can't repro, duplicate, stale Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants