1

First, I have already uninstalled this app from my Huawei tablet device.

Now, I want to reinstall the APK with same package name using adb command line from my Mac.

./adb install ~/myapp.apk

I got this error:

Performing Streamed Install
adb: failed to install myapp.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.example.myapp signatures do not match previously installed version; ignoring!]

From browsing around, I learn that perhaps the app did not uninstalled correctly. So I use adb shell.

$./adb shell

Device:/$ pm uninstall com.example.myapp
Failure [DELETE_FAILED_INTERNAL_ERROR]

Device:/$ pm uninstall --user 0 com.example.myapp
Failure [not installed for 0]

Device:/$ pm list package | grep myapp
(empty result)

Device:/$ pm list package | grep google
package:com.google.android.inputmethod.latin // which means list package & grep working fine

Device:/$ pm list package -u | grep myapp
package:com.example.myapp // which means pm already acknowledge myapp is uninstalled

So at this moment, I'm at loss. Even adb shell cannot see the app package. But still, when I try to install the APK, I get the error above. How can I resolve this?

Chen Li Yong
  • 4,659
  • 6
  • 50
  • 101
  • `adb install -r ~/myapp.apk` should work as it deleted still existent data and replaces the app with the new version (no update). – Robert Apr 14 '22 at 13:08
  • @Robert I've just tried your suggestion, and sadly I still get the same error on the command line. The difference here though, on the tablet, the screen does not linger on the error message "signature does not match", but immediately return to home screen. – Chen Li Yong Apr 14 '22 at 13:13
  • Just by chance, the app isn't installed as system app on that device (system apps can't be replaced without root permissions)? Check `pm list package -d` if it is still contained. BTW: If I am not mistaken, if a package is listed in the `-u` list it means the app is uninstalled but there is still app data present. An app that is really uninstalled is no longer visible in any `pm package` list. – Robert Apr 14 '22 at 13:29
  • @Robert it was not a system app (previously, I also install the APK myself by running the APK from the device's folder after downloading it). I have searched for the app data present using the Files app, searching for "myapp", and removing all related folders, except one folder in the `obb` folder. I can't seem to remove that `com.example.myapp` folder inside the `obb` folder. – Chen Li Yong Apr 14 '22 at 15:17

0 Answers0