Getting DeadObjectException on uninstalling any app - Android Q&A, Help & Troubleshooting

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

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.

Remove/reinstall Nokia camera app - lost location ability

Suddenly, a lot of my apps no longer could get a location lock.
Google maps, messenger, Instagram, the built in camera app, etc
However, other apps )and newly downloaded apps) work (including GPS tester, yell, etc)
To fix most of those apps, I either uninstalled/reinstalled and that worked. For ones that couldn't , like maps, I uninstalled the "updates" through play store and then re-instslled them and that worked.
The only one I can't fix is the built in camera app. I tried disabling, re-enabling, clearing data/cache, nothing worked
Is there a way to force remove the app and reinstall it? Hopefully someone can help. Thanks!
Resolved!
Was able to enable USB Debugging, and then go into the adb shell (through MAC OS X, USB connection)
uninstalled the nokia camera all that way and then was able to re-install the camera and now it works with location!
FYI, Here were the commands ran:
./adb shell
pm list packages | grep cam
CTL_sprout:/ $ pm uninstall -k --user 0 com.hmdglobal.camera2

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.

"delete failed user restricted" Getting this error while removing bloatware in Vivo using ADB. Help me out

"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

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