How to delete stock apps using adb? - Android Q&A, Help & Troubleshooting

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.

Related

[Q] install apk as system app

Is there a way to install an apk as a system app? I want to 'unroot' a device but still run an app that requires root access. I'm unsure of how this can be done, any advise would be very much appreciated!
Thanks
I know that the Z4 root app has an option for temp root functions which goes back to an unrooted state once you reboot.
My guess is that you can run that, place your apk in the appropriate system folder, install the apk from there & then reboot.
But again I'm not to sure if temp root functions work on our G-Tabs & if it does if it's as simple as I explained. Worth a try I guess.
Again I'm assuming that your not already in a permanent root state. If so then you'll have to unroot completely first & then try what I mentioned above.
Unless someone has an easier method?
convert user apps to system apps
nikt said:
Is there a way to install an apk as a system app? I want to 'unroot' a device but still run an app that requires root access. I'm unsure of how this can be done, any advise would be very much appreciated!
Thanks
Click to expand...
Click to collapse
Titanium Backup Pro (paid version 3.8.1 and higher) has a function that allows one to convert user apps-->system apps (as well as system app-->user app ... though this sometimes causes initial FCs, which generally disappear with reboot).
Not sure if the effect will remain after unrooting.
Just to clear up a bit, not because an app its on /system it will have root access. If you want to run an app that needs root, you need root, thats it. You cant unroot and use the app after that.
So, no you cant do that. Its 2 different things installing an app on /system than having root for an app.
pmcnano said:
Just to clear up a bit, not because an app its on /system it will have root access. If you want to run an app that needs root, you need root, thats it. You cant unroot and use the app after that.
So, no you cant do that. Its 2 different things installing an app on /system than having root for an app.
Click to expand...
Click to collapse
So then how do proprietary apps like Sprint Nascar (as an example) run on an unrooted phone?
Why would Sprint Nascar need root permision?
pmcnano said:
Why would Sprint Nascar need root permision?
Click to expand...
Click to collapse
It probably doesn't or it might I have no idea. The op never pointed out which apps he wants to use.
However & this is a big however, as I have no idea which apps require root access, one has to assume that any of the preinstalled apps that come on our G-Tabs do in fact need root access, yet they can run on an unrooted device. Again I could be wrong.
That being said, how does one go about determining which apps require root access?
Thanks for the replies guys. The issue is supporting proxy servers on unrooted devices. There are several proxy apps that require root access as well as a kernel that supports proxy. If the proxy app were installed as a system app, would this have enough rights to access the kernel as required? I don't know enough about this but was led to believe this might work if it was running as system. Same for apps that use CIFS, like mount manager. I guess I'll give it a try and see what happens...!
Like I said, being installed on System doesnt have anything to do with having root or not.
Im 95% sure about what I am saying.
edit: I confirmed it..so 100% sure, if the app needs root, you will need root no matter where the app is installed.

Which apps can be uninstalled with root safely?

Hi.
Now that we have TWRP and root on the watch, we can uninstall some crappy stock programs, right?
Which programs can be uninstalled safely, to have less bloatware?
I now have root, but how can I uninstall apks?
the following commands:
adb shell pm uninstall com.asus.wellness
adb shell
pm uninstall com.asus.wellness
adb uninstall AsusWellness
Click to expand...
Click to collapse
result in
[DELETE_FAILED_INTERNAL_ERROR]
Click to expand...
Click to collapse
How can I uninstall apps?
i would just disable them. the space gained from uninstalling is on the system partition and is not really useful for storage/apps. disabling will keep it form eating battery or performance
interesting, but how can I disable apps on the watch?
I know how to on the smartphone, but on the watch?...
pretty much same adb command, just swap "uninstall" with "disable"
adb pm disable package.name
I use 3C tools pro. With it u can move, del, make sys, or anything u want, any app u wish. Also have various other tools like overclocking, task manager, kernel and memory controllers and so on. As for the question, I'm interested too. Please let someone with more experience enlight us.
MilenAsenov said:
I use 3C tools pro. With it u can move, del, make sys, or anything u want, any app u wish. Also have various other tools like overclocking, task manager, kernel and memory controllers and so on. As for the question, I'm interested too. Please let someone with more experience enlight us.
Click to expand...
Click to collapse
unless that app has an android wear interface, it isnt really useful in this situation.
Install "Advanced Settings for Watch" from the Play Store. It'll let you disable system apps, uninstall sideloaded ones, and it has a few more settings like vibration strength.

remove some stock apps and then disable/ restrict any further software changes

