I'm trying to install an APK on a device running an AOSP build of Jelly Bean (4.2).
When I "adb install my.apk", I get the error:
[INSTALL_FAILED_VERIFICATION_FAILURE]
I've tried using "testsign.jar" to "sign" the apk but it does not change the outcome
Another common reason for the App not installed error could be that there is not enough free memory on your device's internal storage. Most users think that the size of the apk file is the actual size of the app. But this is not the case. Actually the apk file is a packaged version of the application itself.
Tap on the Security option. Scroll down until you see Unknown sources and check the box. Open your file browser and navigate to your download folder where the APK is. Tap the APK and follow the instructions to install the app.
You need to disable verification of the APK during ADB install. If the setting in Security is greyed out or isn't working as it should try shelling into the device and, depending on which settings database the setting is in per your API level (Global, System, Secure) run
$ adb shell settings put global verifier_verify_adb_installs 0
If you can actually set it, it will prevent checking of APKs over ADB.
Sometimes you will need to disable the package verifier as well using:
$ adb shell settings put global package_verifier_enable 0
On KitKat, you can see here that these settings are in the Global database:
http://androidxref.com/4.4.2_r2/xref/frameworks/base/core/java/android/provider/Settings.java#5015
Go to developer settings and disable verify apps via USB. Then you can install .apk without any problem.
In your phone,Go to:
setting/DeveloperOption/verify apps over USB
and disable it.
This what worked for, I was trying to install on device with android 6.0
Settings > Developer Options > Then Turn off Verify Apps over USB
See first image Then
Settings > Security > Then Turn on Unknown sources
Finally
Got to Settings > Developer Options > Then Turn off Verify Apps over
Settings > Security > Then Turn on Unknown sources
UPDATED ANSWER: with the last Android updates, now the following error may show during installation of the APK because of Play Protect:
Failed to finalize session : INSTALL_FAILED_VERIFICATION_FAILURE
Session 'app': Error Installing APKs
In order to fix this (for developer purposes), you may disable Play Protect as it is shown here: installation app blocked by play protect.
The actual problem is Google play block your app! You need to turn off that
You have to allow unsigned applications. The install is being blocked by Android. Allow install of non-market apps in Settings.
Aside from "settings put global verifier_verify_adb_installs 0", I also need to set package_verifier_enable to 0 in my case to make it work.
e.g.
adb shell
settings put global package_verifier_enable 0
None of the suggestions above worked for me, however factory resetting the device did the trick.
delete all directory -> {.gradle, .idea, app/build }
and install again working for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With