Problem installing ionic application on android < 4.3

I don’t want to pollute this forum but I’ve searched the internet for days now and with no results.

I have a problem with installing an ionic application on android devices below 4.3.
Taken steps:
ionic start myApp blank
ionic platform add android
cordova plugin rm org.apache.cordova.console
ionic build android

sign apk using jarsign
upload apk to android phone

Installs fine on android 4.3 but not 4.2 or lower.

Have you made edits to the android.manifest file? You should change it to support android 4.0 and up.


No changes in the manifest made. But I’ve found the solution to my problem.

When signing the apk (with jarsigner) it is important to use the following parameters:

-sigalg SHA1withRSA -digestalg SHA1

This is because (at least with my JDK version) jarsigner defaults to using SHA256 which is not supported up to Android 4.3.

1 Like