Android adb command adb install xxx.apk installs the application and reports INSTALL_FAILED_ALREADY_EXISTS error problem solving

The content is reproduced from others, so as not to find it after being deleted by others.

Original link: see link# adb install INSTALL_FAILED_ALREADY_EXISTS_walle's Blog - CSDN Blog

A problem encountered during installation: for signed packages, re-passing adb install will prompt an installation error. Prompt: Failure [INSTALL_FAILED_ALREADY_EXISTS]

Why can eclipse itself keep overwriting and reinstalling?

Because eclipse's automatic packaging is a debug signature, and if it is a release signature, the above error will appear. Solution: adb install -r

adb install -r where r is short for reinstall. By the way, learn about the relevant parameters of adb install.

adb install -r (reinstall) reinstall

adb install -s (sdcard) installed on the SD card instead of internal storage

adb uninstall -k (keep) keeps user data.

---------------I am the dividing line, the following is my essay-------

I want to automatically install multiple apks, but the installation fails with INSTALL_FAILED_ALREADY_EXISTS error. Search the above article, and then use

adb install -r -s D:\news_share_apks\app-app2-release.apk command, perfect solution.

ps: As expected, -r and -s can be used together, -r solves the problem of reinstallation, and -s allows the application to be installed in the SD card. The ROM of my mobile phone is small, and I use an SD card, so I cover my face here, haha. Honor 7 in 2015.

In this way, I can use Python to automatically install the apk, saving time and effort.

Guess you like

Origin blog.csdn.net/yeziyfx/article/details/99972752