Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,771,588 Members 47,940 Now Online
XDA Developers Android and Mobile Development Forum

recompiling settings.apk help

Tip us?
Senior Member - OP
Thanks Meter 14
Posts: 101
Join Date: Jul 2012
Default recompiling settings.apk help

I need help recompiling the settings.apk of android 4.3 sony stock rom. (.101)
This is what I've done so far:

C:\Users\Alex\apktooljb>apktool if framework-res.apk
I: Framework installed to: C:\Users\Alex\apktool\framework\1.apk

C:\Users\Alex\apktooljb>apktool if SemcGenericUxpRes.apk
I: Framework installed to: C:\Users\Alex\apktool\framework\2.apk

C:\Users\Alex\apktooljb>apktool d settings.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Alex\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table from file: C:\Users\Alex\apktool\framework\2.apk
I: Loaded.
I: Done.
I: Copying assets and libs...

That works to decompile the settings.apk
now I need to recompile the settings.apk but I keep getting this error everytime:

C:\Users\Alex\apktooljb>apktool b Settings SettingsNew.apk
I: Using Apktool 2.0.0-Beta7 on Settings
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'bluetooth_sap_profile_summary_not_connected' has no defau
lt translation in C:\Users\Alex\apktooljb\Settings\res; found: en zh_CN zh_HK zh
aapt: warning: string 'sim_change_failed_enable_sim_lock' has no default transla
tion in C:\Users\Alex\apktooljb\Settings\res; found: en zh_CN zh_HK zh_TW
aapt: warning: string 'sim_lock_change_not_supported' has no default translation
in C:\Users\Alex\apktooljb\Settings\res; found: en zh_CN zh_HK zh_TW
Warning: AndroidManifest.xml already defines minSdkVersion (in; using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas; using existing value in manifest.
C:\Users\Alex\apktooljb\Settings\res\values\styles .xml:87: error: Error: Boolean
types not allowed (at 'com.sonyericsson.uxp:switchButtonStyle' with value 'true
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Alex\A
ppData\Local\Temp\brut_util_Jar_263893841026792349 1.tmp, p, --min-sdk-version, 1
8, --target-sdk-version, 18, -F, C:\Users\Alex\AppData\Local\Temp\APKTOOL1725507
020124423921.tmp, -0, arsc, -I, C:\Users\Alex\apktool\framework\1.apk, -I, C:\Us
ers\Alex\apktool\framework\2.apk, -S, C:\Users\Alex\apktooljb\Settings\res, -M,
C:\Users\Alex\apktooljb\Settings\AndroidManifest.x ml]
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:434)
at brut.androlib.Androlib.buildResources(Androlib.jav a:362)
at brut.apktool.Main.cmdBuild(
at brut.apktool.Main.main(
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Alex\AppData\Local\Temp\brut_util_Jar_263 89384102679234
91.tmp, p, --min-sdk-version, 18, --target-sdk-version, 18, -F, C:\Users\Alex\Ap
pData\Local\Temp\APKTOOL1725507020124423921.tmp, -0, arsc, -I, C:\Users\Alex\apk
tool\framework\1.apk, -I, C:\Users\Alex\apktool\framework\2.apk, -S, C:\Users\Al
ex\apktooljb\Settings\res, -M, C:\Users\Alex\apktooljb\Settings\AndroidManifest.
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Alex\App
Data\Local\Temp\brut_util_Jar_2638938410267923491. tmp, p, --min-sdk-version, 18,
--target-sdk-version, 18, -F, C:\Users\Alex\AppData\Local\Temp\APKTOOL172550702
0124423921.tmp, -0, arsc, -I, C:\Users\Alex\apktool\framework\1.apk, -I, C:\User
s\Alex\apktool\framework\2.apk, -S, C:\Users\Alex\apktooljb\Settings\res, -M, C:
at brut.util.OS.exec(
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
... 6 more

I have no idea why!! please someone help me
niaboc79's Avatar
Recognized Developer / Themer
Thanks Meter 30319
Posts: 6,318
Join Date: Sep 2007
Location: Enghien

you are not using the framework-res.apk who comes with the settings.apk, are they both from same build?
- If you like my work, Hit -

- Don't use any part of my work WITHOUT my autorization! | You don't like my reply? Read this

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes