Containerization failed for Mobile Bi Apk (Doc ID 2056387.1)

Last updated on OCTOBER 14, 2015

Applies to:

Oracle Mobile Security Suite - Version 3.0.0.0.0 to 3.0.0.0.0
Information in this document applies to any platform.

Symptoms

Attempt to containerized Mobile BI apk with c14n tool (v3.0.7.8.15826) failed with error.

Download Oracle Bi Mobile apk from http://www.oracle.com/technetwork/middleware/bi-enterprise-edition/downloads/bi-mobile-security-toolkit-1872818.html

Using command below:

c14n -c injectonly -i Oracle_BI_Mobile_signed.apk -o Oracle_BI_Mobile_singed_C14n_inject.apk -keystore dev.keystore -storepass welcome1 -storealias development -v

Error
-----
Running containerization engine. This may take a few minutes...
Error: Containerization failed!!
Error: Message : 2015-08-21 17:50:29,116 INFO com.bitzermobile.c14n.engine.C14nConfig -  java.io.tmpdir=/var/folders/gv/9dqwjvx54vs5f3h3nf5t2h300000gn/T/
2015-08-21 17:50:29,117 INFO com.bitzermobile.c14n.engine.C14nConfig - apktool.path=null
2015-08-21 17:50:29,117 INFO com.bitzermobile.c14n.engine.C14nConfig - apktool.path=null
2015-08-21 17:50:29,117 INFO com.bitzermobile.c14n.engine.C14nConfig - aapt.path=/opt/Oracle/omss/sbin/aapt
2015-08-21 17:50:29,117 INFO com.bitzermobile.c14n.engine.C14nConfig - c14n.processor.class=null
2015-08-21 17:50:29,117 INFO com.bitzermobile.c14n.engine.C14nConfig - c14n.subscriber.class=null
2015-08-21 17:50:29,117 INFO com.bitzermobile.c14n.engine.C14nConfig - log.all.exception=false
2015-08-21 17:50:29,117 INFO com.bitzermobile.c14n.engine.C14nConfig - secure.storage=true
2015-08-21 17:50:29,118 INFO com.bitzermobile.c14n.engine.C14nConfig - merge.jumbo=false
2015-08-21 17:50:29,118 INFO com.bitzermobile.c14n.engine.C14nConfig - enable.network=true
2015-08-21 17:50:29,118 INFO com.bitzermobile.c14n.engine.C14nConfig - trap.contentprovider=true
2015-08-21 17:50:29,118 DEBUG com.bitzermobile.c14n.engine.Main -  Input file extension: apk
2015-08-21 17:50:29,124 DEBUG com.bitzermobile.c14n.engine.Main -  Input file is a valid ZIP.
2015-08-21 17:50:29,149 DEBUG com.bitzermobile.c14n.engine.Main -  c14n:: secureStorage=true
2015-08-21 17:50:29,149 DEBUG com.bitzermobile.c14n.engine.Main -  c14n:: Secure storage enabled!
2015-08-21 17:50:29,150 DEBUG  com.bitzermobile.c14n.engine.AbstractC14nEngine - Checking pre conditions...
2015-08-21 17:50:29,150 DEBUG  com.bitzermobile.c14n.engine.AbstractC14nEngine - Verifying input APK file...
2015-08-21 17:50:29,157 DEBUG  com.bitzermobile.c14n.engine.AbstractC14nEngine - Checking to see if apktool is on path...
2015-08-21 17:50:29,161 DEBUG  com.bitzermobile.c14n.engine.ApkToolUtil - PATH enviornment variable is set to:  /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin:/opt/Oracle/omss/bin
2015-08-21 17:50:29,175 DEBUG  com.bitzermobile.c14n.engine.AbstractC14nEngine - Making a copy of input APK file...
2015-08-21 17:50:29,241 DEBUG  com.bitzermobile.c14n.engine.AbstractC14nEngine - Running ApkTool to decode the APK file  [/var/folders/gv/9dqwjvx54vs5f3h3nf5t2h300000gn/T/T14401974291618454814299096492033.apk]
2015-08-21 17:50:29,242 DEBUG  com.bitzermobile.c14n.engine.AbstractC14nEngine - ApkTool output directory set to  [/var/folders/gv/9dqwjvx54vs5f3h3nf5t2h300000gn/T/T14401974291618454814299096492033.apk.out]
2015-08-21 17:50:29,251 DEBUG  com.bitzermobile.c14n.engine.ApkToolUtil - Decoding  /var/folders/gv/9dqwjvx54vs5f3h3nf5t2h300000gn/T/T14401974291618454814299096492033.apk to  /var/folders/gv/9dqwjvx54vs5f3h3nf5t2h300000gn/T/T14401974291618454814299096492033.apk.out
I: Copying raw classes.dex file...
I: Loading resource table...com.bitzermobile.c14n.engine.C14nException
       at com.bitzermobile.c14n.engine.ApkToolUtil.decode(ApkToolUtil.java:111)
       at  com.bitzermobile.c14n.engine.AbstractC14nEngine.doDecodeApkFileUsingApkTool(AbstractC14nEngine.java:128)
       at  com.bitzermobile.c14n.engine.DefaultDexC14nEngine.containerize(DefaultDexC14nEngine.java:106)
       at com.bitzermobile.c14n.engine.Main.run(Main.java:194)
       at com.bitzermobile.c14n.engine.Main.main(Main.java:71)
Caused by: java.lang.reflect.InvocationTargetException
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:497)
       at com.bitzermobile.c14n.engine.ApkToolUtil.decode(ApkToolUtil.java:109

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms