HI Carlos,
It would be very helpful to see the actual error message.
To see the error, and to have more configuration options, you could try to use the Command Line option, meaning download the wrapper utility to a local machine.
Our wrapping tool uses an open source tool called apktool. This tool reverse engineers the binary Android package, and instruments methods in it based on regex rules in .. \emm\conf\Android.xml or android-cordova.xml file.
It will also attempt to check and modify the AndroidManifest.xml to add required permissions, so maybe this failed, and hence wrapping went wrong...to avoid this, use flag -r with the command line wrapper. Also use -v to see all the error messages
You need the following permissions in the AndroidManifest.xml, or else the data collection will fail.
Required Permissions in AndroidManifest.xm
Mandatory
- <uses-permission android:name="android.permission.INTERNET" />
- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Optional but recommended(if these permissions are not specified the SDK will not capture the corresponding events/matrix)
- <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
Of course, the SDK will not capture any location info or Wifi related stuffs, if the optional permissions are not there in the manifest. Also we might notice some exception stack trace like "WifiService: Neither user 10193 nor current process has android.permission.ACCESS_WIFI_STATE." if the ACCESS_WIFI_STATE permission is not given to the application, but this will not affect any functionality
Manual wrapping on Linux, OS X and Windows
You can also use the wrapper manually on Linux, macosx and windows with the following steps (Windows). Replace apk, plist and wrapper utility name with the ones that use use:
1. Unzip the CAMobileAppAnalytics-wrapper.zip to c:\AXA
2. set CA_EMM_HOME=c:\AXA\emm
3. Run the following command (replace your apk and plist file names)
java -jar ca-maa-android-sdk-wrapper-<version>.jar –verbose -apk "app-debug.apk" -plist "app_camdo.plist" -rules AUTO_DETECT -signconfig emm/conf/jarsigner.properties -disablejsinterception "false" -buildtype "release" -nores "release"
NOTE: We use 32-bit zipalign - binary with the wrapper. Some customers need a 64-bit one. If this is required, download and replace the default one in the wrapper ../emm/bin/android/linux -folder
Original Message:
Sent: 06-07-2021 12:07 PM
From: Carlos Hugo Martin Carranza Olivera
Subject: AXA Android: How can I install the wrapped application on Android or integrate it with Gradle?
I have done the wrapping of the application from the web, but when I try to install on the cell phone, I get a message that tells me that it has not been possible. It should be noted that the cell phone is configured to install the programs from the APKs.
I also tried to integrate the AXA SDK with the Gradel following the instructions on the web page, but it gives me errors, since it does not recognize the modifications that I make.
Note: The links for the documentation on the web are still pointing to the old documentation.