Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

APK installation failed: [INSTALL_FAILED_VERIFICATION_FAILURE]

Tags:

android

apk

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

like image 574
dcarr622 Avatar asked Feb 21 '13 23:02

dcarr622


People also ask

Why is my APK file not installing?

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.

How do you install APK on Android that Cannot be installed?

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.


10 Answers

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

like image 158
Reuben Tanner Avatar answered Oct 03 '22 14:10

Reuben Tanner


Go to developer settings and disable verify apps via USB. Then you can install .apk without any problem.

like image 24
Abdul Hafeez Avatar answered Oct 03 '22 14:10

Abdul Hafeez


In your phone,Go to:

setting/DeveloperOption/verify apps over USB

and disable it.

like image 37
Maryam Azhdari Avatar answered Oct 03 '22 14:10

Maryam Azhdari


This what worked for, I was trying to install on device with android 6.0

  1. Settings > Developer Options > Then Turn off Verify Apps over USB See first image

Then

  1. Settings > Security > Then Turn on Unknown sources

Finally

  1. Do not forget to uninstall your app and start afresh.

Got to Settings > Developer Options > Then Turn off Verify Apps over

Settings > Security > Then Turn on Unknown sources

like image 27
Gpak Avatar answered Oct 03 '22 14:10

Gpak


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.

like image 20
juliancrg Avatar answered Sep 29 '22 14:09

juliancrg


The actual problem is Google play block your app! You need to turn off that

  1. Go to the play store
  2. Open the drawer and select Play Protect
  3. Open the settings and turn off both Scan apps with play protect and Improve harmful app detection
  4. Now it's your turn. Rebuild your app and launch it! Good Luck!
like image 21
Mahinthan177 Avatar answered Oct 02 '22 14:10

Mahinthan177


You have to allow unsigned applications. The install is being blocked by Android. Allow install of non-market apps in Settings.

like image 31
apollosoftware.org Avatar answered Oct 02 '22 14:10

apollosoftware.org


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
like image 42
lordhong Avatar answered Oct 03 '22 14:10

lordhong


None of the suggestions above worked for me, however factory resetting the device did the trick.

like image 22
Misha Avatar answered Sep 30 '22 14:09

Misha


delete all directory -> {.gradle, .idea, app/build } and install again working for me

like image 25
Amar Singh Avatar answered Sep 29 '22 14:09

Amar Singh