[GUIDE] How to remove Facebook Services and other bloatware WITHOUT Root - OnePlus Nord Guides, News, & Discussion

I was very dissapointed to see that Oneplus now ships more bloatware such as Facebook with it´s phones. While you can uninstall the app itself, there are a few Facebook-related frameworks in the background that cannot be uninstalled that easy. However with a couple quick ADB command you can solve that problem in a few minutes. With this method you can remove unwanted apps for the (current) user while not touching the firmware thus keeping OTA updates working.
You need:
- A Computer
- Fastboot --> I use: https://forum.xda-developers.com/showthread.php?t=2317790
- USB - Debugging ENABLED on your phone
How to do it:
Simply connect your phone via USB and open the ADB command window and type the following
("-k" will leave the cache intact, you ca remove this part if you want to clean up even more. However I had problems without it in the past in rare cases so I included it)
Code:
adb shell
pm uninstall -k --user 0 com.facebook.appmanager
pm uninstall -k --user 0 com.facebook.services
pm uninstall -k --user 0 com.facebook.system
Once thats done reboot your phone. Done.

thx for the guide..
just wanna ask, if there is root, can the "-k --user 0" part be omitted to really completely remove all facebook trash?
tia..

iamelton said:
thx for the guide..
just wanna ask, if there is root, can the "-k --user 0" part be omitted to really completely remove all facebook trash?
tia..
Click to expand...
Click to collapse
With root I would try this instead.
Code:
adb shell
su
mount -o rw,remount /system
rm -rf /system/app/[I]unwanted.apk[/I]
rm -rf /data/data/[I]package[/I]
mount -o ro,remount /system
exit
Even without root you could leave the "-k" out but since it only leaves the cache intact I thought to include it just in case.

Saiger said:
With root I would do this instead.
Code:
adb shell
su
mount -o rw,remount /system
rm -rf /system/app/[I]unwanted.apk[/I]
rm -rf /data/data/[I]package[/I]
mount -o ro,remount /system
exit
Even without root you could leave the "-k" out but since it only leaves the cache intact I thought to include it just in case.
Click to expand...
Click to collapse
thx a lot..
since this time its deleting the apks directly, could you provide the apk file names of the facebook framework as well?
or better, add them to the first post so that others may benefit..

iamelton said:
thx a lot..
since this time its deleting the apks directly, could you provide the apk file names of the facebook framework as well?
or better, add them to the first post so that others may benefit..
Click to expand...
Click to collapse
Sure here you go:
Code:
com.facebook.system -> Facebook App Installer
com.facebook.appmanager -> Facebook App Manager
com.facebook.services -> Facebook Services
But with root I would just use an app instead else its too much a hassle

..

DIR49DNOR0N said:
Dare to recommend a reliable root file manager that's good for this?
I'd also be interested if there's any difference in removing the package files vs disabling them via ADB? my current understanding: there is none except you gain back the megabytes
Click to expand...
Click to collapse
I always used Titanium Backup for uninstalling apps however there seems to be an expection with OOS were it can´t remove the apps from the system folder making it useless. I have to check that.
As for disabling vs removing the files, you are right there´s no difference between them when it comes to stopping them from working on the backround and so on.

..

Lovely ! Thanks a lot.
When the next OTA update will be released, will the apps reinstall again on the device, or it is a one-time thing to do ?

Logiel said:
Lovely ! Thanks a lot.
When the next OTA update will be released, will the apps reinstall again on the device, or it is a one-time thing to do ?
Click to expand...
Click to collapse
It´s a one time thing. They will stay uninstalled for the current user.

my OPN just arrived today, and i discovered that beside Facebook, there are also Instagram & Messenger pre-installed..
while the latter two apps can be uninstalled, are there any framework apps related to these 2 apps that should be disabled?
tia..

iamelton said:
my OPN just arrived today, and i discovered that beside Facebook, there are also Instagram & Messenger pre-installed..
while the latter two apps can be uninstalled, are there any framework apps related to these 2 apps that should be disabled?
tia..
Click to expand...
Click to collapse
Since instagram and messenger are from Facebook they all share the same "behind the scenes" framework. So you don´t have to disable anything else.

iamelton said:
my OPN just arrived today, and i discovered that beside Facebook, there are also Instagram & Messenger pre-installed..
while the latter two apps can be uninstalled, are there any framework apps related to these 2 apps that should be disabled?
tia..
Click to expand...
Click to collapse
Specifically: com.facebook.services , com.facebook.system , com.facebook.appmanager, uninstall these in adb. Thankfully instagram is not a system app, uninstall is enough :good:

Can we also delete any other apps e.g. play movies etc?

