How to completely uninstall system app (rooted)? - Android Q&A, Help & Troubleshooting

How do I go about completely uninstalling a system app on a rooted device?
My searches resulted in
- non-rooted approach of disabling/uninstalling the app for the main user via 'pm uninstall -k --user 0'. I'm interested in a complete uninstall.
- references to Play Store apps. I'd rather have a cmd-line or script approach if possible.
Background:
I'm trying to downgrade my version of com.google.android.googlequicksearchbox
- trying to install an older version results in Failure:
Code:
pm install -r -d /sdcard/Download/com.google.android.googlequicksearchbox_6.13.25.21.>
Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
- so I figure I need to completely uninstall it first.
If it makes a difference, the device is running LineageOS 14.1 (Android 7.1.2)
thanks
albert

AlbertDude said:
How do I go about completely uninstalling a system app on a rooted device?
My searches resulted in
- non-rooted approach of disabling/uninstalling the app for the main user via 'pm uninstall -k --user 0'. I'm interested in a complete uninstall.
- references to Play Store apps. I'd rather have a cmd-line or script approach if possible.
Background:
I'm trying to downgrade my version of com.google.android.googlequicksearchbox
- trying to install an older version results in Failure:
- so I figure I need to completely uninstall it first.
If it makes a difference, the device is running LineageOS 14.1 (Android 7.1.2)
thanks
albert
Click to expand...
Click to collapse
Download RootBrowser here :
https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree
Open Root browser , then go to /system/apps
Search for the Velvet folder and delete it , then reboot your device .
Warning:
This may cause random Force Close and several issue due the link between google app and other apps.

Thanks for the tip about Velvet
It was found under /system/priv-apps
After removing Velvet (I copied it to /sdcard so I could easily restore it later), I was able to install an old version of googlequicksearchbox.
I then put Velvet back.
And the old version of the quick searchbox app (with the swipe-right to dismiss feature) seems to be working.
Thanks!
RaiZProduction said:
Download RootBrowser here :
https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree
Open Root browser , then go to /system/apps
Search for the Velvet folder and delete it , then reboot your device .
Warning:
This may cause random Force Close and several issue due the link between google app and other apps.
Click to expand...
Click to collapse

Related

[Q] How do I replace AOSP camera with Google camera? (CM12)

I flashed the current Nexus 5 CM12 daily with Paranoid Android Google Apps today. Everything's working, except that I seem to be stuck with the AOSP camera. Titanium Backup and other similar utilities don't seem to be able to uninstall it completely; they can remove the icon and the apk but some traces remain. After removing camera2/AOSP Camera with TB and verifying the absence of /system/app/Camera2, I've tried:
Installing from Play Store, which results in error -504 (not the common and easily solved error 504, mind you, but the same underlying problem as...)
adb install without -r:
Failure [INSTALL_FAILED_ALREADY_EXISTS]
Because...
W/PackageManager( 772): Attempt to re-install com.google.android.GoogleCamera without first uninstalling package running as com.android.camera2
adb install -r (same as above)
I realize I could wipe system/data and go from there, but I'd prefer to avoid that if at all possible. I'm hoping there's just some stray piece of metadata somewhere that I can delete so Android knows that com.android.camera2 is gone. Any suggestions? Thanks.
EDIT:
Booted into recovery and copied the files into /system/app/GoogleCamera, set permissions, and (shockingly) that did it.
I found a solution.
You need to edit the file
/data/system/packages.xml
Locate the following text and delete it:
Code:
<renamed-package new="com.google.android.GoogleCamera" old="com.android.camera2" />
Then install the application from Play Store.

Google Play services are actually on Remix Beta, enable them without any extra tools

