APK wrapped by CA AXA crashes when launched in Android KitKat (version 4.4)

Document ID : KB000073116
Last Modified Date : 15/03/2018
Show Technical Document Details
User has wrapped an APK online using CA AXA (SaaS). The wrapped APK is running fine in Android version 5 and above.
However, when the user tries to install the wrapped APK in Android KitKat 4.4, the application would crash upon launching.

Android KitKat (Android version 4.4)
CA AXA 16.x
The application could potentially crash in Android KitKat, because of the way the Android OS loads multi-dex application using UnCaughtExceptionHandler in the main application class.
Wrapping resulted in the MultiDexApplication trying to use an SDK class (com.ca.android.app.CAMDOFileUtils) before it's loaded by the class loader in Android KitKat.
To solve the problem, wrap the APK using below command:

./wrap.sh -a <apk file name> -p <plist file name> -b filedelete

For online wrapping, executes the same script as the above, without the "-b" option. The "-b" option is used to exclude one of the wrapping rules that was causing the failure in Android KitKat. -b stands for blacklist.