"delete failed user restricted" Getting this error while removing bloatware in Vivo using ADB. Help me out - Android Q&A, Help & Troubleshooting

"delete failed user restricted" Getting this error while removing bloatware in Vivo using ADB. Help me out. Only while removing some app packages, I got this.

What device, and which app,packages?
At a guess, the packages were installed as Sysem apps, and you need to be root to removem them. Ifm you aren't rooted, simply using ADB won't help, because you won't have the required permissions.
_______
Dennis

DMcCunney said:
What device, and which app,packages?
At a guess, the packages were installed as Sysem apps, and you need to be root to removem them. Ifm you aren't rooted, simply using ADB won't help, because you won't have the required permissions.
_______
Dennis
Click to expand...
Click to collapse
I tried to remove Jovi and it gave me this, Maybe as you said as I am not rooted, it can't get in deeper and remove it.

Same problem here on my Vivo Note X. pm uninstall -k --user 0 com.vivo.abe or pm disable-user --user 0 com.vivo.abe didn't work and needs root what sucks.
Looks like they blocked it in OriginOS Ocean, because it worked on older versions.
HoYoLAB - Official Community
HoYoLAB is the community forum for Genshin Impact and Honkai Impact 3rd, with official information about game events, perks, fan art, and other exciting content.
www.hoyolab.com

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.

BEAWARE of Elephone A8

I have bought an Elephone A8 for my girlfriend, and she complained that she was receiving a lot of Chinese advertising. And I can confirm that even after performing a factory reset, Chinese advert appear right after launching the Google Play market application.
After some research I found that some kind of com.adups.fota spyware is indeed installed on the factory ROM of the Elephone A8 phone. I then went ahead and downloaded from your elephone.hk downloads web page and installed the Elephone_A8_20171010 ROM, which shows the same behavior.
At the end I believe the problem is with the Google Play application itself, as in two other phones is pointing to :
package:/data/app/com.android.vending-1/base.apk=com.android.vending
And in the A8 points instead to :
package:/system/priv-app/Phonesky/Phonesky.apk=com.android.vending
The solution that I apply was to remove the Phonesky.apk and install the Google play downloaded from apkmirror.com
I also removed the com.adups.fota
F:\android\platform-tools-latest-windows\platform-tools>adb shell pm uninstall -k --user 0 com.adups.fota.sysoper
Success
F:\android\platform-tools-latest-windows\platform-tools>adb shell pm uninstall -k --user 0 com.adups.fota
Success
So far it seems to be working although of course there is no guarantees that something else is still hidden in there.

Getting DeadObjectException on uninstalling any app

On a fairly old non-rooted Galaxy Tab A-tablet I wanted to uninstall all the Samsung and Microsoft apps and most of the Google packages to make it faster. Using adb shell pm uninstall -k user 0 I uninstalled 106 packages but after "com.sec.android.app.music" I suddenly can't uninstall packages anymore. Instead I get a DeadObjectException and the tablet reboots:
Code:
$ adb shell pm uninstall -k user 0 flipboard.boxer.app
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:628)
at android.os.BinderProxy.shellCommand(Binder.java:675)
at com.android.commands.pm.Pm.runShellCommand(Pm.java:299)
at com.android.commands.pm.Pm.runUninstall(Pm.java:674)
at com.android.commands.pm.Pm.run(Pm.java:170)
at com.android.commands.pm.Pm.main(Pm.java:103)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:315)
It looks to me like pm needs something that isn't there, so I might have uninstalled something that it needs. My question is, how do I find out what it was, and, assuming is wasn't the Samsung music app, why did it function correctly until after I installed that?
Thanks for any help!
I have reset the tablet to factory settings and all the apps are there again, but even now I get the same error when attempting to uninstall any of them.
I'll bump this up, since I just ran into the same issue. At least, for me, I could continue to remove apps, including the one where I made a mistake on (added a space in the middle of the package name). Now, my settings app and another communications app won't work (messages and other apps are still good).
My command prompt text, just in case it'll help fix this issue. I don't know which app was the cause.
Code:
heroqltetmo:/ $ pm uninstall -k --user 0 com. samsung.android.ststub
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:763)
at android.os.BinderProxy.shellCommand(Binder.java:817)
at com.android.commands.pm.Pm.runShellCommand(Pm.java:334)
at com.android.commands.pm.Pm.runUninstall(Pm.java:726)
at com.android.commands.pm.Pm.run(Pm.java:174)
at com.android.commands.pm.Pm.main(Pm.java:107)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:287)
255|heroqltetmo:/ $ pm uninstall -k --user 0 com.samsung.android.ststub
Success
I'll keep checking to see exactly which apps I shouldn't have removed, but there were a few accidentals.
EDIT: Found a way to find the list of uninstalled apps from running the
Code:
pm list
command twice, one with and without a -u to get 2 lists of packages, all before and after the operation. I then used Excel to find and mark any duplicates. Then I took the remaining list and re-installed them (and restarting my device after a few changes). I hit a few issues, with setup wizard failing to work, missing contact names, the Contacts app and a communication app cannot open, settings fails to work, some apps produce sound despite on silent, and not being able to unlock my device (even with a swipe lock). I didn't reset the device, but restart it several times, including booting it to recovery mode.
I'll be uninstalling more apps, setup wizard was an immediate choice, when I could figure this out. In the meantime, I'll be sideloading an app to mute the device.
EDIT 2: No progress, whatsoever, but apps work fine except Settings and LINE (the previously mentioned communications app). LINE is uninstalled (I have it on computer), and apparently (for my default mesaging app), I could see my text messages, but not respond... I might get another device to use (doubting it, as it's the 4th or 5th device I've gone through).
Note: This guide helped me uninstall apps. It was something I spent a while trying to figure out, but finally found something that works (until there's a typo).
I didn't bother with resetting the device, but at least I made backups since I was prepared for a reset to flash custom ROM or just to get root. Well, I did a reset and the device is fixed now. I'll continue to uninstall apps as before.
---------- Post added at 10:11 AM ---------- Previous post was at 09:41 AM ----------
I didn't bother with resetting the device, but at least I made backups since I was prepared for a reset to flash custom ROM or just to get root. Well, I did a reset and the device is fixed now. I'll continue to uninstall apps as before.
EDIT: Uninstalling apps was smooth (at least i have a list now), but I hit the settings app keeps stopping issue after opening an app. Maybe because there's something missing...?

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.

[GUIDE] How to remove Facebook Services and other bloatware WITHOUT Root

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)..

Categories

Resources