Redditor SubredditReddit found that these Google apps are pre-installed on Remix OS:
Google Play Store - com.android.vending
Google Contacts Sync - com.google.android.syncadapters.contacts
Google Play services - com.google.android.gms
Google Services Framework - com.google.android.gsf
Google Partner Setup - com.google.android.partnersetup
Market Feedback Agent - com.google.android.feedback
Google Calendar Sync - com.google.android.syncadapters.calendar
Google Account Manager - com.google.android.gsf.login
Google Backup Transport - com.google.android.backuptransport
You can enable these, so you don't have to use something like GMSInstaller/GMSActivator, which could potentially be unsafe. If you did use one of these but want to use the stock apps instead, you will have to reinstall Remix OS.
This went unnoticed because there is an app called "JideAppPolicy" that disables them at startup. Apparently, this is the only thing it does. Also, apps disabled in a specific way do not appear in Settings.
Steps:
Enter the root terminal (Alt+F1) and run this:
Code:
pm disable com.jide.apppolicy
This will disable JideAppPolicy. Then, run this:
Code:
pm list packages -d
This will list all disabled applications. To enable the Google apps, use this command:
Code:
pm enable <package name>
(Use the package names from the second command.)
To return to the GUI, use Alt+F7.
If the Play Store doesn't work immediately, check your date/time settings, and force stop + clear data for:
Google Play Store
Google Play services
Google Services Framework
Then restart Remix OS. You should be able to download apps.
To stop automatic updates, turn them off in Settings > Update > Options. Or, if you want to be extra cautious, run this command:
Code:
pm disable com.jide.autoupdater
Good find! Thanks for the share
That is awesome, i tried the gms installer and i got errors, i now understand why
Yeah! man works really great on beta version to but facing some error while downloading app from store any guess how to solve them ???
hamxa266 said:
Yeah! man works really great on beta version to but facing some error while downloading app from store any guess how to solve them ???
Click to expand...
Click to collapse
Clear the play store, Google service framework, and Google play services data, reboot. Then clear play store data again. You shouldn't have any more issues.
ElfinJNoty said:
Good find! Thanks for the share
Click to expand...
Click to collapse
I take no credit but it was a great find from that redditor indeed!
I get error:java.lang.securityexception: permission denial: attempt to change component state ...
Thanks for any help in advance
hamxa266 said:
Yeah! man works really great on beta version to but facing some error while downloading app from store any guess how to solve them ???
Click to expand...
Click to collapse
same.
any solution?
nightmare95 said:
same.
any solution?
Click to expand...
Click to collapse
No experience with pre-installed Google Play, but after installing with GMSInstaller it was necessary to clear cache and data for Play and Play services. After clearing restart.
user0815f said:
No experience with pre-installed Google Play, but after installing with GMSInstaller it was necessary to clear cache and data for Play and Play services. After clearing restart.
Click to expand...
Click to collapse
i had to remove my account and log in again and it's workin right now
Thanks man!!!
Thanks for sharing this! Spent hours figuring GMSInstaller out!!!
This method works for me, thanks, now i can use playstore
Is root required for this?
To access the root terminal does this require your installation is rooted. I ask because I am unable to test as I am on holidays and won't be able to check for another few days.
Thanx
ChrisL
no root required for this method to work
milav said:
no root required for this method to work
Click to expand...
Click to collapse
Thanks
You_KS said:
Redditor SubredditReddit found that these Google apps are pre-installed on Remix OS:
Google Play Store - com.android.vending
Google Contacts Sync - com.google.android.syncadapters.contacts
Google Play services - com.google.android.gms
Google Services Framework - com.google.android.gsf
Google Partner Setup - com.google.android.partnersetup
Market Feedback Agent - com.google.android.feedback
Google Calendar Sync - com.google.android.syncadapters.calendar
Google Account Manager - com.google.android.gsf.login
Google Backup Transport - com.google.android.backuptransport
You can enable these, so you don't have to use something like GMSInstaller/GMSActivator, which could potentially be unsafe. If you did use one of these but want to use the stock apps instead, you will have to reinstall Remix OS.
This went unnoticed because there is an app called "JideAppPolicy" that disables them at startup. Apparently, this is the only thing it does. Also, apps disabled in a specific way do not appear in Settings.
Steps:
Enter the root terminal (Alt+F1) and run this:
Code:
pm disable com.jide.apppolicy
This will disable JideAppPolicy. Then, run this:
Code:
pm list packages -d
This will list all disabled applications. To enable the Google apps, use this command:
Code:
pm enable <package name>
(Use the package names from the second command.)
To return to the GUI, use Alt+F7.
If the Play Store doesn't work immediately, check your date/time settings, and force stop + clear data for:
Google Play Store
Google Play services
Google Services Framework
Then restart Remix OS. You should be able to download apps.
To stop automatic updates, turn them off in Settings > Update > Options. Or, if you want to be extra cautious, run this command:
Code:
pm disable com.jide.autoupdater
Click to expand...
Click to collapse
Nice work:good:
by the way Gapps not disabled by "JideAppPolicy" it's just a decoy you can extract system.img and delete it then repack system.img run RemixOS then you will see Gapps still disabled
there is another apk and I know what it is and i'm working on it
imadlatch said:
Nice work:good:
by the way Gapps not disabled by "JideAppPolicy" it's just a decoy you can extract system.img and delete it then repack system.img run RemixOS then you will see Gapps still disabled
there is another apk and I know what it is and i'm working on it
Click to expand...
Click to collapse
I can confirm that you have to enable them anyhow after 1st boot evwn if you remove jide app policy
May be its there in boot script
milav said:
I can confirm that you have to enable them anyhow after 1st boot evwn if you remove jide app policy
May be its there in boot script
Click to expand...
Click to collapse
Gapps disabled pre-install only
see
<string-array name="config_disabledUntilUsedPreinstalledImes">
<item>com.android.inputmethod.latin</item>
<item>com.android.vending</item>
<item>com.google.android.gms</item>
<item>com.google.android.partnersetup</item>
<item>com.google.android.onetimeinitializer</item>
<item>com.google.android.gsf.login</item>
<item>com.google.android.feedback</item>
<item>com.google.android.syncadapters.calendar</item>
<item>com.google.android.backuptransport</item>
<item>com.google.android.gsf</item>
<item>com.google.android.syncadapters.contacts</item>
</string-array>
this action available in 2 apk, one of them "JideAppPolicy" but it's not effective
jk2rd said:
I get error:java.lang.securityexception: permission denial: attempt to change component state ...
Thanks for any help in advance
Click to expand...
Click to collapse
Did you enter the correct command? It should be:
"pm enable com.google.android.gms" without the quote. And then the same command for every app you want to enable. I've enabled all so now calendar and contacts work aswell ?
JideAppPolicy
imadlatch said:
Nice work:good:
by the way Gapps not disabled by "JideAppPolicy" it's just a decoy you can extract system.img and delete it then repack system.img run RemixOS then you will see Gapps still disabled
there is another apk and I know what it is and i'm working on it
Click to expand...
Click to collapse
Hey. I'm SubredditReddit, the guy who originally posted about this over on /r/RemixOS (OP didn't link to my post ). Anyway, I looked into this: disabled JideAppPolicy before the first boot, and the apps were still disabled, so something else is disabling them on first boot. However, it is still necessary to disable or remove JideAppPolicy because it disables them every restart after the first boot, I have just confirmed.

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

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