Adb install [username] - failed [INSTALL_FAILED_ALREADY_EXISTS]

Firstly, I know this has been asked many times, but I've tried all of these answers and still no luck. Let me explain.

I have 2 apps, 1 stock app and one with fino tool added (sysdream / fino). It's all properly packaged and written correctly, but when I try:

adb install app_fino.apk 
Failure [INSTALL_FAILED_ALREADY_EXISTS]

      

And adb install -r, which is obvious when I added fino to it and retired.

 adb install -r app_fino.apk
 Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]

      

Other answers said "Uninstall" and then install the new app again. So go to Apps> All> Uninstalled

... Rebooted phone

 adb install app_fino.apk 
 Failure [INSTALL_FAILED_ALREADY_EXISTS]

      

Anyone ideas?

+3


source to share


2 answers


Try this command to remove:



adb uninstall com.your.packagename

      

+2


source


If you still get the message INSTALL_FAILED_ALREADY_EXISTS

even after

adb uninstall com.your.packagename

      

The application may still be present on the system partition and therefore cannot be uninstalled with adb uninstall

. To fix this, you need to uninstall the original system app as well (can only run on the rooted device):



adb shell
$ su
# mount -o remount,rw /system
# cd /system/data
# rm OffendingPackage.apk

      

Note that the package names in the system folder do not necessarily follow the convention com.your.packagename.apk

. So you might need to look a little at the correct apk.

Finally, the adb reboot

device before trying to install it again.

+1


source







All Articles