Search code examples
androidadbapk

ADB Install a signed APK over an unsigned APK that failed to install in the first place


I am attempting to sideload an APK with ADB. When I downloaded it, it was unsigned, but I attempted to install it, unknowingly, and it failed since it was unsigned. I signed it manually and verified that it was signed correctly, but when I go to install it with adb install -r <path to signed apk>, I get the following error:

Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]

So I found this question that said to uninstall the old application that was unsigned, but I can't find the application on my device or anywhere in adb, so how am I supposed to uninstall the unsigned APK that failed to install in the first place? Or is there something I'm missing?


Solution

  • To uninstall you must know the package name of the application, Not the file name.
    Usage Example: adb uninstall com.google.android.youtube (uninstalls youtube)