Problem Description
So I was using Discord on my Android phone and decided to reinstall the app for personal reasons.
I uninstalled it from the "Settings" app and it seemed alright. I tried to reinstall it from Google play, and it alerts me with the message "You cannot install this app because another user has already installed an incompatible version on this device". I was not able to install it.
As suggested by this(28853250) StackOverflow answer as well as some other resources I could find online, the app wasn't fully uninstalled in all users.
But since I don't have multi-user settings on my phone, I couldn't do anything to it.
Discord doesn't show up on the settings app, and neither on pm list packages
Steps I have tried
Install using an APK file. Did not work. (Alerts "App not installed")
Reboot. Did not work.
System update (Those entire system updates by Samsung). Did not work.
I tried the following commands:
# adb shell through USB debug.
$ pm uninstall com.discord
# Result: Freezes and had to ^C to exit
$ pm uninstall -k com.discord
# Result: Freezes and had to ^C to exit
$ pm uninstall -k --user 0 com.discord
# Result: Failure [not installed for 0]
# User id for 1 to 100 shows the same.
$ pm uninstall -k --user -1 com.discord
# Result: Freezes and had to ^C to exit
Installed using an APK file using adb:
# In my linux computer
$ adb install discord.apk
Performing Streamed Install
adb: failed to install discord.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.discord signatures do not match previously installed version; ignoring!]
Some hint maybe?
An interesting behaviour happened after executing commands stated in the Steps tried section, the android shell seems to freeze.
I was not able to exit the shell using the exit
command, which clearly worked without executing those commands.