question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] android:localeConfig in Manifest

See original GitHub issue

Information

  1. Apktool Version (apktool -version) -2.6.1 and older
  2. Operating System (Mac, Linux, Windows) - Mac
  3. APK From? (Playstore, ROM, Other) - Playstore

Stacktrace/Logcat

Include stacktrace here
W: /xxx/BookmarkFolder_v5.0.5_129/res/xml/locales_config.xml:3: error: unbound prefix.
W: /xxx/BookmarkFolder_v5.0.5_129/res/xml/locales_config.xml: error: file failed to compile.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/sm/q39kpprx0175hypt_zz76qb00000gn/T/brut_util_Jar_70428711240655456118660710679018899199.tmp, compile, --dir, /xxx/BookmarkFolder_v5.0.5_129/res, --legacy, -o, /xxx/BookmarkFolder_v5.0.5_129/build/resources.zip]

### Steps to Reproduce
1. `apktool  -advance   b   -d  -p /Applications/Tools/TelefonApps/MyApkTool.app/Contents/Resources/framework/ --use-aapt2 '/xxx/BookmarkFolder_v5.0.5_129/'

### 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`)

### APK
If this APK can be freely shared, please upload/attach a link to it.
BookmarkFolder_v5.0.5_129.apk

### Questions to ask before submission
1. Have you tried `apktool d`, `apktool b` without changing anything? yes
2. If you are trying to install a modified apk, did you resign it? not possible
3. Are you using the latest apktool version? yes tried also older versions

Error file : /xxx/BookmarkFolder_v5.0.5_129/res/xml/locales_config.xml
W: /xxx/BookmarkFolder_v5.0.5_129/res/xml/locales_config.xml:3: error: unbound prefix.
<?xml version="1.0" encoding="utf-8"?>
<locale-config>
    <locale android:name="ca" />
    <locale android:name="da" />
    <locale android:name="fa" />
   ....
</locale-config>

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:19 (4 by maintainers)

github_iconTop GitHub Comments

24reactions
Gourovcommented, Mar 4, 2022

I have encounter a same problem with this app … https://play.google.com/store/apps/details?id=org.hostedgames.zexsh

Its a split and problem with base.apk …


I: Using Apktool 2.6.1
I: Smaling smali folder into classes.dex...
I: Building resources...
W: D:\InstallationFiles\ApkEasyTool_v1.59.2\1-Decompiled APKs\base\res\xml\locales_config.xml:3: error: Error parsing XML: unbound prefix
W: 
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Gourov\AppData\Local\Temp\brut_util_Jar_159871407586383149737413562893265274635.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 30, --version-code, 26, --version-name, 3.0.2, --no-version-vectors, -F, C:\Users\Gourov\AppData\Local\Temp\APKTOOL8716755988559573126.tmp, -e, C:\Users\Gourov\AppData\Local\Temp\APKTOOL1637710390933913995.tmp, -0, arsc, -I, C:\Users\Gourov\AppData\Local\apktool\framework\1.apk, -S, D:\InstallationFiles\ApkEasyTool_v1.59.2\1-Decompiled APKs\base\res, -M, D:\InstallationFiles\ApkEasyTool_v1.59.2\1-Decompiled APKs\base\AndroidManifest.xml]

For now , It can be fixed by following the steps below… delete file \res\xml\locales_config.xml open file \res\values\public.xml and delete line <public type="xml" name="locales_config" id="0x7f110003" /> open file AndroidManifest.xml and delete declaration android:localeConfig="@xml/locales_config"

Will be really happy if this issue solves in next update 😃

3reactions
wortel-zacommented, Jul 4, 2022

update internal framework to API 33 (Tiramisu Privacy Preview) has solved this problem. No further action needed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android locale_config.xml Unbound Prefix Error - Stack Overflow
I am currently pentesting an Android app. I decompiled the app without any issues and whenever I try to recompile it back, the...
Read more >
LocaleConfig - Android Developers
The LocaleConfig of an application. Defined in an XML resource file with an <locale-config> element and referenced in the manifest via android:localeConfig ......
Read more >
Missing localeConfig attribute in merged manifest [245673005]
Problem description. When the android:localeConfig attribute is set in a library project then it is not included in the merged AndroidManifest.
Read more >
Untitled
Usually this means you have forgotten to include it in the locale config file. ... <manifest xmlns:android="http://schemas.android.com/apk/res/android" ...
Read more >
AndroidManifest.xml:19: error: No resource identifier found for ...
'See this link for for more information: http://www.basic4ppc.com/forum/showthread.php?p=78136 AddManifestText( <uses-sdk android:minSdkVersion= ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found