AnsweredAssumed Answered

MAA 2014.4 - APK App Wrapping fails for Option 2: Smart Container

Question asked by Simon_Pearson Employee on Jan 14, 2015
Latest reply on Jan 21, 2015 by lakva01

Hi,

 

Trying to wrap an APK App that I downloaded from Google Play. The wrapping fails with the following and I wonder if anyone has seen this and might know of a solution:

 

./wrap.sh /tmp/"British Gas_com.centrica.android.britishgas_3.94_25.apk" /tmp/BG_camdo.plist

checking for /usr/java/jdk1.7.0_51/bin/jarsigner ...

checking for /tmp/British Gas_com.centrica.android.britishgas_3.94_25.apk ...

checking for /tmp/BG_camdo.plist ...

checking for emm/conf/mdo.keystore ...

/tmp/emm

Using JAVA_HOME=/usr/java/jdk1.7.0_51

APK File: /tmp/British Gas_com.centrica.android.britishgas_3.94_25.apk

Plist: /tmp/BG_camdo.plist

Keystore: emm/conf/mdo.keystore

Certificate Password: *******

Keystore Password: *******

Alias: mdo

Step 1 of 4: Extracting Target APK: British Gas_com.centrica.android.britishgas_3.94_25.apk

Step 2 of 4: Instrumenting ......

Step 3 of 4: Packaging instrumented APK.

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/emm/bin/android/linux/aapt, p, --min-sdk-version, 8, --target-sdk-version, 17, --version-code, 25, --version-name, 3.94, -F, /tmp/APKTOOL7620881277522410908.tmp, -0, arsc, -I, /root/apktool/framework/1.apk, -S, /tmp/AndroidWrapper_574361228959420947220228384511878___4906062/apktoolExtract/res, -M, /tmp/AndroidWrapper_574361228959420947220228384511878___4906062/apktoolExtract/AndroidManifest.xml]

  at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)

  at brut.androlib.Androlib.buildResources(Androlib.java:374)

  at brut.androlib.Androlib.build(Androlib.java:277)

  at brut.androlib.Androlib.build(Androlib.java:250)

  at brut.apktool.Main.cmdBuild(Main.java:225)

  at brut.apktool.Main.main(Main.java:84)

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/emm/bin/android/linux/aapt, p, --min-sdk-version, 8, --target-sdk-version, 17, --version-code, 25, --version-name, 3.94, -F, /tmp/APKTOOL7620881277522410908.tmp, -0, arsc, -I, /root/apktool/framework/1.apk, -S, /tmp/AndroidWrapper_574361228959420947220228384511878___4906062/apktoolExtract/res, -M, /tmp/AndroidWrapper_574361228959420947220228384511878___4906062/apktoolExtract/AndroidManifest.xml]

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

  at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)

  ... 5 more

Outcomes