Symptom
You can see the failure message like the screenshot on the right column, when you apply AppSealing to the APK file and open it directly on your smartphone. |
Overview
When the sealed APK file is not installed on a smartphone, the smartphone does not show a detailed root cause. To get the exact root cause, you need to connect the phone to your PC and need to try the ADB shell command.
Below command is the adb install command to install checklib_sealed.apk to a connected smartphone.
adb install checklib_sealed.apk
When the command fails, you can see the detailed error message below.
> adb install checklib_sealed.apk
Performing Streamed Install
adb: failed to install checklib_sealed.apk:
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl575075137.tmp/base.apk: Attempt to get length of null array]
This INSTALL_PARSE_FAILED_NO_CERTIFICATES error means the APK file is not signed properly. This indicates the Signing process was skipped after applying AppSealing. To sign your APK again after applying AppSealing, you can follow the instructions in the zipalign and Keystore re-signing document.
Like this example. If you contact us with the result of the f adb installation command and the error happening APK file, the dev-team can help you more smoothly.