ADB uninstall instagram crashes phone - Android Q&A, Help & Troubleshooting

Hi - seems instagram may have gone rogue on my Moto G5. Seems to be consuming loads of power, can't uninstall through GUI - when I do try the phone resets!
Running adb portable which connects to phone, lists packages etc but when i try and uninstall com.instagram.android the command line shell freezes on pc. periodically the phone also restarts when trying this.
tried via the adb shell com.instagram.android
and also from command line adb shell pm uninstall com.instagram.android
No joy - any suggestions aprpeciated else it's a factory reset.
cheers
Adam

Related

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!

Found a way to remove Amazon ads on Moto G4 running Android Nougat! (xt1625)

Before being updated to Nougat on my Amazon Moto G4, I was happy to run the command:
Code:
pm disable com.amazon.phoenix
To remove those annoying lockscreen ads. Since the update hit, that no longer was a choice, as now I received an error about user permissions. Being that the ads really do annoy me, I set out to find a way to disable or altogether remove the package from the system. It only took a couple of hours digging through pm commands and XDA forums to find a way to completely remove the application that displays those ads once and for all.
So without further adue:
Either open an ADB shell or run a terminal command on the phone itself. At the shell prompt (athene:/) type the following:
Code:
pm uninstall -k --user 0 com.amazon.phoenix
And that's it. A reboot should remove any remnants but it seems to work right away in most cases.
I'll go ahead and assume that this trick works for other Amazon Ad Enabled devices unless I hear otherwise.
dosangst said:
Before being updated to Nougat on my Amazon Moto G4, I was happy to run the command:
To remove those annoying lockscreen ads. Since the update hit, that no longer was a choice, as now I received an error about user permissions. Being that the ads really do annoy me, I set out to find a way to disable or altogether remove the package from the system. It only took a couple of hours digging through pm commands and XDA forums to find a way to completely remove the application that displays those ads once and for all.
So without further adue:
Either open an ADB shell or run a terminal command on the phone itself. At the shell prompt (athene:/) type the following:
And that's it. A reboot should remove any remnants but it seems to work right away in most cases.
I'll go ahead and assume that this trick works for other Amazon Ad Enabled devices unless I hear otherwise.
Click to expand...
Click to collapse
Does it work on locked bootloaders?
Yes. AFAIK all Amazon G4 Prime's are locked bootloaders. This requires no root, nothing but a simple adb shell command!
Edit, Don't works.
How does it not work?
Thank you very much...
Works perfectly !!!!!!
I used this in my Moto G4 Prime version(XT1625)(locked bootloader, no root) after reboot i notice that is working this method.
1. Open cmd, and put my phone in debug mode. Plug my phone through usb to my computer.
2. In cmd put adb shell
3. put
Code:
pm uninstall -k --user 0 com.amazon.phoenix
4. Reboot
5. Be Happy!
Waiting to see if the apps install again
It works! I was doing it wrong, thanks for this friend! Now only root is missing! xD
Could someone give the command to uninstall the amazon widget app and the amazon photos app? Thank you
lerg96 said:
I used this in my Moto G4 Prime version(XT1625)(locked bootloader, no root) after reboot i notice that is working this method.
1. Open cmd, and put my phone in debug mode. Plug my phone through usb to my computer.
2. In cmd put adb shell
3. put
Code:
pm uninstall -k --user 0 com.amazon.phoenix
4. Reboot
5. Be Happy!
Waiting to see if the apps install again
Click to expand...
Click to collapse
Hi,Can you tell me more details step by step because I am new to android?., I am using windows laptop
Hu
canhmeo said:
I used this in my Moto G4 Prime version(XT1625)(locked bootloader, no root) after reboot i notice that is working this method.
1. Open cmd, and put my phone in debug mode. Plug my phone through usb to my computer.
2. In cmd put adb shell
3. put
Hi,Can you tell me more details step by step because I am new to android?., I am using windows laptop
Click to expand...
Click to collapse
1. Put your phone in debugging mode(settings => developer options => USB debugging if you don't see developer options go to about phone and tap 7 times or more in build number)
2. Install adb and Motorola drivers in your PC (search a little ?)
3. Connect your phone through USB to your PC
4. Open CMD (windows + r and type CMD and hit enter )
5. Type adb shell in CMD (the black window that appears after you hit enter) and hit enter
6. Type the magic command provide in this thread and hit enter
7. Reboot
8. Maybe you can make some friends after it, Google can be your friend
9. Install Google allo and talk about weather with Google Assistant
10. Joking, be happy
11. Don't forget to say thanks, not to me. To the owner of this thread
Thanks -- worked fine for me
Went into phone Settings then Apps -- forced stopped all running apps that I wanted to remove, cleared data for each, removed any updates and disabled whatever I could
Ran the adb uninstall command multiple times once for each app:
com.amazon.phoenix
com.amazon.widgets
com.amazon.clouddrive.photos
com.amazon.kindle
com.amazon.dee.app
com.amazon.drive
com.imdb.mobile
com.goodreads
com.audible.application
com.google.android.music
com.google.android.videos
Click to expand...
Click to collapse
Hi, all. Just wanted to say that this worked perfectly on my G4. My build number is NPJS25.93-14-4 (running Nougat) and the device is at the March 1, 2017 Security patch level.
I used Minimal ADB and Fastboot on a Windows 10 box. Enabled debugging on the phone, connected it, ran adb shell and entered the command as above. Big thanks to Jatan1986 as well for the additional commands which also worked great (I didn't uninstall everything but that list is terrific). Rebooted and the apps I uninstalled were gone. No more ads.
Oh, I did not do the force stop on the apps first. I performed just the steps above.
Much thanks for this method and post.
lerg96 said:
Hu
1. Put your phone in debugging mode(settings => developer options => USB debugging if you don't see developer options go to about phone and tap 7 times or more in build number)
2. Install adb and Motorola drivers in your PC (search a little )
3. Connect your phone through USB to your PC
4. Open CMD (windows + r and type CMD and hit enter )
5. Type adb shell in CMD (the black window that appears after you hit enter) and hit enter
6. Type the magic command provide in this thread and hit enter
7. Reboot
8. Maybe you can make some friends after it, Google can be your friend
9. Install Google allo and talk about weather with Google Assistant
10. Joking, be happy
11. Don't forget to say thanks, not to me. To the owner of this thread
Click to expand...
Click to collapse
First of all I would like to thank the owner of this post.
On the other hand it still not working for me,I am trying to use google to know how to do
canhmeo said:
First of all I would like to thank the owner of this post.
On the other hand it still not working for me,I am trying to use google to know how to do
Click to expand...
Click to collapse
Happy to try and help - please list step-by-step what you have done and what messages you have received.
canhmeo said:
First of all I would like to thank the owner of this post.
On the other hand it still not working for me,I am trying to use google to know how to do
Click to expand...
Click to collapse
Make sure your computer can see your phone by typing
adb devices
dosangst said:
Before being updated to Nougat on my Amazon Moto G4, I was happy to run the command:
Code:
pm disable com.amazon.phoenix
To remove those annoying lockscreen ads. Since the update hit, that no longer was a choice, as now I received an error about user permissions. Being that the ads really do annoy me, I set out to find a way to disable or altogether remove the package from the system. It only took a couple of hours digging through pm commands and XDA forums to find a way to completely remove the application that displays those ads once and for all.
So without further adue:
Either open an ADB shell or run a terminal command on the phone itself. At the shell prompt (athene:/) type the following:
Code:
pm uninstall -k --user 0 com.amazon.phoenix
And that's it. A reboot should remove any remnants but it seems to work right away in most cases.
I'll go ahead and assume that this trick works for other Amazon Ad Enabled devices unless I hear otherwise.
Click to expand...
Click to collapse
I have seen the response to this method and it seems quite good.
I would like to know if this can affect any future update of Android from Amazon. I am looking to get Android 7.1.1 or Android O in the future and do not know if this change may cause any issue.
Thanks in advance.
titomalanguito said:
I I would like to know if this can affect any future update of Android from Amazon./QUOTE]
There's no way to know for sure.
Click to expand...
Click to collapse
lerg96 said:
Hu
1. Put your phone in debugging mode(settings => developer options => USB debugging if you don't see developer options go to about phone and tap 7 times or more in build number)
2. Install adb and Motorola drivers in your PC (search a little )
3. Connect your phone through USB to your PC
4. Open CMD (windows + r and type CMD and hit enter )
5. Type adb shell in CMD (the black window that appears after you hit enter) and hit enter
6. Type the magic command provide in this thread and hit enter
7. Reboot
8. Maybe you can make some friends after it, Google can be your friend
9. Install Google allo and talk about weather with Google Assistant
10. Joking, be happy
11. Don't forget to say thanks, not to me. To the owner of this thread
Click to expand...
Click to collapse
Thanks for the guide.
---------- Post added at 10:22 AM ---------- Previous post was at 10:21 AM ----------
dosangst said:
Before being updated to Nougat on my Amazon Moto G4, I was happy to run the command:
Code:
pm disable com.amazon.phoenix
To remove those annoying lockscreen ads. Since the update hit, that no longer was a choice, as now I received an error about user permissions. Being that the ads really do annoy me, I set out to find a way to disable or altogether remove the package from the system. It only took a couple of hours digging through pm commands and XDA forums to find a way to completely remove the application that displays those ads once and for all.
So without further adue:
Either open an ADB shell or run a terminal command on the phone itself. At the shell prompt (athene:/) type the following:
Code:
pm uninstall -k --user 0 com.amazon.phoenix
And that's it. A reboot should remove any remnants but it seems to work right away in most cases.
I'll go ahead and assume that this trick works for other Amazon Ad Enabled devices unless I hear otherwise.
Click to expand...
Click to collapse
Appreciate it! is working fine on my Moto g5
titomalanguito said:
Thanks for the guide.
---------- Post added at 10:22 AM ---------- Previous post was at 10:21 AM ----------
Appreciate it! is working fine on my Moto g5
Click to expand...
Click to collapse
Pura vida!
I had a bit of trouble getting it to work on my Moto G4, just updated to Nougat. When I run the following code in an android terminal, it does not return an error, but pulls up a new line almost instantly.
Code:
pm uninstall -k --user 0 com.amazon.phoenix
The ads were still there, even after restarting
When I run the following while connected with adb, it returns "Success"
Code:
adb shell pm uninstall -k --user 0 com.amazon.phoenix
The ads were still there, but after restarting they were gone (Whoo!!)
I would really like to bypass the lockscreen entirely as I don't like to have a password, but they disabled that since that would bypass the ads. Pretty annoying

Can't set favorite launcher as default

Hi,
I have a bluboo mini phone with marshmallow 6.0 installed.
It comes with some non-descript launcher called "phenix" installed.
My favorite launcher is line launcher, it doesn't matter what other launcher
I install; I can never set it as the default with constantly getting a popup
message telling me to chose one, and do I want to use the one I choose,
always, or just once? I always choose always, and it never does always.
Going into settings and disabling phenix doesn't do anything either.
Neither does removing any and all permissions for phenix.
PS: I also went into the line launcher settings, and set it as the default app there. Still no good.
It can't be rooted. I also tried debloater, with the universal adb drivers installed. No good!
Help please!
Solved it!
You'll need ADB on your computer. phone with USB debugging on. then open a command prompt and type:
adb root [ENTER]
adb shell [ENTER]
shell will open, then you type:
pm uninstall --user 0 com.cooee.phenix [ENTER]
pm uninstall --user 0 com.sinozo.scweather [ENTER]
after each [ENTER] on the shell, you should get a "success" message.
here on my bluboo mini phenix launcher is gone. scweather is gone. I'm using google now launcher, and phone didn't ask to 'select' the launcher anymore.

[MOTO G8+] "You cannot install this app because another user..."

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.

Disabling unwanted apps through ADB

Hi guys,
Just purchased a Moto G8 Power and want to disable som Google preinstalled apps that I won't use.
I've already done this on a Huawei P30 Pro so I know how to do it.
Here are my questions.
If I disable the unwanted apps through ADB will this prevent future OTA updates?
Also, will future OTA updates reactivate the apps that I disabled through ADB?
Thanks!
Assuming you are rooted. Why disable when you can completely remove apps you consider to be bloatware?
The uninstall command to using in ADB is:
Code:
adb shell pm uninstall -k --user 0 PASTE_PACKAGE_NAME_HERE
Use the command below to get a list of the installed package apps on your phone. You want to use the part that starts with: com.some_package_name when using the command above to uninstall an app from your phone using ADB.
Code:
adb shell pm list packages
This version of the same command should help you find the list of packages associated with the facebook app so you can nuke it from orbit.
Code:
adb shell pm list packages facebook
This worked on my 2020 Moto G Power phone and I hope it works for you. And yes I know most of this can be found by doing a search online.

Categories

Resources