sky201503 / android-apktool-1

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

Can't recreate Osmand apk #361

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Remove the unneeded binaries from the /lib/ folder of Osmand after 
decompiling. (It should only need the binaries for the cpu it runs on.)
2. Compile it back to an APK, with APKtool.

What is the expected output? What do you see instead?
On 1.5, it gives:
Exception in thread "main" brut.androlib.AndrolibException: 
brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 
4, --target-sdk-version, 4, -F, ...

with stack trace:
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
    at brut.androlib.Androlib.buildResources(Androlib.java:269)
    at brut.androlib.Androlib.build(Androlib.java:192)
    at brut.androlib.Androlib.build(Androlib.java:174)
    at brut.apktool.Main.cmdBuild(Main.java:188)
    at brut.apktool.Main.main(Main.java:70)

A previous version worked (1.4.3), after signing apk with:
jarsigner -verbose -keystore ~/.android/debug.keystore -storepass android 
-digestalg SHA1 -sigalg MD5withRSA ./out.apk androiddebugkey

The apk installs, but it force-closed because some string resource didn't exist.

What version of the product are you using? On what operating system?
1.5 on Ubuntu 12.10.

Original issue reported on code.google.com by luke...@msn.com on 1 Dec 2012 at 8:43

GoogleCodeExporter commented 9 years ago
I need either

1) The APK
2) The entire error message

Original comment by connor.tumbleson on 4 Dec 2012 at 5:49

GoogleCodeExporter commented 9 years ago
Here's the apk from their site:
http://download.osmand.net/latest-night-build/OsmAnd-development.apk

Original comment by luke...@msn.com on 4 Dec 2012 at 7:06

GoogleCodeExporter commented 9 years ago
Built fine for me w/ minor translation warnings.

v1.5.1 I used

Original comment by connor.tumbleson on 30 Dec 2012 at 3:13