[MOTO G8+] "You cannot install this app because another user..." - Android Q&A, Help & Troubleshooting

Hi,
I want to reinstall a Motorola firmware app.
I uninstalled the firmware a year ago on my Moto G8+ with adb using the following command:
"pm uninstall -k --user 0 com.motorola.faceunlock"
Now when I want to install the app from the Play Store I can't. I get the following error message:
"You cannot install this app because another user has already installed an incompatible version on this device."
Click to expand...
Click to collapse
I already tried a few things I found in other threads and forums but nothing really worked. I'm a single user, however the guest function allows me to find the Moto face unlock App as an installed app. In settings I can't find any option that allows me to "uninstall the app for all users" or to "reinstall" or "restore" it. Factory Reset is not an option for me.
I was thinking about maybe reinstalling the package via adb for the main user again, if that's possible? I only have little knowledge about adb.
Has somebody an idea or command I could try out?
Thanks in advance

@sokrvtxs
The ADB command you used removed the the mentioned system-app ( leaving its data untouched ) only for user 0, that's the current user, what means that the deleted app still remains available for other users of the Android device - it didn't get removed from device's storage space at all. That's basically a good thing because you can easily restore an app if you uninstall it by mistake or need it later.
This brings the system-app back:
Code:
adb devices
adb shell "cmd package install-existing com.motorola.faceunlock"
adb reboot
If your Android is rooted then you can update the system-app in question
Code:
adb devices
adb push <PATH_TO_UPDATE_APK> /data/local/temp
adb shell "pm install -r /data/local/tmp/<UPDATE_APK>"
adb shell "rm /data/local/tmp/<UPDATE_APK>"
adb reboot

Thank you so much, my phone is not rooted. The first code worked and my issue is solved completely. This helped me a lot.

Related

[Q]Can I uninstall an app via adb?

Is there a command/parameter that I can use to uninstall an app from the emulator or even a device?
I have gone through settings and I also blanked out the emulator session, but both are very time consuming. I thought maybe there was an easier way. Any suggestions?
Thanks...
Sent from my SAMSUNG-SGH-I897 using XDA App
adb remove (full app filename, no extension) eg adb remove com.developer.appname
or adb shell rm /data/app/(full app filename with apk extension)
to find the file name, use adb shell ls /data/app/
Thanks, I'll give it a try. I find it interesting though that the docs don't have the remove command. Also, I found an adb wiki that also does not have the remove command but does have an uninstall command. Why the differences? Oh well, even though I did not see it in the docs I should have at least tried the uninstall for grins before I posted. It is late so I will try both tomorrow.
Thanks again.
Sent from my...
Device Admin
Hello,
This uninstall parameter is being fail to remove app which is privileged as Device Admin.
How to deactivate Device Admin Privilege on any app thru adb ?
How to uninstall Device Admin App thru ADB ?

How do I uninstall an APK?

So I used ADB install to install got248, but now I've installed a better 2048 clone for android wear from the play store, so I how do I uninstall the old APK?
Uclydde said:
So I used ADB install to install got248, but now I've installed a better 2048 clone for android wear from the play store, so I how do I uninstall the old APK?
Click to expand...
Click to collapse
I am wondering the same thing bc literally I did the same thing as you with 2048 haha. I'm guessing you could try this command: adb uninstall got2048.apk
Uclydde said:
So I used ADB install to install got248, but now I've installed a better 2048 clone for android wear from the play store, so I how do I uninstall the old APK?
Click to expand...
Click to collapse
In order to uninstall the application you need to know it's package name (ie com.someapp.app) then use the following adb command to uninstall, adb uninstall com.someapp.app.
If you are not sure what the package name is then you can run the following adb commands in order to get a list of apps installed:
adb shell
su
cd /data/app
ls
This should give you a list of apps on the watch/ Hope this helps.

New Android update, cannot use ADB to remove bloatware anymore?

I have a Huawei watch which comes bundled with some bloatware. Before, I was able to use the ADB command to hide and disable some of the unwanted system software without having to root the watch (so as to not void warranty). It's detailed here on how to use the "adb pm shell hide" command:
https://www.reddit.com/r/Android/comments/3eav7t/get_rid_of_unwanted_system_apps_adb_shell_pm_hide/
However, recently I had to do a factory reset and the bloatware has re-appeared. I tried to do the "adb pm shell hide" command to disable the apps and got a "error: java.lang.security exception: permission denial" in the command prompt window. After some Googling, it seems this is as a result of a recent Android update which may have tightened this up as you can no longer use this command on any Android device to kill bloatware.
So does anyone have any ideas for anything else to try? Or will I have to root my watch and forcefully remove the bloatware?
Thanks!

[GUIDE] Uninstall any application with single ADB command ROOTLESS

I've had a Motorola G4 Amazon Prime edition for sometime now and I was easily able to hide the package that displayed the lock screen ads (com.amazon.phoenix) soon after purchase. Unfortunately, when the Nougat update came rolling around, that hack no longer did the trick. So I spent a couple of hours searching through docs and trying different commands, in doing so I found a way to completely disable any and all packages installed on any Android device, system or carrier/manufacturer bloatware.
**Step by Step**
1. Install USB drivers for your Device
2. Download and Install ADB tools
3. Enable[ Developer Options](http://wccftech.com/enable-developer-options-android-nougat/) and [USB Debugging](https://technosamigos.com/enable-usb-debugging-on-android-nougat-phones/)
4. Find a good USB cable, plug it into your computer and then to your device. When the pop-up appears asking you to authorize the device, allow it.
5. Open a command prompt (cmd in windows) and type:
adb devices
6. This should return the ID of your device. If not, please go back and retrace your steps.
7. Now type:
adb shell
8. Use the following commands to find the apps you want to disable (replace 'amazon' with the manufacturer, i.e. 'samsung')
adb shell cmd package list packages | grep 'amazon
9. This should give you a new prompt, something to the effect of (device-model):/ - here type the following:
pm uninstall -k --user 0 <name of package>
This should return 'Success' at which point the package has been removed!
This has been tried on about half a dozen devices and it works on every single one, including the LG G6, Samsung S8, Google Pixel (Removed System Applications!)
Hope this helps folks out there that are looking to get as clean of an Android experience as possible, good luck!
And how to revert a single package removed with this method?
Please don't say factory reset. I mean, the package is there in the system partition. How I make it available to the user again?
Replying to my self and to the history. Xda user Vordx, found a proper way.
"adb shell cmd package install-existing <package name>"

" cmd package install-existing" doesn´t work in Android 7, how can I reinstall apk ?

" cmd package install-existing" doesn´t work in Android 7, how can I reinstall apk ?
I used this guide to uninstall some apps:
https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/
The problem is, I want to install one of them back, I tried the option mentioned on the guide:
adb shell cmd package install-existing <name of package>
But the "install-existing" doesn´t work in my Android 7.0 (Samsung A5 2016).
Tried downloading the APK from the internet and installing but it doesn´t work (says that app is already installed)
Checked if the app is installed, and it only shows in "pm list package -u", so it´s uninstalled for the current (default) user.
Any way to get it back without the install-existing ? (as it doesn´t exist in my android 7.0)
Thanks
anyone ?
anyone pls help, i also got stuck in the same situation, using Note 5 Android 7.0
Run
Code:
adb devices
adb shell "pm list packages -u"
to see what packages are re-installable.
https://forum.xda-developers.com/t/...diatek-armv8-2020-08-24.3922213/post-84201415

Categories

Resources