[Xperia Z Q&A, Help & Troubleshooting] LiLTrippz:
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

_TW

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 http://schemas.an

droid.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas

.android.com/apk/res/android); 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_2638938410267923491.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.xml]

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)

at brut.androlib.Androlib.buildResources(Androlib.java:362)

at brut.androlib.Androlib.build(Androlib.java:285)

at brut.androlib.Androlib.build(Androlib.java:258)

at brut.apktool.Main.cmdBuild(Main.java:233)

at brut.apktool.Main.main(Main.java:88)

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not

exec command: [C:\Users\Alex\AppData\Local\Temp\brut_util_Jar_26389384102679234

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.

xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav

a:481)

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:

\Users\Alex\apktooljb\Settings\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:89)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav

a:475)

... 6 more

I have no idea why!! please someone help me :)