'Failure - not installed for 0

I am trying to uninstall a few Google APKs that were preinstalled on an older smartphone I have. I must do it via ADB because it's not possible to do it via regular uninstall

I found a guide on how to remove those APKs using ADB, but when I try to remove a certain Google package, for example com.google.apps.plus, using the following command:

pm uninstall -k --user 0 com.google.apps.plus

I get the following error: Failure - not installed for 0

What am I missing?



Solution 1:[1]

Even I was facing the same issue. For solving this problem just make sure that you have the latest USB drivers for your device. You can get your drivers from Android Devs Website. This is a list of all major OEM's compiled by google. Then download ADB tools from here. After ensuring the above steps, download any App Inspector application from play store for getting the exact package name of the apps.

In your device's Developer Options,turn on USB debugging. Open Windows PowerShell where you have downloaded the ADB tools.To see if ADB is working use .\adb command.

Then use .\adb shell for activating adb shell. Then use this command for removing the packages pm uninstall -k --user 0 <package name>. You will get package name in the App Inspector application.

Solution 2:[2]

In my case I had the weverse app, what I did was:

  1. Open the app (it required me to update it)

  2. Update the app in the PlayStore

  3. Close the app Uninstall with the common command

    pm uninstall -k --user 0 "package name"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Community
Solution 2 4ng3ll