通过ADB侧载Chrome APK遇INSTALL_FAILED_ALREADY_EXISTS错误求助
Hey there, let's tackle that frustrating INSTALL_FAILED_ALREADY_EXISTS error you're hitting with Chrome. Even though you can't spot any Chrome files, APKs, or visible installs, your Android system is still detecting the app's package in some hidden corner. Here are practical steps to resolve this:
Check for hidden/disabled system Chrome packages
Chrome often comes preloaded as a system app and might be disabled (so it doesn't show up in your app drawer). Use ADB to hunt down its package name:- On Windows:
adb shell pm list packages | findstr chrome - On Mac/Linux:
adb shell pm list packages | grep chrome
If you seecom.android.chromein the output, that's the culprit. Uninstall it with:- For user-installed Chrome:
adb uninstall com.android.chrome - For system-preloaded Chrome:
adb shell pm uninstall -k --user 0 com.android.chrome(the-kkeeps app data; remove it if you want a full wipe)
- For user-installed Chrome:
- On Windows:
Force overwrite the existing package
Skip the detection check entirely by using ADB's overwrite flag. Run this command to sideload your Chrome APK:adb install -r chrome.apk
The-rparameter tells ADB to replace any existing instance of the app, even if it's hidden or disabled.Clear leftover package data or split APKs
Modern apps sometimes use split APKs, and leftover components might linger even if the main APK is gone. First, find where Chrome's files are stored:adb shell pm path com.android.chrome
If you have root access, you can delete these files directly. If not, clear the app's data first:adb shell pm clear com.android.chrome
Then try sideloading again.Check work profiles or secondary users
If your device has a work profile or multiple user accounts, Chrome might be installed in a different user space. List packages for other users (replace1with the user ID you want to check):adb shell pm list packages --user 1
If found, uninstall it for that user:adb shell pm uninstall --user 1 com.android.chromeReset app preferences (last resort)
If all else fails, reset your device's app preferences to clear any stuck disabled states or package metadata. Go to Settings > Apps > See all apps > Menu (three dots) > Reset app preferences. This won't delete your app data, just reset default settings and disabled app flags.
内容的提问来源于stack exchange,提问作者J.N.R.