After I root a phone, I would like to be able to uninstall/remove some stock apps (for example, stock Messaging app) and add some new apps (for example, 3d-party Messaging app).
Do I need Titanium app to achieve that? Or is there something more lightweight?
After I complete the setup, I want to disable/ restrict any further software changes. Pretty much the same as Window OS "Admin" VS "Standard User"
So I guess I would need some app manager capable of permission managing.
Any advice on my project? Will my phone be as stable as the original stock after such modding?
The phones: Moto E2 and Moto G2 and G3, Android 5.01 or 6.01
Well, Backing Up the Stock Content before doing any Modding to your Phone is a Good Practice and Extremely Recommended in Case of any worst case scenarios and you can achieve the same by Titanium Back or any Other app Readily available on Play Store.
After Back up, Yes, you can Uninstall PreInstalled apps or any other bloatware that you may don't want in your phone. And Install 3rd Party apps in place of stock Ones.
Talking about Permissions, until/unless you give Root Access to that App, it won't be able to Make any changes in the System. So, you also have to keep a check on giving Root permissions to apps.
Your Phone Will remain stable When you know what actually you are doing with it and what measures could be taken to revert it.
abhinavp649 said:
Talking about Permissions, until/unless you give Root Access to that App, it won't be able to Make a.
Click to expand...
Click to collapse
Once the phone is rooted, will I be able to block/restrict both: uninstalling apps (which are already installed) and installing new apps? The phone will be used by my kids, so I want to prevent them from making any phone changes.
rybshik said:
Once the phone is rooted, will I be able to block/restrict both: uninstalling apps (which are already installed) and installing new apps? The phone will be used by my kids, so I want to prevent them from making any phone changes.
Click to expand...
Click to collapse
You can't restrict to install and uninstall apps. As abhinavp649 said the application makes modifications to the system if you give root permission to them. If you are using SuperSU superuser app then you can set pin to grant root permission to the app from the settings of supersu
rybshik said:
Once the phone is rooted, will I be able to block/restrict both: uninstalling apps (which are already installed) and installing new apps? The phone will be used by my kids, so I want to prevent them from making any phone changes.
Click to expand...
Click to collapse
To Prevent app from uninstalling the best way is to hide it From Home screen Or Make that as System.
And Revoke SU permissions from those apps which can uninstall system apps or any similar one.
Hit thanks if Helped :laugh:
abhinavp649 said:
to hide it From Home screen Or Make that as System.:
Click to expand...
Click to collapse
How can I do that?
Additionally, can I, for example, turn on Location (GPS) and prevent the phone user from turning it OFF? thanks!
rybshik said:
How can I do that?
Additionally, can I, for example, turn on Location (GPS) and prevent the phone user from turning it OFF? thanks!
Click to expand...
Click to collapse
Installing an App as system is a easy and you can find tools easily on play store. Just search 'make app system' or something else similar.
Using GPS to prevent Turn off? I think you are expecting too too much out of a device.
However, you can disable Power Off from options you get by holding lock button.
To do this You Have to Install Xposed Framework in your Device.
Xposed Framework allows you to do Amazing modding to your Android device. You can just do everything with the device(Exceptions are always present)
rybshik said:
How can I do that?
Additionally, can I, for example, turn on Location (GPS) and prevent the phone user from turning it OFF? thanks!
Click to expand...
Click to collapse
If you are thinking of turning on GPS for the sake of tracking your kids, then make sure you tell them you are doing so. Have known a few people that got into legal trouble for not doing so.
In the end if the kids are smart enough there will be nothing you can really do as they can just reset the device and everything you did is gone.
zelendel said:
nothing you can really do as they can just reset the device
Click to expand...
Click to collapse
So, can I prevent that by disabling/removing or password-protecting the option of "Factory Reset" on a rooted Android 6.0?
rybshik said:
So, can I prevent that by disabling/removing or password-protecting the option of "Factory Reset" on a rooted Android 6.0?
Click to expand...
Click to collapse
No. You can not restrict or disable factory data reset option by any ways even you are rooted. Some brands like Samsung gives FRP (factory reset protection) to their device. Devices without FRP easily factory data reset by entering in recovery mode or in settings.

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

Question Debloating S22 plus