funnybones said:
Can we also delete any other apps e.g. play movies etc?
Click to expand...
Click to collapse
yea just replace the package name with the one from the app you want gone: com.google.android.videos

is safe to say that disabling the three services i get the same result ?

raoh980 said:
is safe to say that disabling the three services i get the same result ?
Click to expand...
Click to collapse
pretty much yes

funnybones said:
Can we also delete any other apps e.g. play movies etc?
Click to expand...
Click to collapse
using App Inspector from play store you can get the exact name of each app you want to remove

Hey i Just got my Nord (EU Version) and I was able to just uninstall the preinstalled apps without ADB. Just like every other app I could completely remove it (not deactivate).

Jonny108 said:
Hey i Just got my Nord (EU Version) and I was able to just uninstall the preinstalled apps without ADB. Just like every other app I could completely remove it (not deactivate).
Click to expand...
Click to collapse
the facebook framework apps are the part that has to be deactivated (since they cannot be uninstalled without root)..

Related

[GUIDE] Remove system apps/bloat - ADB | NO ROOT

Hello all,
I found a nice little guide, which works on most of the android phones - if you want to remove system apps, but do not want to root.
All credits to dosangst on Reddit!
Working ADB connection is required.
And as always, be careful what you remove! Removing critical apps will result in bootloop and you have to reflash firmware/ROM.
1. connect device, make sure ADB is working (check with CMD "adb devices")
2. go to shell, using CMD "adb shell"
3. get list of install packages using CMD "pm list packages" (use google to find out what does each package name means).
4. remove package using CMD "pm uninstall -k --user 0 $packagname" (e.g. pm uninstall -k --user 0 com.android.inputdevices)
5. if correctly typed, you receive message "SUCCESS"
Optionally a reboot might be required.
Thanks.
@davebugyi
thanks for this thread. working great.
Thanks bro
In fact , we can use some data erase software , of course ,we need to install it form its website, it isn't free
Thanks thanks thanks!!! Yeah
Thank's, working good on P9 too.
Could anyone please enlighten me (and all others who might wounder) which of the system apps that can be removed "safely"?
I went form a OnePlus X and got the P10 mainly cause I got it for 359$ / 313€ without contract but I really don´t like bloat apps. HiCare might be OK to have but Notes, Music, Videos, E-mail, Health, Gallery and possibly some more apps are just a waste of space since I prefer other apps for that. I guess I just could make a folder and put all Huawei bloat inside of it and just feel a little sick each time I scroll by it so it would be nice to remove as much of it as possible.
I would happily donate a beer to the person who comes up with a list of "safe" apps to remove.
SwedishBadger said:
Could anyone please enlighten me (and all others who might wounder) which of the system apps that can be removed "safely"?
I went form a OnePlus X and got the P10 mainly cause I got it for 359$ / 313€ without contract but I really don´t like bloat apps. HiCare might be OK to have but Notes, Music, Videos, E-mail, Health, Gallery and possibly some more apps are just a waste of space since I prefer other apps for that. I guess I just could make a folder and put all Huawei bloat inside of it and just feel a little sick each time I scroll by it so it would be nice to remove as much of it as possible.
Click to expand...
Click to collapse
I want to know too, what apps we can remove safely.
Is it safe to remove "Huawei Mobile Services"? Also, it is so weird that my P10 has facebook and facebook messenger as system app...
nice
Music, Videos, E-mail, Health, Gallery and possibly some more apps are just a waste of space since I prefer other apps for that. I guess I just could make a folder and put all Huawei bloat inside of it and just feel a little sick each time I scroll by it so it would be nice to remove as much of it as possible.
How is this possible?
Android mount /system as readonly when device boots. Due to that (seems) not possible to uninstall apps from /system. I think you are uninstalling apps that are installed on /data/app but not /system apps.
Apps installed on /data/app can be unistalled accessing to android settings -> apps -> [select a app] -> uninstall
davebugyi said:
Hello all,
I found a nice little guide, which works on most of the android phones - if you want to remove system apps, but do not want to root.
All credits to dosangst on Reddit!
Working ADB connection is required.
And as always, be careful what you remove! Removing critical apps will result in bootloop and you have to reflash firmware/ROM.
1. connect device, make sure ADB is working (check with CMD "adb devices")
2. go to shell, using CMD "adb shell"
3. get list of install packages using CMD "pm list packages" (use google to find out what does each package name means).
4. remove package using CMD "pm uninstall -k --user 0 $packagname" (e.g. pm uninstall -k --user 0 com.android.inputdevices)
5. if correctly typed, you receive message "SUCCESS"
Optionally a reboot might be required.
Click to expand...
Click to collapse
bartito said:
How is this possible?
Android mount /system as readonly when device boots. Due to that (seems) not possible to uninstall apps from /system. I think you are uninstalling apps that are installed on /data/app but not /system apps.
Apps installed on /data/app can be unistalled accessing to android settings -> apps -> [select a app] -> uninstall
Click to expand...
Click to collapse
I do not know the technical background, but probably it evokes some special user priviliges hidden in the system.
To be honest I never checked where are those apps located.
For example try to uninstall GBoard (vtr-l29, B151)- not possible, not even the disable function. With this method it could be removed.
The apps are only removed for the current user. Detailed info is here: https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/
I was practising this method months ago and I just found out that after I rooted my phone apparently the apps are still inside data folder. Or maybe something happened in between that I wasn't aware of.
Tried to remove com.android.calendar but no luck
OMG, thanks dude! :*
Thanks
Works great on Huawei Y5 201 7 also
any way to revert changes without a fact reset?
People if you don't like the original Huawei apps you probably don't like the default launcher. Why not just use for example nova launcher and hide all the apps that you don't use from launcher. Also you can change settings in advanced apps settings to use apps you prefer as default. Like gmail as main mail app, Google photos for gallery and so on.
64GB is enough to keep all those apps there.

