[Android Software Development] sieuan:
Hi all,

I have a Lenovo P700, ICS 4.0.3 stock, deodexed. And I have a problem when re-compile framework-res.apk.

I'm using latest version (1.5.2, latest aapt) with framework installed, I can decompile and recompile other apks successfully like SystemUI.apk,... And a can decompile and recompile the framework-res.apk in the 4.0.4 custom rom successfully, but with the stock 4.0.3 (deodexed), after install framework-res.apk and mediatek-res.apk, I can decompile framework-res.apk without any error, but I can't recompile it, even when I keep it original without editing anything.

Here is my screenshot:

Here the log from ApkManagerWanam

--------------------------------------------------------------------------
|24/05/2013 -- 16:30:32,25|
--------------------------------------------------------------------------
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing)
Could Not Find C:\Users\nguyen\Downloads\Compressed\ApkManagerWanam\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\nguyen\AppData\Local\Temp\APKTOOL9042299258849906978.tmp, -x, -S, C:\Users\nguyen\Downloads\Compressed\ApkManagerWanam\other\..\projects\framework-res.apk\res, -M, C:\Users\nguyen\Downloads\Compressed\ApkManagerWanam\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:357)
at brut.androlib.Androlib.buildResources(Androlib.java:282)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:218)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\nguyen\AppData\Local\Temp\APKTOOL9042299258849906978.tmp, -x, -S, C:\Users\nguyen\Downloads\Compressed\ApkManagerWanam\other\..\projects\framework-res.apk\res, -M, C:\Users\nguyen\Downloads\Compressed\ApkManagerWanam\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:349)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:335)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\nguyen\AppData\Local\Temp\APKTOOL9042299258849906978.tmp, -x, -S, C:\Users\nguyen\Downloads\Compressed\ApkManagerWanam\other\..\projects\framework-res.apk\res, -M, C:\Users\nguyen\Downloads\Compressed\ApkManagerWanam\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:347)
... 6 more
The system cannot find the file specified.

I also tried with ApkManager, ApkMultitool, ApkManagerICS, ApkManagerWanam, EasyApkDisassembler,... but also failed

Here is my file: http://www.mediafire.com/download/9pim59iz4vdpnx2/framework-res_mediatek-res_P700.zip

can anyone help me test recompile it? Thanks!

///Sorry for my bad English.