Anyone remove stock apps via adb?
I was able to on my P20 Pro but get device not found on my P30 Pro.
I've had no problems debloating my p30 pro via adb
iceze said:
Anyone remove stock apps via adb?
I was able to on my P20 Pro but get device not found on my P30 Pro.
Click to expand...
Click to collapse
Toggle "Select USB Configuration" in Developer Options between Charge Only, PTP and MTP.. Maybe a couple of times. ADB will not connect in charge only mode by default...
I can connect via adb fine, but whenever I try to uninstall anything, I get a "Missing existing base package for null" error:
Code:
$ pm uninstall -k ‑‑user 0 com.huawei.gameassistant
Failure [INSTALL_FAILED_INVALID_APK: Missing existing base package for null]
EDIT: solved by omitting --user 0 and/or -k. For some packages, that worked.
Can someone direct me to a list of unwanted packages and the instructional commands for the p30 pro please
mixdupkid2002 said:
Can someone direct me to a list of unwanted packages and the instructional commands for the p30 pro please
Click to expand...
Click to collapse
Hi, you can check this thread and this one for more info about bloatware and ADB comands.
Cheers,
SilviuO
Related
I have a Note 9 with Verizon that has Oreo 8.1.0 on it. I have been trying to avoid downloading the Pie update. I had developer options on and auto updates were turned off, yet the update still got downloaded. How can I delete the downloaded software and stop these the installation reminders? It says I can delay the update only 8 more times before it automatically installs it My phone is not rooted and I don't know the first thing about rooting a phone. Any help would be appreciated!
I dont think you can permanently stop it without running some adb command. Too my knowledge there is no root currently available for the Snapdragon version of the Note 9.
Other users on here might know the adb command to run though but I'm not knowledgable on it.
*Hooligan* said:
I dont think you can permanently stop it without running some adb command. Too my knowledge there is no root currently available for the Snapdragon version of the Note 9.
Other users on here might know the adb command to run though but I'm not knowledgable on it.
Click to expand...
Click to collapse
Thank you for replying. I hope someone knows something.
Try using package disabler pro to disable the update services. Might work.
popeye0777 said:
I have a Note 9 with Verizon that has Oreo 8.1.0 on it. I have been trying to avoid downloading the Pie update. I had developer options on and auto updates were turned off, yet the update still got downloaded. How can I delete the downloaded software and stop these the installation reminders? It says I can delay the update only 8 more times before it automatically installs it My phone is not rooted and I don't know the first thing about rooting a phone. Any help would be appreciated!
Click to expand...
Click to collapse
is your update of from settings aswell ? Adhell 3 you can disable updates from there!
N1NJATH3ORY said:
is your update of from settings aswell ? Adhell 3 you can disable updates from there!
Click to expand...
Click to collapse
Yes, it is disabled from there as well which is the weird part. It still downloaded the update.
Nwpayton said:
Try using package disabler pro to disable the update services. Might work.
Click to expand...
Click to collapse
I'm trying that now hopefully my next scheduled installation reminder doesn't pop up.
popeye0777 said:
Yes, it is disabled from there as well which is the weird part. It still downloaded the update.
Click to expand...
Click to collapse
What you can do is hard reset your phone! Make sure you back up everything first that way the update will get wiped off your phone! Also when you re set it up, do not connect to network! Make sure NO Wi-FI NO Sim! Once your at home screen! Disable all auto updates from settings and dev options then install Adhell 3 disable all update packages and you will be fine!
quote "Adhell 3 can easily block any package plus it has the added benefit of system wide ad-blocking. Use this guide to setup: https://forum.xda-developers.com/gal...tance-t3873831 (its post 3 or 4 I think that has the instructions). Enjoy!" Not mine--> He posted this another thread! @mtweisenbarger777
Yes that would work too^ I'm just blocking the services and seem to have done the job for me so far as I had that same concern as I just downgraded from pie and don't want to accidently update again
I stopped the updates by going to the Note 9 U1 XAA firmware. No Verizon branding. No VZW updates.
popeye0777 said:
I'm trying that now hopefully my next scheduled installation reminder doesn't pop up.
Click to expand...
Click to collapse
Nwpayton said:
Try using package disabler pro to disable the update services. Might work.
Click to expand...
Click to collapse
Thanks again for the suggestion. The package disabler seems to have done the trick.
popeye0777 said:
Thanks again for the suggestion. The package disabler seems to have done the trick.
Click to expand...
Click to collapse
Glad to help
I to can confirm PDM the Version from the dev's direct download works. I disabled 3 apps after searching within the app "update"
Photo's[emoji2398] by Sully using SM-N960U or SM-870A
Package disabler apps must be purchased? But why not just disable with adb? (it's built in to your Note9 and free)
https://android.stackexchange.com/questions/176727/stop-galaxy-s7-upgrade-nag-screen/176739#176739
I just did this, so we'll see if this works over the next few days and doesn't break anything else:
adb shell
to find packages:
pm list packages | grep soagent
pm list packages | grep wssyncmldm
to disable:
pm disable-user --user 0 com.sec.android.soagent
pm disable-user --user 0 com.wssyncmldm
enable later:
pm enable-user --user 0 com.sec.android.soagent
pm enable-user --user 0 com.wssyncmldm
gruuvin said:
Package disabler apps must be purchased? But why not just disable with adb? (it's built in to your Note9 and free)
https://android.stackexchange.com/questions/176727/stop-galaxy-s7-upgrade-nag-screen/176739#176739
I just did this, so we'll see if this works over the next few days and doesn't break anything else:
adb shell
to find packages:
pm list packages | grep soagent
pm list packages | grep wssyncmldm
to disable:
pm disable-user --user 0 com.sec.android.soagent
pm disable-user --user 0 com.wssyncmldm
enable later:
pm enable-user --user 0 com.sec.android.soagent
pm enable-user --user 0 com.wssyncmldm
Click to expand...
Click to collapse
I cannot figure out how to get to the place where I can perform ADB commands.
Directions say to select PTP mode, but I do not have that as a choice in the status bar, when I connect my Note 9 on Oreo to Windows 10 laptop. I think that is why no commands work in the Powershell as administrator window, opened in the Platform Tools folder.
Do I start in Recovery or Download Mode?
I also read that ADB commands can be performed in ODIN, but I don't see where to type.
In Power Shell for Fastboot I receive the following error, when entering "adb devices"
adb : The term 'adb' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ adb devices
+ ~~~
+ CategoryInfo : ObjectNotFound: (adb:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Click to expand...
Click to collapse
pizza_pablo said:
I cannot figure out how to get to the place where I can perform ADB commands.
Directions say to select PTP mode, but I do not have that as a choice in the status bar, when I connect my Note 9 on Oreo to Windows 10 laptop. I think that is why no commands work in the Powershell as administrator window, opened in the Platform Tools folder.
Do I start in Recovery or Download Mode?
I also read that ADB commands can be performed in ODIN, but I don't see where to type.
In Power Shell for Fastboot I receive the following error, when entering "adb devices"
Click to expand...
Click to collapse
1. Use cmd not powershell
2. Use. "Cd c:/your folders/folder-where-adb.exe-is" and replace the filepath with the filepath that leads to where your ADB.exe file is. Most likely in platform tools folder.
3. Go Into developer settings, enable USB debugging.
4. Plug phone into computer using file transfer mode, check your phone and allow your phone to "trust" your PC Always when the box comes up.
5. Now type ADB shell into the cmd prompt and you should get a $: instead of C: on the blinking line. Now you can execute PM Commands
Bober_is_a_troll said:
1. Use cmd not powershell
2. Use. "Cd c:/your folders/folder-where-adb.exe-is" and replace the filepath with the filepath that leads to where your ADB.exe file is. Most likely in platform tools folder.
3. Go Into developer settings, enable USB debugging.
4. Plug phone into computer using file transfer mode, check your phone and allow your phone to "trust" your PC Always when the box comes up.
5. Now type ADB shell into the cmd prompt and you should get a $: instead of C: on the blinking line. Now you can execute PM Commands
Click to expand...
Click to collapse
Placing the 'Cd" in front of the folder address in CMD Prompt worked like magic.
I've been butting my head against the wall for a few hours.
Thank you for responding with a great tip! :good:
---------- Post added at 08:18 PM ---------- Previous post was at 07:42 PM ----------
Bober_is_a_troll said:
1. Use cmd not powershell
2. Use. "Cd c:/your folders/folder-where-adb.exe-is" and replace the filepath with the filepath that leads to where your ADB.exe file is. Most likely in platform tools folder.
3. Go Into developer settings, enable USB debugging.
4. Plug phone into computer using file transfer mode, check your phone and allow your phone to "trust" your PC Always when the box comes up.
5. Now type ADB shell into the cmd prompt and you should get a $: instead of C: on the blinking line. Now you can execute PM Commands
Click to expand...
Click to collapse
As you can see from the attached screenshot, ADB could not find the wssyncmldm app, but CCSWE App Manager listed the OS update apps as shown at the bottom of the screenshot and I was able to disable those.
View attachment 4836423
Am I set to prevent OS updates and stay on Oreo or did I do a bad thing?
Apologies, for the small pic in the post above!
Here a phone screen shot showing disabled apps.
The software update all with the green icon is still enabled.
pizza_pablo said:
Placing the 'Cd" in front of the folder address in CMD Prompt worked like magic.
I've been butting my head against the wall for a few hours.
Thank you for responding with a great tip! :good:
---------- Post added at 08:18 PM ---------- Previous post was at 07:42 PM ----------
As you can see from the attached screenshot, ADB could not find the wssyncmldm app, but CCSWE App Manager listed the OS update apps as shown at the bottom of the screenshot and I was able to disable those.
View attachment 4836423
Am I set to prevent OS updates and stay on Oreo or did I do a bad thing?
Click to expand...
Click to collapse
Some apps are not installed under --user 0, and instead are system apps. Try removing --user 0 and see if to uninstalls.
We have to admit it all mid range intensively priced devices are dumped with lot of bloatware and Some of which don't even allow us to uninstall.
Realme gives us a skip option while setting the system to reduce the no.of bloatware but many of which aren't removable .
Now i'll give a step by step procedure to remove all the apps which are unnecessary and useless for the device.
Needed :-
1. Pc with Adb installed (Using universal Adb is Recommended)
2. Realme 6 or 6 Pro with USB Debugging unlocked for which unlock the developer options by clicking About Phone -> Baseband & Kernal -> Build number (
click Multiple times untill it unlocks the options)
You can find the options in Additional Settings.
then enable usb debugging.
Now:-
Open the Folder where you have installed the ADB drivers the press shift and right click
you'll find a cmd or powershell option clicking on which gives a shell in that address
Now Connect the Phone with USB and give Permissions in the phone for the system (file Transfer mode)
are check the usb debugging request as accept
Now check whether the device is connected to the system using :-
./adb devices
list of the devices are listed
now click
./adb shell
"pm uninstall –k ––user 0 package name"
to uninstall any app using adb method
we can find the package name in a app PackageNameViewer
Now Run the command
this will uninstall the app
*Remember System Apps are Important and shouldn't be altered.
So Please perform any action carefully
We aren't responsible for your product or it's warranty*
List of Apps or Package Name I uninstalled Personally:-
com.heytap.browser
com.coloros.backuprestore
com.opera.branding.news
com.android.comtacts ( need to install google dialer or any other 3rd party so please don't unless a huge fan of google apps)
com.facebook.system
com.facebook.appmanager
com.facebook.services
com.heytap.cloud
com.oppo.music
com.coloros.gallery3d
com.coloros.video
Stuck anywhere Please do post comments.
XDA isn't allowing me to post pictures.
It would be better to use
Code:
adb shell pm disable-user --user 0 <package_to_disable>
instead of uninstall because if any package needs to be installed again it simply can be done by
Code:
adb shell pm enable <package_to_enable>
whereas using the uninstall command the package gets uninstalled for the current user and only way to get it back is by factory reset.
Almost all of colorOS bloat can be disabled including the contacts ( contains the dialer app too) and messages. You can install google dialer (mod found on xda working perfectly, using for 3 days now) and google contact and messages from play store.
Edit: Game center & Oroaming for some wierd reason doesn't get disabled.
Edit 2: contacts thing already mentioned in OP. Missed it the first time.
I took the conservative approach. Done disabling some apps just in case i needed to restore it will be easier. Thank you for the tutorials
this is what i did
adb devices
adb shell
pm disable-user --user 0 com.google.android.keep
pm disable-user --user 0 com.google.android.youtube
pm disable-user --user 0 com.coloros.video
pm disable-user --user 0 com.android.mms
to enable it again
pm enable com.coloros.video
pm enable com.google.android.youtube
pm enable com.google.android.keep
pm enable com.android.mms
change mms to google messages
video to mx video player
youtube to snaptube
keep to none i dont need this but to be safe i just disable it
debdeep98 said:
It would be better to use
Code:
adb shell pm disable-user --user 0 <package_to_disable>
instead of uninstall because if any package needs to be installed again it simply can be done by
Code:
adb shell pm enable <package_to_enable>
whereas using the uninstall command the package gets uninstalled for the current user and only way to get it back is by factory reset.
Almost all of colorOS bloat can be disabled including the contacts ( contains the dialer app too) and messages. You can install google dialer (mod found on xda working perfectly, using for 3 days now) and google contact and messages from play store.
Edit: Game center & Oroaming for some wierd reason doesn't get disabled.
Edit 2: contacts thing already mentioned in OP. Missed it the first time.
Click to expand...
Click to collapse
Doesn't Realme 6 Pro have Realme OS not colorOS? Nevermind, I'm new to this. My bad.
@jlrruben:
what's the best version of XDA's Google Phone apk for the Realme 6 Pro?
HELP!!
I did the uninstalling as advised here but went overboard (my bad)
If someone can help me installing these things back please!
com.google.android.gm
com.google.android.gms
com.google.android.gms.location.history
com.google.android.gmsintegration
Using RealMe 6 Pro
c0nstantin31V said:
If someone can help me installing these things back please!
Click to expand...
Click to collapse
Just use this...
Code:
adb shell pm install-existing <package name>
I have 13 pages of packages on my phone.
Is there a definitive list of what the packages are for and which ones can safely be removed .
I'm hesitant as my phone is only 2 days old and I have already soft bricked it 3 times.
Twice trying to install TWRP and once installing Magisk
Flashing works without error messages but trying to reboot to TWRP just goes to stock recovery then won't reboot same situation when rebooting after Magisk root.
Hi ,
sorry for coming here that blank, I watched some tutorials the last days, and finally could root my phone: Xiaomi Mi 9 Lite
- everything worked fine with the:
- - unlocking period
- - installing of TWRP ,
- - installing of MAGISK
I installed all my favourite apps
- and I got rid of some apps (bloatware) which I wasn't using and which were communicating in the background.
So far everything worked. Until I restarted after I got rid of:
C:\platform-tools>adb shell
pyxis:/ $ pm uninstall --user 0 com.xiaomi.xmsf
Success
pyxis:/ $ pm uninstall --user 0 com.miui.hybrid
Success
pyxis:/ $ pm uninstall --user 0 com.xiaomi.finddevice
Success
pyxis:/ $ pm uninstall --user 0 com.xiaomi.discover
Success
pyxis:/ $ pm uninstall --user 0 com.android.updater
Success
Click to expand...
Click to collapse
Is there a way in fastboot or TWRP to just undo /reinstall, those services? Or do I have to totally reinstall MIUI?
right now I can not get into the android view. I just can get into fastboot or TWRP, but I can't send any information from my PC to my Phone to install any app. I would greatly be happy for any help / tutorial, where I wouldn't have to completly reinstall the phone
V2020 said:
Hi ,
sorry for coming here that blank, I watched some tutorials the last days, and finally could root my phone: Xiaomi Mi 9 Lite
- everything worked fine with the:
- - unlocking period
- - installing of TWRP ,
- - installing of MAGISK
I installed all my favourite apps
- and I got rid of some apps (bloatware) which I wasn't using and which were communicating in the background.
So far everything worked. Until I restarted after I got rid of:
Is there a way in fastboot or TWRP to just undo /reinstall, those services? Or do I have to totally reinstall MIUI?
right now I can not get into the android view. I just can get into fastboot or TWRP, but I can't send any information from my PC to my Phone to install any app. I would greatly be happy for any help / tutorial, where I wouldn't have to completly reinstall the phone
Click to expand...
Click to collapse
Uninstall for current user:
>> adb shell pm uninstall -k --user 0 <pkg-name>
Re-install:
>> adb shell cmd package install-existing <pkg-name>
Thank you so much for your help,
*fixed by installing MIUI 12
but it seems I have totally broken the miui / android It didn't work with the install / reinstall, so I tried to install the OS back again.
But this didn't work aswell. I also tried total erazing the phone and seting it up again, didn't work aswell.
Which way can I follow to actually completely reset the phone? I find different tutorials, with reinstalling the:
miui_PYXISGlobal_V11.0.3.0.QFCMIXM_7423b46ef1_10.0
miui_PYXISEEAGlobal_V11.0.3.0.QFCEUXM_d5ccaacaf9_10.0
either via TWRP or with a PC tool from xiaomi MiFlashSetup_eng
When I try to use MiFlashSetup it tells me there is no bat-File in the unzipped image.
When I try to usw TWRP it tells me, that it was successfull, but it keeps reloading TWRP, I can't get into Android :crying:
How can I fix it?
Click to expand...
Click to collapse
I need to debloat my newly purchased Redmi Note 11 Pro+.
Care to assist regarding requirements:
1. Windows 64bit ONLY........CORRECT?
2. ADB drivers.
3. https://github.com/Szaki/XiaomiADBFastbootTools Szaki Xiaomi ADB fast tools.
4. Do I require this..... https://adoptium.net/?variant=openjdk14 looks its for 32 bit?
5. Phone in developer mode.....android debug enabled.
In which order should I install?
Hoping to hear from you experts.
Thanks.
You can debloat any device with adb for this you need a computer and your device with usb debugging enabled. First install package name viewer from play store and select your app which you want to delete. You will get a com.this.type string you have to remember it. Now you have to open your computer and write these commands
adb devices(Allow any requests on your device (
adb shell
pm uninstall -k --user 0 com.your.package
You have uninstalled the system bloat!
In this guide we will see step by step how to debloat the Galaxy Tab S8
First of all we have to enable: Developer Options
Settings->About tablet->Software information->(tap 7 times)Build number
After that we will enable: OEM Unlocking & USB Debbuging
Settings->Developer Options->OEM Unlocking(ON) & USB Debbuging(ON)
On the next step we need to download & install : ADB & Fastboot tools
Once you install the tools, connect your {Tablet} - {PC}
Select: USB Debbuging & Open your: Terminal
We are almost there
Now i will make a short explanation in order to understand what are we doing exactly & how we will do it.
What is ADB?
ADB provides us with commands that can be used to debug Android devices,
installing or uninstalling apps and getting information about a connected device.
adb shell
This command activates the remote shell command console on the connected Android smartphone or tablet.
adb shell pm uninstall -k --user 0
Using this, you can easily uninstall the unwanted system apps. To be able to execute it, you must issue 'adb shell' command first.
You can then use 'pm uninstall -k --user 0' followed by the Android app package name as shown below.
pm uninstall -k --user 0 com.whatsapp_2.20.apk
This command can help you if you want to remove all the bloatware from your phone.
Please note that most system apps don't have the 'Uninstall' option on the device but this command works magically.
If you don't know the app package name for the apps you want to remove, you can use adb shell pm list packages to find it out.
adb shell pm list packages
Using the above ADB Shell command, you can print the list of the app package names for all apps installed on your Android device.
You can use this command with different parameters to get a more specific list of app packages.
For instance, if you want to list the system apps only, use
adb shell pm list packages -s
In order to list all third-party apps installed on your Android phone or tablet, you issue the following command.
adb shell pm list packages -3
Do you want ADB Shell to show the list of all enabled or disabled apps on your device,
try the command with '-d' (disabled apps) and '-e' (for enabled apps) parameter.
adb shell pm list packages -d
adb shell pm list packages -e
Now, if pm list command troubles you or you are unsure that you are making the right choice you should stop right there
(uninstalling the wrong app might harm your tablet's operating system) and use another method for identifying which app you want to uninstall.
(GUI method - Graphical User Interface) For example: APK Inspector will provide you with a detailed list of installed packages (plus their icon) on your device, once you select an app, extra details will be shown to you & that's how you will get the correct name.of.the.app
Thanks for your time ❤
Reserved
I really appreciate this write-up it has been a big help..
I use my OnePlus 9 pro with ADB and fastboot for Android NDK to debloat..
and that application inspector is a God send so again. thank you
I don't know if it was just a fluke or what but when I rebooted after successfully deleting digital well-being my tablet booted up super fast...
either way I'm good.
Awesome thanks for the tip. Is using "install" put the app back if I screw up something?
So it really doesn't uninstall just uninstalls from your app draw?
striker59 said:
So it really doesn't uninstall just uninstalls from your app draw?
Click to expand...
Click to collapse
For the os, it is like it has been uninstalled. But you don't free disk space, as the data of the app are still there. They just been hidden from os. That's why you can have back the app again just with an adb command again.
Man I used this to shut down numerous apps on all of my Android devices. Samsung and Verizon apps. Thanks!
Went back in to uninstall more apps. Device is recognized but adb shell won't load. The last time I used adb it was for my phone.
Figured it out, had to revoke USB debugging on my tablet. Delete on the computer c:user.android and restart (actual path on the computer could be different than what I stated).
Hi there.
Can anyone confirm, if it is save to remove the phone app from the device since it is connected to this samsung feature "calls/ messages on other Galaxy devices"? Actually i fully wanne get rid of this feature and app since i don´t use a galaxy phone.
Can someone share experiences/ideas according this topic?
Stogie87 said:
Hi there.
Can anyone confirm, if it is save to remove the phone app from the device since it is connected to this samsung feature "calls/ messages on other Galaxy devices"? Actually i fully wanne get rid of this feature and app since i don´t use a galaxy phone.
Can someone share experiences/ideas according this topic?
Click to expand...
Click to collapse
I have Debloated it (adb frozen) months ago. Didn't have any problem. You can always enable it again.
Am I right? If i debloat I don't clean up the system space used from the os ?
nofear5888 said:
Am I right? If i debloat I don't clean up the system space used from the os ?
Click to expand...
Click to collapse
You won't earn more free space. Apps are still there after Debloating.
sosimple said:
For the os, it is like it has been uninstalled. But you don't free disk space, as the data of the app are still there. They just been hidden from os. That's why you can have back the app again just with an adb command again.
Click to expand...
Click to collapse
@striker59
You remove the app for the current user but its still inside system's root directory.
You don't gain storage.
What you can achieve tho if you remove/disable the unnecessary services without causing softbrik or error spamming 'service has stop working' is a lightweight $user who uses less ram, your phone's overall performance is better and the battery reduction is slower.