[Galaxy S I9000 Q&A, Help & Troubleshooting] E.Z.:
Hi,

I'm trying to add a dictionary to LatinImeGoogle.apk from ICSSGS' latest port (RC4.2 for I9000), and I manage to disassemble the apk, but not to reassemble.

This happens even if I didn't change anything inside.

Also, I get errors on both Windows and Linux.

Please help!

Thanx

Windows error:

c:\Windows>apktool b -f c:\da_apks\LatinImeGoogle

I: Smaling...

I: Building resources...

invalid resource directory name: c:\da_apks\LatinImeGoogle\res/layout-sw768dp

invalid resource directory name: c:\da_apks\LatinImeGoogle\res/values-sw600dp

invalid resource directory name: c:\da_apks\LatinImeGoogle\res/values-sw600dp-la

nd

invalid resource directory name: c:\da_apks\LatinImeGoogle\res/values-sw768dp

invalid resource directory name: c:\da_apks\LatinImeGoogle\res/values-sw768dp-la

nd

invalid resource directory name: c:\da_apks\LatinImeGoogle\res/xml-sw600dp

invalid resource directory name: c:\da_apks\LatinImeGoogle\res/xml-sw600dp-land

invalid resource directory name: c:\da_apks\LatinImeGoogle\res/xml-sw768dp

invalid resource directory name: c:\da_apks\LatinImeGoogle\res/xml-sw768dp-land

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce

ption: could not exec command: [aapt, p, -F, C:\Users\Erez\AppData\Local\Temp\AP

KTOOL5255303126555889179.tmp, -I, C:\Users\Erez\apktool\framework\1.apk, -S, c:\

da_apks\LatinImeGoogle\res, -M, c:\da_apks\LatinImeGoogle\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:\U

sers\Erez\AppData\Local\Temp\APKTOOL5255303126555889179.tmp, -I, C:\Users\Erez\a

pktool\framework\1.apk, -S, c:\da_apks\LatinImeGoogle\res, -M, c:\da_apks\LatinI

meGoogle\AndroidManifest.xml]

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

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

a:191)

... 6 more

And the Linux (Ubuntu) error:

e@ubuntu:~/Desktop$ sudo apktool b ./extraction

I: Checking whether sources has changed...

I: Checking whether resources has changed...

I: Building resources...

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL6670999592100072401.tmp, -I, /root/apktool/framework/1.apk, -S, /home/e/Desktop/./extraction/res, -M, /home/e/Desktop/./extraction/AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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, /tmp/APKTOOL6670999592100072401.tmp, -I, /root/apktool/framework/1.apk, -S, /home/e/Desktop/./extraction/res, -M, /home/e/Desktop/./extraction/AndroidManifest.xml]

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

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)

... 6 more

Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException: error=13, Permission denied

at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)

at java.lang.Runtime.exec(Runtime.java:593)

at java.lang.Runtime.exec(Runtime.java:466)

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

... 7 more

Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied

at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)

at java.lang.ProcessImpl.start(ProcessImpl.java:65)

at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)

... 10 more