I wanted to get ris of the OTA update program cause I don't want to update my phone. I connected it to USB and ran
pm uninstall -k --user 0 com.motorola.cc.ota
And it succeeded. However upon reboot, it no loner detects my SIM card. So I tried to put it back using:
adb shell cmd package install-existing com.motorola.cc.ota
And I get an error, /system/bin/sh: package: not found. What is the correct adb command to get the package reinstalled? It looks like install-existing is not a recognized command
Had to do a factory reset to save device. The instructions to reinstall apps does not work for Android 6 and below.
Related
Secure Folder on Galaxy S8 does not allow me to install/move the Amazon app.
I get "This app is not optimized for use with Secure Folder". Google Play Store will throw error -501.
Anyone else getting the same?
Thanks guys.
I have been getting this error too and don't really know how to move forward. The app I'm developing is now 100% unable to install and I'm now completely blocked from developing on it.
This was working a week ago and the phone has been off since then.... classic Samsung breaking everything again.
Try This
adb shell pm install -i "com.android.vending" -r -g --user 0 /sdcard/XXXXXXX.apk
Works OK for me
Regards !
Robertol71 said:
Try This
adb shell pm install -i "com.android.vending" -r -g --user 0 /sdcard/XXXXXXX.apk
Works OK for me
Regards !
Click to expand...
Click to collapse
Thanks, worked for me too:good:
I've got the same issue.
Unfortunately
Code:
adb shell pm install -i "com.android.vending" -r -g --user 0 /sdcard/XXXXXXX.apk
does not help me. After executing this line, the amazon app gets installed in regular system, thus appearing on the desktop of my S8 instead of Secure Folder. Do you have an idea what I'm doing wrong here?
hi can anyone post adb commands to uninstall bloat or apps like facebook,one drive etc
abhijeetn said:
hi can anyone post adb commands to uninstall bloat or apps like facebook,one drive etc
Click to expand...
Click to collapse
adb devices ---> Identify if device is connected.
adb shell ---> To enter commands.
pm uninstall -k --user 0 "X" ---> X is app location (i use App Aplication Info to get it)
cmd package install-existing "X" ---> If you f*cked up and have to reinstall what you deleted.
Hello
I have uninstalled Miui Gallery application with the following command with adb:
pm uninstall -k --user 0 com.miui.gallery
It breaks the doodling functionality on screenshots
I'm not root, how could I install it again without having to reset my phone? Thank.
jorge_94 said:
Hello
I have uninstalled Miui Gallery application with the following command with adb:
pm uninstall -k --user 0 com.miui.gallery
It breaks the doodling functionality on screenshots
I'm not root, how could I install it again without having to reset my phone? Thank.
Click to expand...
Click to collapse
download apk is here.
https://www.apkmirror.com/apk/xiaomi-inc/miui-gallery/
No work
thiagoribeirorj said:
download apk is here.
Click to expand...
Click to collapse
It does not work.
Solved
I have already solved. You just have to install some file explorer that can see the / (it does not matter if you are root or not, since we are not going to modify permissions or anything), for example, File Explorer. Enter / system / priv-app, we get a folder called MiuiGallery and inside is the apk. We installed it and everything works.
Just to comment about 2 years later... At least in my Xiaomi Mi 9T I uninstalled the Gallery and after reinstalling it, the app kept crashing.
The solution was to install it anyway and then go to System -> Apps -> Manage Apps, find the Gallery app and Uninstall the Updates... Basically this will revert to the "system" app and the app should run again...
The MI 9T is running on Android 10, MIUI 12.0.9.0.
HTH
I have found the solution.
you can simply use
1 adb shell
2 cmd package install-existing com.miui.gallery
and you'll get the package back .
Charlz. said:
I have found the solution.
you can simply use
1 adb shell
2 cmd package install-existing com.miui.gallery
and you'll get the package back .
Click to expand...
Click to collapse
you can use this method for every other apps
Even you can re-install the .apk file from GetApps.
It should work.
I just bought a OP 8 Pro, unlocked the bootloader and rooted him.Obviously, I would like to uninstall pre-installed apps but impossible.System is locked into read-only mode.I tried all solution I can find but nothing.And I've found this one.You have to install adb before and USB Debugging enabled.Plug the phone into PC and change it from charge only to file transfer.In the folder where adb is installed, you have to do SHIFT+RIGHT CLICK to open PowerShell.Then, in the terminal, enter :adb devicesThis print the serial number of the device (first time you have to click ok on the phone).after, enter :adb shellYou are into your phone.execute the next command :pm uninstall -k --user 0 "name of package" (without quote. You can see the name of package in Titanium or SD Maid for exemple.)Done It seems to be ok for me.
thanks! Here's also a popular way to debloat:
[Magisk Debloat] [OOS A10] Eagle debloater V1.5
You can use adb shell. You need to platform tool. Install on computer.
You need to add path to system.
You can use below command.
pm uninstall -k --user 0 package name.
Thanks for Eagles Debloater but I Just want to uninstall one app. Not a lot.
Johncaffee said:
I just bought a OP 8 Pro, unlocked the bootloader and rooted him.
Obviously, I would like to uninstall pre-installed apps but impossible.
System is locked into read-only mode.
I tried all solution I can find but nothing.
And I've found this one.
You have to install adb before and USB Debugging enabled.
Plug the phone into PC and change it from charge only to file transfer.
In the folder where adb is installed, you have to do SHIFT+RIGHT CLICK to open PowerShell.
Then, in the terminal, enter :
adb devices
This print the serial number of the device (first time you have to click ok on the phone).
after, enter :
adb shell
You are into your phone.
execute the next command :
pm uninstall -k --user 0 "name of package" (without quote. You can see the name of package in Titanium or SD Maid for exemple.)
Done
It seems to be ok for me.
Click to expand...
Click to collapse
My solution is not ok. It seems to be ok but the apk of the app is always in Root Explorer
Problem with Android 11. It is blocked in read-only mode.
Hello XDA users and Fire TV users, Amazon now blocked the adb shell pm disable-user command permanently. You can no longer block update packages 7.2.7.3/6.2.8.7 and higher. If you just updated your device without applying the system components updates, it should still work so avoid those incremental updates if you can while it lasts.
I'm currently running a Fire TV Stick Lite [TWRP Unlocked] (sheldon) on firmware 7.2.4.2 (PS7242/3515)
The pm disable-user is as follows from adb prompt:
pm disable-user com.amazon.device.software.ota
Security exception: cannot disable a protected package: com.amazon.device.software.ota
Yes mate, newer versions affect custom launchers being permanent too. https://www.aftvnews.com/amazon-blocks-custom-home-launchers-with-latest-fire-tv-software-update/
Skel40 said:
The pm disable-user is as follows from adb prompt:
pm disable-user com.amazon.device.software.ota
Security exception: cannot disable a protected package: com.amazon.device.software.ota
Click to expand...
Click to collapse
The command for unlocked/rooted devices is
pm disable com.amazon.device.software.ota
I guess you know that already, isn't it?
And this would be the command for the locked devices... which is blocked on the latest?
pm disable-user --user 0 com.amazon.device.software.ota
Sus_i said:
The command for unlocked/rooted devices is
pm disable com.amazon.device.software.ota
I guess you know that already, isn't it?
And this would be the command for the locked devices... which is blocked on the latest?
pm disable-user --user 0 com.amazon.device.software.ota
Click to expand...
Click to collapse
Yes which still works with root installed. The command is blocked on latest with system components installed for locked devices. It won't work. Maybe eventually it'll be rolled out as a system update so I wouldn't update if you use the custom launchers and want updates blocked. If they can permanently block launchers they can block update blocker tools from working anymore and it'll continue with newer methods. If anyone has a Fire TV Stick Lite and wants to unlock it. Now would be your best bet before it's patched.
I've enabled adb on rooted FTV2 sloane and launched adb shell (as administrator) but when I run pm disable com.amazon.device.software.ota I get an Error: java.lang.SecurityException: Permission Denial: attempt to change component state from pid=9891, uid=2000, package uid=32011
I was able to run pm clear com.amazon.device.software.ota with success
How do I overcome the permissions denial
hafren said:
I've enabled adb on rooted FTV2 sloane and launched adb shell (as administrator) but when I run pm disable com.amazon.device.software.ota I get an Error: java.lang.SecurityException: Permission Denial: attempt to change component state from pid=9891, uid=2000, package uid=32011
I was able to run pm clear com.amazon.device.software.ota with success
How do I overcome the permissions denial
Click to expand...
Click to collapse
You need to spawn a root shell before running the pm disable cmd. In order to do so, run 'su'.
Rortiz2 said:
run 'su'.
Click to expand...
Click to collapse
When I run su nothing happens, and I cant enter the pm disable command as it seems the adb shell is frozen
Code:
C:\adb>adb shell
[email protected]:/ $ su
Ok so I changed my usb a-a cable I retried su - this time I do get a flashing cursor so entered the commands but still received no feedback from device (its a ftv2 sloane rooted twrp via amonet)
Code:
C:\adb>adb devices -l
List of devices attached
G070GV146247023P device product:full_sloane model:AFTS device:sloane transport_id:1
C:\adb>adb shell
[email protected]:/ $ su
pm disable com.amazon.device.software.ota
pm disable com.amazon.device.software.ota.override
pm disable com.amazon.tv.forcedotaupdater
pm disable com.amazon.tv.forcedotaupdater.v2
exit
exit
pm clear com.amazon.device.software.ota
[email protected]:/ $ su
Should result in
[email protected]:/ #
The '$' turning to a '#' indicates you now have root privileges. It looks like your device is hanging on the su command, with no confirmation the request was granted.
Finnzz said:
[email protected]:/ $ su
Should result in
[email protected]:/ #
The '$' turning to a '#' indicates you now have root privileges. It looks like your device is hanging on the su command, with no confirmation the request was granted.
Click to expand...
Click to collapse
Thanks that's really helpfull to learn. I think I have an issue with magisk so will reinstall from twrp.
OK solved it - magsik had not fully loaded to allow root selection. Now working- Really appreciate learning the '$' turning to a '#' indicates you now have root privileges
hafren said:
I've enabled adb on rooted FTV2 sloane and launched adb shell (as administrator) but when I run pm disable com.amazon.device.software.ota I get an Error: java.lang.SecurityException: Permission Denial: attempt to change component state from pid=9891, uid=2000, package uid=32011
I was able to run pm clear com.amazon.device.software.ota with success
How do I overcome the permissions denial
Click to expand...
Click to collapse
Extremely hard to currently override their malicious updates .
the problem is for most Amazon recent devices , the firmware updates have been slowly
Removing user control away from the device owner , and little by little giving more and more control to Amazon by them hitting your device with malicious updates that change how your device originally worked.
For anyone with a locked device , try an alternative method using no root firewall
or check out teckdoctoruk On YouTube and search his channel for vpn app to
block Amazon updates . either or works , firewall app like no root firewall or
a vpn app that blacklists updates.
Check his page out because he simplifies the process.
Just remember , mileage will vary depending on what malicious updates you already got
From Amazon that changed your device already.
Using a firewall or VPN app to block updates only prevents further Amazon updates from
hitting your box , so it can't remove updates that already changed thing's.