ADB {shell pm uninstall} failed - please help! Android 6.0 - General Questions and Answers

Hi, I have problem debloating my Alcatel Pixi 4 (4), also the same with Alcatel U5, they're both running Android 6.0
Code:
D:\Android\Minimal ADB and Fastboot>adb shell
[email protected]:/ $ pm uninstall -k --user 0 <package>
Failure to remove user owner's system package :<package>
1|[email protected]:/ $
I can use pm uninstall command on my Alcatel 1C running android 7.0
Any help would be appreciated!

Cryonics said:
Hi, I have problem debloating my Alcatel Pixi 4 (4), also the same with Alcatel U5, they're both running Android 6.0
Code:
D:\Android\Minimal ADB and Fastboot>adb shell
[email protected]:/ $ pm uninstall -k --user 0 <package>
Failure to remove user owner's system package :<package>
1|[email protected]:/ $
I can use pm uninstall command on my Alcatel 1C running android 7.0
Any help would be appreciated!
Click to expand...
Click to collapse
Are your devices rooted already?

LS.xD said:
Are your devices rooted already?
Click to expand...
Click to collapse
no, I'm uninstalling for current user only, I can do that just fine on my Android 7 devices without root

I know this is a super old thread, but I have the same issue. Baffling that I am unable to do this.

I was following a youtube video from Sep 26, 2020 that expected this to work without root, but got:
$ pm uninstall -k --user 0 com.amazon.windowshop
Failure to remove user owner's system package :com.amazon.windowshop
and `su` is not a recognized command in my adb shell.
Looks like I'll have to root.
(This is an Alcatel Ontouch Pop7 tablet. If I brick it, it's not a big loss. It's so bloated that I get storage space warnings and I think I only have 3 of my own apps installed.)

TecBrat said:
I was following a youtube video from Sep 26, 2020 that expected this to work without root, but got:
$ pm uninstall -k --user 0 com.amazon.windowshop
Failure to remove user owner's system package :com.amazon.windowshop
and `su` is not a recognized command in my adb shell.
Looks like I'll have to root.
(This is an Alcatel Ontouch Pop7 tablet. If I brick it, it's not a big loss. It's so bloated that I get storage space warnings and I think I only have 3 of my own apps installed.)
Click to expand...
Click to collapse
I copy pasted the device you're mentioning in the XDA search bar and found a lot of info you would find helpful Alcatel Ontouch Pop7 tablet - Copy that paste, enter, info. Best of luck, make it happen

Cryonics said:
Hi, I have problem debloating my Alcatel Pixi 4 (4), also the same with Alcatel U5, they're both running Android 6.0
Code:
D:\Android\Minimal ADB and Fastboot>adb shell
[email protected]:/ $ pm uninstall -k --user 0 <package>
Failure to remove user owner's system package :<package>
1|[email protected]:/ $
I can use pm uninstall command on my Alcatel 1C running android 7.0
Any help would be appreciated!
Click to expand...
Click to collapse
you dont need to remove it , just disable it

Related

accidentally uninstalled com.android.certinstaller on stock rom G920FXXU6ERD1

Hi everyone,
I accidentally uninstalled the following app over adb shell:
Code:
pm uninstall -k --user 0 com.android.certinstaller
when I try to reinstall i get this error:
Code:
zeroflte:/ $ cd /system/app/CertInstaller/
pm install CertInstaller.apk
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]
1|zeroflte:/system/app/CertInstaller $
I have SU rights on the stock rom "G920FXXU6ERD1".
Removing the app from /data/system/packages.xml didn't help.
Any Ideas?
Thx!

Can't ADB uninstall bloatware apps

I just purchased a Note10+. I tried to delete the bloatware using platform tools on linux. I am unable to do this. I am entering adb uninstall -k and then the package. I get an error saying the -k function can't work because it can't delete the data. It mentions doing an ADB shell which I have no idea how to do. Any suggestions as to what will work to delete the bloatware. I used this command on my Note9 and it worked then. Please advise.
Follow the tutorial/thread over at S10 forum. Worked fine for me
The general command is as follows:
Code:
adb shell pm uninstall -k --user 0 <package name>
As an example:
Code:
adb shell pm uninstall -k --user 0 com.samsung.android.app.spage
The complete for adb packages for the Note 9 is here,and it worked for my Note 10+
Give it a read and see if it helps.

Easy way to remove Indian specific software (Cloud, Redcable, etc.) from Indian 8T?

Hello,
is there an easy way to remove Indian software and notifications from an Indian 8T?
I have this "Login with OnePlus account" in Settings that I don't want to use for instance.
Thanks for your advice,
Nicolas.
Nice, I've managed to remove Cloud, Red Cable Club and the "Login with OnePlus account" in Settings without rooting by executing:
Code:
adb shell pm uninstall --user 0 com.oneplus.membership
adb shell pm uninstall --user 0 com.heytap.cloud
adb shell pm uninstall --user 0 com.heytap.openid
adb shell pm uninstall --user 0 com.heytap.mcs
Then rebooting.

Read-only file from EMUI 12 update on Huawei P20

