FORUMS
Remove All Ads from XDA

Disable system apps without root (even those with disabled Disable button)

104 posts
Thanks Meter: 40
 
By cile1977, Senior Member on 1st November 2016, 09:32 AM
Post Reply Email Thread
You can disable all system apps without root even those that cannot be disabled from Settings - like Mcafee an LG Health:
- Install adb
- connect your phone and turn on usb debugging
- find the name of the app you want to block with:
adb shell pm list packages
(You can filter the results on windows by adding | findstr "TERM" or | grep "TERM" on linux / mac where you would replace TERM with the word you are looking for. This would look like:
- adb shell pm list packages | findstr "inputmethod"
adb shell pm list packages | grep "inputmethod"
- "Hide" the app with:
adb shell pm hide "packagename"
(where you would replace "packagename" with the name acquired in step 3)
(https://www.reddit.com/r/Android/com...shell_pm_hide/)
I thought it just hides apps, but I googled it and it seams it really disables apps. I tried it with com.lge.mlt, Mcafee and LG Health and now I get more than 5 hours of SoT compared to 3 hours before.
The Following User Says Thank You to cile1977 For This Useful Post: [ View ] Gift cile1977 Ad-Free
 
 
1st November 2016, 09:33 AM |#2  
OP Senior Member
Flag Brodski Stupnik
Thanks Meter: 40
 
More
If you have LG PC Suite installed, you already have working adb in its folder...
1st November 2016, 09:38 AM |#3  
OP Senior Member
Flag Brodski Stupnik
Thanks Meter: 40
 
More
Little correction to above manual: Once you run adb shell you don't have to keep running it. You're already in the shell.

adb shell
pm list packages -e (the e will show only ones that are enabled)
pm hide "package.name"
exit
The Following User Says Thank You to cile1977 For This Useful Post: [ View ] Gift cile1977 Ad-Free
8th April 2018, 09:26 AM |#4  
KuGeL94's Avatar
Senior Member
Flag Germany
Thanks Meter: 98
 
More
Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS.
The Following User Says Thank You to KuGeL94 For This Useful Post: [ View ] Gift KuGeL94 Ad-Free
11th May 2018, 09:39 PM |#5  
Senior Member
Thanks Meter: 21
 
More
Quote:
Originally Posted by KuGeL94

Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS.

It worked when the initial post was made - seems that Android stopped that in an update around August 2016.

However, since this comes up high on a google search (which I just did) I thought I'd post for anyone running across it.

You can achieve similar on even Oreo, at least on a Huawei device, by using "pm uninstall -k --user 0 packagename" (Replace packagename with relevant full package name).

This uninstalls the app for the current user only (user 0) (so doesn't need root) so if you do a factory reset (and I guess an OTA upgrade) the app will return. It does seem to uninstall rather than hide though - so obviously be cautious and take a back up first in case you have to do a factory reset.

Hope that helps the next person finding this thread on a search!
The Following 3 Users Say Thank You to gonzo99 For This Useful Post: [ View ] Gift gonzo99 Ad-Free
21st June 2018, 05:53 AM |#6  
Scott's Avatar
Recognized Developer
Flag Fargo
Thanks Meter: 66,150
 
Donate to Me
More
Quote:
Originally Posted by gonzo99

It worked when the initial post was made - seems that Android stopped that in an update around August 2016.

However, since this comes up high on a google search (which I just did) I thought I'd post for anyone running across it.

You can achieve similar on even Oreo, at least on a Huawei device, by using "pm uninstall -k --user 0 packagename" (Replace packagename with relevant full package name).

This uninstalls the app for the current user only (user 0) (so doesn't need root) so if you do a factory reset (and I guess an OTA upgrade) the app will return. It does seem to uninstall rather than hide though - so obviously be cautious and take a back up first in case you have to do a factory reset.

Hope that helps the next person finding this thread on a search!

Ha! yeah, I was just doing some research and you are right on all three accounts.

1. This is top in google search
2. The PM Uninstall command works great!
3. Its really really gone so be careful!
The Following 2 Users Say Thank You to Scott For This Useful Post: [ View ]
25th July 2018, 03:57 PM |#7  
Senior Member
Brescia
Thanks Meter: 105
 
More
Quote:
Originally Posted by gonzo99

It worked when the initial post was made - seems that Android stopped that in an update around August 2016.

However, since this comes up high on a google search (which I just did) I thought I'd post for anyone running across it.

You can achieve similar on even Oreo, at least on a Huawei device, by using "pm uninstall -k --user 0 packagename" (Replace packagename with relevant full package name).

This uninstalls the app for the current user only (user 0) (so doesn't need root) so if you do a factory reset (and I guess an OTA upgrade) the app will return. It does seem to uninstall rather than hide though - so obviously be cautious and take a back up first in case you have to do a factory reset.

Hope that helps the next person finding this thread on a search!

should become a sticky. we could make a script for samsung bloatware
24th August 2018, 03:07 PM |#8  
prahladyeri's Avatar
Member
Thanks Meter: 27
 
Donate to Me
More
Quote:
Originally Posted by gonzo99

It worked when the initial post was made - seems that Android stopped that in an update around August 2016.

However, since this comes up high on a google search (which I just did) I thought I'd post for anyone running across it.

You can achieve similar on even Oreo, at least on a Huawei device, by using "pm uninstall -k --user 0 packagename" (Replace packagename with relevant full package name).

This uninstalls the app for the current user only (user 0) (so doesn't need root) so if you do a factory reset (and I guess an OTA upgrade) the app will return. It does seem to uninstall rather than hide though - so obviously be cautious and take a back up first in case you have to do a factory reset.

Hope that helps the next person finding this thread on a search!

Thanks, this is exactly what I was looking for. Even on Marshmallow, the hide and unblock commands don't work, so this is probably the only way to get rid of bloatware. But the uninstall command is a bit dangerous since the changes are permanent, is there a way to get the app back once uninstalled?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread