How to Merge a Split APK
note
You will need the following tools:
If you are provided with split APK files, you will need to merge and re-sign them yourself before installing to Corellium:
- Download and extract the downloaded zip archive (assuming the APK files were provided in a zip).
- Run the APKEditor to merge the APKs by referencing the path to the APK directory (in our example they're in apks/):
java -jar /path/to/APKEditor-1.4.2.jar m -i /path/to/<mysplitAPKdirectory>/noteYour APKEditor and APK Signer versions may be different.
- Check for a new output file named
<mysplitAPKdirectory>_merged.apk. - Run uber-apk-signer to re-sign the APK using:
java -jar /path/to/uber-apk-signer-1.3.0.jar --apks <mysplitAPK>>_merged.apk - Check for a new output file named
<mysplitAPK>_merged-aligned-debugSigned.apk. - Install the signed APK on a Corellium Android device.
If your app was installed via Google Play Store (and Gapps) but is having trouble in MATRIX, it's likely a split APK. You can retrieve the files via the steps below:
- Under the files tab, navigate to
/data/app/ - Find your app and download its files.
note
You won't be able to download the empty
lib/arm64folders. - Unzip your download.
- Recreate the
lib/arm64filepath in your newly extracted folder. - Follow the steps above to recreate the app install file.
- Uninstall the original app and reinstall your new merged, signed .apk file.