Hello,
Since the last update from EMUI 10 to EMUI 12, I find using my P 20 very unpleasant.
For months, I transferred my Keepass file from my pc to a cloud on which allowed me to recover it on my smartphone.
Since the update, I just discovered that my file is read-only and I need to move it to another location. Why ?
I can't even choose location and organization on MY phone.
Similarly, some applications can no longer be deactivated or uninstalled (yes parental control when you're alone is not really useful or the cloud when you want to keep your files on your phone) not to mention the hundreds of connections per day to clouds in China and Russia.
It is very worrying!
I imagine that if my bluetooth no longer works it's because the files can no longer go through the Chinese or Russian cloud?
Has anyone had this read-only file problem and found a solution?
Thank you for your help.
have you tried using adb in order to debloat your phone ?
GitHub - 0x192/universal-android-debloater: Cross-platform GUI written in Rust using ADB to debloat non-rooted android devices. Improve your privacy, the security and battery life of your device.
Cross-platform GUI written in Rust using ADB to debloat non-rooted android devices. Improve your privacy, the security and battery life of your device. - GitHub - 0x192/universal-android-debloater:...
github.com
Fytdyh said:
have you tried using adb in order to debloat your phone ?
GitHub - 0x192/universal-android-debloater: Cross-platform GUI written in Rust using ADB to debloat non-rooted android devices. Improve your privacy, the security and battery life of your device.
Cross-platform GUI written in Rust using ADB to debloat non-rooted android devices. Improve your privacy, the security and battery life of your device. - GitHub - 0x192/universal-android-debloater:...
github.com
Click to expand...
Click to collapse
Hello,
Yes quite,
In adb shell, the following commands return:
Code:
pm uninstall -k --user 0 com.huawei.parentcontrol
Failure [DELETE_FAILED_ABORTED: com.huawei.parentcontrol is not allowed to uninstall.]
gold
pm clear --user 0 com.huawei.parentcontrol
failed
pm uninstall -k --user 0 package:com.huawei.hicloud
Failure [not installed for 0]
pm uninstall -k --user 0 com.google.android.apps.cloudprint
Failure [not installed for 0]
pm uninstall -k --user 0 com.huawei.hicloud
Failure [not installed for 0]
pm uninstall -k --user 0 com.huawei.android.hwpay
Failure [not installed for 0]
I will try universal-android-debloater.
sylv20_m said:
Hello,
Yes quite,
In adb shell, the following commands return:
Code:
pm uninstall -k --user 0 com.huawei.parentcontrol
Failure [DELETE_FAILED_ABORTED: com.huawei.parentcontrol is not allowed to uninstall.]
gold
pm clear --user 0 com.huawei.parentcontrol
failed
pm uninstall -k --user 0 package:com.huawei.hicloud
Failure [not installed for 0]
pm uninstall -k --user 0 com.google.android.apps.cloudprint
Failure [not installed for 0]
pm uninstall -k --user 0 com.huawei.hicloud
Failure [not installed for 0]
pm uninstall -k --user 0 com.huawei.android.hwpay
Failure [not installed for 0]
I will try universal-android-debloater.
Click to expand...
Click to collapse
I try it, but universal-android-debloater can't do anything either.
issue #51 com.huawei.parentcontrol can't be uninstalled/disabled finds that you have to be root to uninstall it.
It should be the same for the others.
I think Huawei shot itself in the foot, not only do they no longer have Android but by tightening the bloating software and preventing rooting, the brand loses its appeal.
I especially don't want to switch to Harmony Os.
They have more to lose than to gain...
Any idea for read-only files in my home folder?

adb shell pm enable does not persist after reboot

I accidentally copied the wrong command and used adb shell pm disable-user --user 0 $app instead of adb shell pm uninstall --user 0 $app
I can uninstall / install-existing it just fine but for some reason using enable doesn't work.
When I do adb shell pm enable $app I get an error message, when I use su it works, and when I first unfreeze it with sdmaid and then use the enable command it works too, however it is back to being disabled again after reboot.
I also tried adb shell pm default-state --user 0 $app with the same result.
It works just fine with other apps, but they are typically either disabled or uninstalled.
Now "com.android.sdm.plugins.connmo", "com.android.sdm.plugins.dcmo" and "com.android.sdm.plugins.diagmon" are both disabled and uninstalled.
I somehow was able to reinstall them and have that persist after reboot but they were still disabled after that.
Always get correct user id of user who should get prevented to run an app
Code:
adb shell "pm list users"
before running shell command like this
Code:
adb shell "pm disable --user <USER-ID> <PKG-NAME>"
and this using the same user id
Code:
adb shell "pm enable --user <USER-ID> <PKG-NAME>"
instead of stupidly using user id 0
What's the matter with just: pm disable com.annoying.app ?
The --user <USER-ID> parameter is usually needed on newer Android versions to specify which user ID the pm utility needs to apply the changes to.
jwoegerbauer said:
Always get correct user id of user who should get prevented to run an app
Code:
adb shell "pm list users"
before running shell command like this
Code:
adb shell "pm disable --user <USER-ID> <PKG-NAME>"
and this using the same user id
Code:
adb shell "pm enable --user <USER-ID> <PKG-NAME>"
instead of stupidly using user id 0
Click to expand...
Click to collapse
UserInfo{0:Owner:c13} running
My user ID is 0
would be great if it would work like that except it doesn't for whatever reason.
Is there a difference using "disable-user --user <USER-ID> <PKG-NAME>" vs "disable --user <USER-ID> <PKG-NAME>"?
I mean thats not rly my problem as I wanna *enable* it again, but yea..
running either enable or disable command in non elevated shell results in
java.lang.SecurityException: Shell cannot change component state for null to 1
which is weird as it does work for literally any other app.
using elevated shell it works, however it resets back to disabled state on reboot, which is even weirder given that the default state of this package would be enabled=1
and I should note that it mustve worked before as well, as it was originally enabled and I slipped in the wrong line and accidentally copied the command to disable apps instead of what I wanted to do.
And for some reasom that worked..
specifically the command I used was adb shell pm disable-user --user 0 com.android.sdm.plugins.connmo and it works for any other app to disable it and i can enable them right back.

Categories

Resources