Hi all,
what is the easiest and best way to debloat and optimize S22+. For non rooted users ofc
I dont need all Samsung apps, Facebook etc .
Thanks
The easiest would be to manually disable every app you can. Usually only the ore installed apps, minus the system, take space and ram. Wouldnt mess around with Samsung system apps, since you will lose functionality.
Wouldn't be the easiest but arguably the best, would be going the adb route,
Which allows you to Uninstall by the package.
I.e. https://play.google.com/store/apps/details?id=com.catchingnow.icebox
You can try this app also.
○○○○○○
I know you said non root.
I swear I would root my snapdragon tmobile version if it was possible. I will continue to hope.
enable usb debug and use this tool
[TOOL] ADB AppControl 1.8.0 🚀 Ultimate App Manager & Debloat Tool + Tweaks
ADB AppControl 🚀 Root is not required. Works with any Android device. Can do almost everything you dreamed about with applications. ADB AppControl - the desktop program, that will allow you to easily manage applications on your android device...
forum.xda-developers.com
Sheetzie03 said:
Wouldn't be the easiest but arguably the best, would be going the adb route,
Which allows you to Uninstall by the package.
I.e. https://play.google.com/store/apps/details?id=com.catchingnow.icebox
You can try this app also.
○○○○○○
I know you said non root.
I swear I would root my snapdragon tmobile version if it was possible. I will continue to hope.
Click to expand...
Click to collapse
Thanks, but I dont want to root. Previously on non Samsung phones I rooted my phone from first day, but here dont want to loose Knox,warranty also it is hard to sell if it is rooted and unlocked
Fytdyh said:
The easiest would be to manually disable every app you can. Usually only the ore installed apps, minus the system, take space and ram. Wouldnt mess around with Samsung system apps, since you will lose functionality.
Click to expand...
Click to collapse
Is there a list of apps, services etc which are safe to delete,disable ?
marko94 said:
Thanks, but I dont want to root. Previously on non Samsung phones I rooted my phone from first day, but here dont want to loose Knox,warranty also it is hard to sell if it is rooted and unlocked
Is there a list of apps, services etc which are safe to delete,disable ?
Click to expand...
Click to collapse
[DISCONTINUED] Samsung Galaxy One UI - Optimization Guide
THIS IS A SUGGESTED CONFIGURATION FOR SAMSUNG DEVICES OUT OF SUPPORT/CLOSED I - RECOMMENDED SETTINGS To Start With - Factory Reset before starting optimisations - Factory Reset after every Major update (One UI/Android) - Remove SIM before first...
forum.xda-developers.com
I'm using this guide with some personal changes and so far so good. Just make sure you don't disable or uninstall anything that you use. One example in my case is Bixby routines
You can use adb command:
adb shell pm uninstall -k --user 0 <package_name>
I disabled a lot of things I don't use like dex, windows integration....
Debloating is good for Samsung phones because unnecessary apps are on the phone which slows it down! I'll try it too.
goTouch said:
You can use adb command:
adb shell pm uninstall -k --user 0 <package_name>
I disabled a lot of things I don't use like dex, windows integration....
Click to expand...
Click to collapse
Thanks.. what about the new updates when it is available ? do we need to restore all uninstalled apps before the update or no need ?
marko94 said:
Thanks.. what about the new updates when it is available ? do we need to restore all uninstalled apps before the update or no need ?
Click to expand...
Click to collapse
No
you dont need to restore anything
but every stuff you remove will restored after factory reset
pitelasssss said:
No
you dont need to restore anything
but every stuff you remove will restored after factory reset
Click to expand...
Click to collapse
It is just an adb command to disable a package for the current user. You can enable again with:
adb shell cmd package install-existing <package_name>
goTouch said:
It is just an adb command to disable a package for the current user. You can enable again with:
adb shell cmd package install-existing <package_name>
Click to expand...
Click to collapse
use adb debloat tool
better than that
Releases · 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. - 0x192/universal-android-debloater
github.com
Open source as well.
marko94 said:
Hi all,
what is the easiest and best way to debloat and optimize S22+. For non rooted users ofc
I dont need all Samsung apps, Facebook etc .
Thanks
Click to expand...
Click to collapse
You mean you've never heard of package disabler pro, u don't have to root ur phone ,go to www.packagedisabler.com, pay the little fee and disable all bloatware, do not buy from the play store, go to their website!! Google play store doesn't offer it anymore anyway I believe!!
skiku said:
[DISCONTINUED] Samsung Galaxy One UI - Optimization Guide
THIS IS A SUGGESTED CONFIGURATION FOR SAMSUNG DEVICES OUT OF SUPPORT/CLOSED I - RECOMMENDED SETTINGS To Start With - Factory Reset before starting optimisations - Factory Reset after every Major update (One UI/Android) - Remove SIM before first...
forum.xda-developers.com
I'm using this guide with some personal changes and so far so good. Just make sure you don't disable or uninstall anything that you use. One example in my case is Bixby routines
Click to expand...
Click to collapse
www.packagedisabler.com ,no root,disable all bloatware, no desktop required, 3 or 4 dollars for the app,I can't remember, exactly how much!!
just mean plain S22 U.S. version
maypo123 said:
just mean plain S22 U.S. version
Click to expand...
Click to collapse
I don't understand your question mayo,I have the s22 plus,but package disabler works on any s22, if that is what u mean, you'll have to be more specific!
Thanks Shirtytrip
Hi guys is there any list what is safe to debloat galaxy s22 plus?
It is quite hard to know which is a safe app to remove (uninstall/disable) ?
Check with this list https://docs.google.com/spreadsheets/u/0/d/12jEGQftFUL3vAI03X0Ku1LgoWFQKdwPA_WHuLh_2ics/htmlview
Have to ask google one by one by its package name in order to understand what it is doing for and is necessary?
How To Remove (debloat) Bloatware from Any Galaxy Smartphone Via ADB? - SamsungSFour.Com
How to remove/debloat bloatwares from any Samsung Galaxy Smartphone Via the ADB tool.
www.samsungsfour.com
[TOOL] ADB AppControl 1.8.0 🚀 Ultimate App Manager & Debloat Tool + Tweaks
ADB AppControl 🚀 Root is not required. Works with any Android device. Can do almost everything you dreamed about with applications. ADB AppControl - the desktop program, that will allow you to easily manage applications on your android device...
forum.xda-developers.com

Categories

Resources