How to completely uninstall system app (rooted)?

How do I go about completely uninstalling a system app on a rooted device?
My searches resulted in
- non-rooted approach of disabling/uninstalling the app for the main user via 'pm uninstall -k --user 0'. I'm interested in a complete uninstall.
- references to Play Store apps. I'd rather have a cmd-line or script approach if possible.
Background:
I'm trying to downgrade my version of com.google.android.googlequicksearchbox
- trying to install an older version results in Failure:
Code:
pm install -r -d /sdcard/Download/com.google.android.googlequicksearchbox_6.13.25.21.>
Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
- so I figure I need to completely uninstall it first.
If it makes a difference, the device is running LineageOS 14.1 (Android 7.1.2)
thanks
albert
AlbertDude said:
How do I go about completely uninstalling a system app on a rooted device?
My searches resulted in
- non-rooted approach of disabling/uninstalling the app for the main user via 'pm uninstall -k --user 0'. I'm interested in a complete uninstall.
- references to Play Store apps. I'd rather have a cmd-line or script approach if possible.
Background:
I'm trying to downgrade my version of com.google.android.googlequicksearchbox
- trying to install an older version results in Failure:
- so I figure I need to completely uninstall it first.
If it makes a difference, the device is running LineageOS 14.1 (Android 7.1.2)
thanks
albert
Click to expand...
Click to collapse
Download RootBrowser here :
https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree
Open Root browser , then go to /system/apps
Search for the Velvet folder and delete it , then reboot your device .
Warning:
This may cause random Force Close and several issue due the link between google app and other apps.
Thanks for the tip about Velvet
It was found under /system/priv-apps
After removing Velvet (I copied it to /sdcard so I could easily restore it later), I was able to install an old version of googlequicksearchbox.
I then put Velvet back.
And the old version of the quick searchbox app (with the swipe-right to dismiss feature) seems to be working.
Thanks!
RaiZProduction said:
Download RootBrowser here :
https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree
Open Root browser , then go to /system/apps
Search for the Velvet folder and delete it , then reboot your device .
Warning:
This may cause random Force Close and several issue due the link between google app and other apps.
Click to expand...
Click to collapse

How do i uninstall app market and game center from realme 6 4gb variant(without root)

