lnln1111 / android-apktool

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

Undo Android 4.0 apks failure #258

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Install the Android 4 framework - res.apk
2.Undo talk.apk completed
3.Without any modification, reconstruction of talk.apk failure

What is the expected output? What do you see instead?

invalid resource directory name: E:\\t\res/drawable-sw600dp-xhdpi
invalid resource directory name: E:\\t\res/layout-sw600dp
invalid resource directory name: E:\\t\res/values-sw600dp
invalid resource directory name: E:\\t\res/values-sw600dp-land
invalid resource directory name: E:\\t\res/values-sw600dp-port
invalid resource directory name: E:\\t\res/values-sw800dp
invalid resource directory name: E:\\t\res/values-sw800dp-land
invalid resource directory name: E:\\t\res/values-sw800dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\ADMINI~1\AppData\Local\Tem
p\APKTOOL65106.tmp, -I, d:\Users\Android\apktool\framework\1.apk, -S, E:\\t\res,
 -M, E:\\t\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
        at brut.androlib.Androlib.buildResources(Androlib.java:248)
        at brut.androlib.Androlib.build(Androlib.java:171)
        at brut.androlib.Androlib.build(Androlib.java:154)
        at brut.apktool.Main.cmdBuild(Main.java:182)
        at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, 
C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL65106.tmp, -I, 
d:\Users\Android\apktool\framework\1.apk, -S, E:\\t\res, -M, 
E:\\t\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:83)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
        ... 6 more

What version of the product are you using? On what operating system?
apktool 1.4.3 jar
windows

Please provide any additional information below.
My phone is Samsung GT-I897
ICS-4.0.1-BATE2 is apks

Original issue reported on code.google.com by l6306...@gmail.com on 8 Dec 2011 at 2:17

GoogleCodeExporter commented 9 years ago
Update your aapt tool. It's in SDK.

Original comment by Brut.alll on 8 Dec 2011 at 3:36

GoogleCodeExporter commented 9 years ago
Use the last apktool but also the last aapt.exe.
It solves the problem.

Original comment by juju9784 on 17 Dec 2011 at 8:28

GoogleCodeExporter commented 9 years ago
I'm having the same issue rebuilding SystemUI.apk from a 4.0.2 rom. I have 
latest aapt and apktool. Running lubuntu 11.10 x64.

Original comment by tristan...@gmail.com on 21 Dec 2011 at 9:30

GoogleCodeExporter commented 9 years ago
i'm having the same fucking issue Email.apk from a 4.0.3 rom :( 
latest updates from aapt and apktool are installed 

Original comment by kleena...@gmail.com on 16 Apr 2012 at 8:04

GoogleCodeExporter commented 9 years ago
aapt is out of date. Update all your aapt instances to the newest one provided 
in Android SDK.

Original comment by connor.tumbleson on 17 Nov 2012 at 5:28