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

[Q] [HELP] compiling phone.apk

Tip us?
 
nav208
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Feb 2014
Default [Q] [HELP] compiling phone.apk

Hello. I want to add new translate values (values-cs) into apk/res/. When decompiling phone.apk with APKtool and compiling back, errors are displayed.

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\honza\AppData\Local\Temp\APKTOOL476163017 5119024446.tmp, -0, arsc, -I, C:\Users\honza\apktool\framework\1.apk, -S, C:\apk3\tools\..\temp\Phone.apk\res, -M, C:\apk3\tools\..\temp\Phone.apk\AndroidManifest.xm l]
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:358)
at brut.androlib.Androlib.buildResources(Androlib.jav a:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\honza\AppData\Local\Temp\APKTOOL476163017 5119024446.tmp, -0, arsc, -I, C:\Users\honza\apktool\framework\1.apk, -S, C:\apk3\tools\..\temp\Phone.apk\res, -M, C:\apk3\tools\..\temp\Phone.apk\AndroidManifest.xm l]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\honza\AppData\Local\Temp\APKTOOL476163017 5119024446.tmp, -0, arsc, -I, C:\Users\honza\apktool\framework\1.apk, -S, C:\apk3\tools\..\temp\Phone.apk\res, -M, C:\apk3\tools\..\temp\Phone.apk\AndroidManifest.xm l]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:355)
... 6 more



My phone.apk is here: suprweb.cz/Phone.apk
I set framework SystemUI.apk and framework-res.apk

Compile of other applications is fine.
Advise anyone?
 
nav208
Old
#2  
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Feb 2014
If you install framework-res.apk and decompile systemUI.apk is ok, but the compilation fails:

Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\honza\AppData\Local\Temp\APKTOOL546925488 5478948063.tmp, -0, arsc, -I, C:\Users\honza\apktool\framework\1.apk, -S, C:\apk3\tools\..\temp\Phone.apk\res, -M, C:\apk3\tools\..\temp\Phone.apk\AndroidManifest.xm l]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:355)

Only with the phone.apk

Any idea? Thanks
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes