desword / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
1 stars 0 forks source link

Cannot recompile few apk's #678

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to recompile the settings.apk from my chinese phone iOcean X7 Youth 
KitKat rom.
I've tried it with few versions of apktool and latest aapt and still nothing :(

The output gives me constantly the following errors:

Exception in thread "main" brut.androlib.AndrolibException: 
brut.androlib.AndrolibException: brut.common.BrutException: could not exec 
command: 
[C:\Users\LHEIMO~1\AppData\Local\Temp\brut_util_Jar_4907742146469967184.tmp, p, 
--forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 19, 
--version-code, 19, --version-name, 4.4.2-eng.iocean.1410270403, -F, 
C:\Users\LHEIMO~1\AppData\Local\Temp\APKTOOL2663941506657197602.tmp, -0, arsc, 
-I, C:\Users\lheimowski\apktool\framework\1.apk, -S, 
C:\xdaAutoAPKTool\_INPUT_APK\Settings\res, -M, 
C:\xdaAutoAPKTool\_INPUT_APK\Settings\AndroidManifest.xml]
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:435)
    at brut.androlib.Androlib.buildResources(Androlib.java:363)
    at brut.androlib.Androlib.build(Androlib.java:286)
    at brut.androlib.Androlib.build(Androlib.java:258)
    at brut.apktool.Main.cmdBuild(Main.java:236)
    at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could 
not exec command: 
[C:\Users\LHEIMO~1\AppData\Local\Temp\brut_util_Jar_4907742146469967184.tmp, p, 
--forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 19, 
--version-code, 19, --version-name, 4.4.2-eng.iocean.1410270403, -F, 
C:\Users\LHEIMO~1\AppData\Local\Temp\APKTOOL2663941506657197602.tmp, -0, arsc, 
-I, C:\Users\lheimowski\apktool\framework\1.apk, -S, 
C:\xdaAutoAPKTool\_INPUT_APK\Settings\res, -M, 
C:\xdaAutoAPKTool\_INPUT_APK\Settings\AndroidManifest.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:470)
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:416)
    ... 5 more
Caused by: brut.common.BrutException: could not exec command: 
[C:\Users\LHEIMO~1\AppData\Local\Temp\brut_util_Jar_4907742146469967184.tmp, p, 
--forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 19, 
--version-code, 19, --version-name, 4.4.2-eng.iocean.1410270403, -F, 
C:\Users\LHEIMO~1\AppData\Local\Temp\APKTOOL2663941506657197602.tmp, -0, arsc, 
-I, C:\Users\lheimowski\apktool\framework\1.apk, -S, 
C:\xdaAutoAPKTool\_INPUT_APK\Settings\res, -M, 
C:\xdaAutoAPKTool\_INPUT_APK\Settings\AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:89)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:464)
    ... 6 more
The system cannot find the drive specified.

===============================================================

What can be done to build up this file? The same error appears when I'm 
recompiling with or without additional resources.
I'm using the latest aapt from SDK (dated 24.06.2014) and apktool 2.0.0b9 with 
assistance of xdaAutoAPKTool to automate the process.

I'm attaching frameworks and the affected file.

Thank in advance for any help!

Original issue reported on code.google.com by luh...@gmail.com on 24 Sep 2014 at 6:41

Attachments:

GoogleCodeExporter commented 9 years ago
Frameworks

Original comment by luh...@gmail.com on 24 Sep 2014 at 6:42

Attachments:

GoogleCodeExporter commented 9 years ago
Add i2 to the apktool.yml before recompile.

Like so

usesFramework:
  ids:
  - 1
  - 2

I'm not quite sure why Apktool misses these references but we already a bug for 
that known as #660

Original comment by connor.tumbleson on 24 Sep 2014 at 12:20

GoogleCodeExporter commented 9 years ago
Thanks a lot! it helped 

Original comment by luh...@gmail.com on 25 Sep 2014 at 5:16