I have tried uninstalling using adb, it was successful for other apps but these two apps do not seem to want to go away.
My device is on the Latest version of the global release of realme UI ,and powershell is throwing an error 'delete_failed_internal_error'
this is the command that I used - 'pm uninstall -k --user0 com.heytap.market'. I was able to successfully delete the browser and similar apps using this command. I tried searching for device administrator but but both of those apps are not device admin either.
PLEASE HELP.
I need to try out your method. By the way do you remember which stock apps you had removed without a system error?
ap6709 said:
I need to try out your method. By the way do you remember which stock apps you had removed without a system error?
Click to expand...
Click to collapse
Game space, browser, google duo, play movies, theme store and weather
Try app market and game center and do tell what happens.
I am always getting this message "Failure [DELETE_FAILED_INTERNAL_ERROR]" and hence I decided to wait for root access.
Ebebeeh said:
I have tried uninstalling using adb, it was successful for other apps but these two apps do not seem to want to go away.
My device is on the Latest version of the global release of realme UI ,and powershell is throwing an error 'delete_failed_internal_error'
this is the command that I used - 'pm uninstall -k --user0 com.heytap.market'. I was able to successfully delete the browser and similar apps using this command. I tried searching for device administrator but but both of those apps are not device admin either.
PLEASE HELP.
Click to expand...
Click to collapse
Can u please describe the procedure how u uninstalled the system apps because i also want to remove them.Sorry this reply is not related to your solution.
Game center cannot be deleted. I tried too on 6 pro. Doesn't work. That and Oroaming.
You can try using this command:
pm disable-user --user 0 com.heytap.market
will not work
Sakai121 said:
You can try using this command:
pm disable-user --user 0 com.heytap.market
Click to expand...
Click to collapse
it won't work
PS C:\adb> .\adb shell pm disable-user --user 0 com.heytap.market
Package com.heytap.market new state: default
No tap market on europea version
Using ADB to remove some bloatware apps
chinmay kumar said:
Can u please describe the procedure how u uninstalled the system apps because i also want to remove them.Sorry this reply is not related to your solution.
Click to expand...
Click to collapse
@chinmay kumar you can use adb to remove apps by using adb shell pm uninstall -k --user 0 <package-name>. This command will likely remove all packages that you want to remove. It does give error in some cases like while uninstalling game center on realme 6. This command can be used on many devices I have tried it on redmi note 7, realme 3 and realme 6.
Here is a guide you can follow - https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/
and other one is https://fossbytes.com/delete-bloatware-from-android-preinstalled-apps/.
Here 0 represents the user id...so you may want to look on which user an app is installed. Refer to the guide for adb installation and more.
Sorry, I also couldn't uninstall app market, game center from my device.
But I uninstalled oroaming successfully.
pm uninstall –k ––user 0 com.redteamobile.roaming
Use this to remove oroaming.

How to delete stock apps using adb?

Hello.
Tell, how to delete stock apps using adb when phone is without root. Right now i have such mistake:
D:\adb>adb shell
DRX:/ $ pm uninstall com.google.android.gm.lite
Failure [DELETE_FAILED_INTERNALL_ERROR]
Whats wrong?
Apps installed as system app can only get uninstalled if Android is rooted.
qwark1 said:
Hello.
Tell, how to delete stock apps using adb when phone is without root. Right now i have such mistake:
D:\adb>adb shell
DRX:/ $ pm uninstall com.google.android.gm.lite
Failure [DELETE_FAILED_INTERNALL_ERROR]
Whats wrong?
Click to expand...
Click to collapse
Its totally possible, https://forum.xda-developers.com/t/guide-debloat-remove-stock-apps-without-root.3794729/
check this out, it worked perfectly for me, and I think is the same procedure for all devices.
andres_vacal said:
Its totally possible, https://forum.xda-developers.com/t/guide-debloat-remove-stock-apps-without-root.3794729/
check this out, it worked perfectly for me, and I think is the same procedure for all devices.
Click to expand...
Click to collapse
This doesn't uninstall ( meaning physically delete from disk ) apps: apps with this method simply get hidden
jwoegerbauer said:
This doesn't uninstall ( meaning physically delete from disk ) apps: apps with this method simply get hidden
Click to expand...
Click to collapse
Ow, so then, the only thing you can do is hide with this method. (also useful)
IMHO instead of simply hiding an app to user, what doesn't prevent the app in question will automatically get started when Android is booted and therefore still performs some actions you don't want to do it ( e.g. connecting to Internet, sending data, downloading data, etc.pp ) thus using system resources as CPU and RAM, is to completely disable the app in question.
Android users may utilize Startup Auditor app what is a very handy app to do so. This app doesn't require Android is rooted.

Question about -k option on ADB uninstall command

Every example that I've seen of the ADB uninstall command has included the -k option to keep the apps data and cache directories.
Generally before I get around to uninstalling an app I mess around with various app settings in an attempt to get the app to work the way I want. I suspect that by saving the apps data and cache directories the app will retain the state of settings that existed prior to being uninstalled.
The problem is that my preference is for the app to be restored without any modifications I may have previously made and therefore I do NOT want to use the -k option when I uninstall an app. My hope is that the reinstalled app will be in its initial factory setup.
I have reinstalled a couple of apps that I uninstalled without using the -k option and I have noticed no ill effects but I worry that there may be some issue with doing it this way.
So does anyone know whether or not my assumption that if an app that was uninstalled without the -k option is reinstalled it will be restored in its default factory configuration is correct? If not then what does happen when an app uninstalled without the -k option is reinstalled?
Mumblefratz said:
...
So does anyone know whether or not my assumption that if an app that was uninstalled without the -k option is reinstalled it will be restored in its default factory configuration is correct? If not then what does happen when an app uninstalled without the -k option is reinstalled?
Click to expand...
Click to collapse
Your assumption is correct.
xXx yYy said:
Your assumption is correct.
Click to expand...
Click to collapse
Thanks. That's what I was hoping.

Categories

Resources