Debloating more apps, clean up status bar, & removing pesky permanent notifications - Huawei Mate 20 Pro Guides, News, & Discussion

Debloating more apps, clean up status bar, & removing pesky permanent notifications
Hola
For those of us who are using the non-Chinese variant, meaning no bootloader unlock, we are forced to find other ways to accommodate the following:
1. Removing more bloatware / unneeded apps.
2. Be able to remove most system based icons from the status bar to allow other icons to show up given the limited space we have due to the notch.
3. Be able to remove permanent notifications from the notifications panel.
While using adb can accommodate all of the above, being able to control most of these items from an app is much easier to manage. Most, if not all, of the apps I mention below will cost you a few dollars but in my view are worth every penny and can be used on other devices.
Bloatware removal
App needed: App Freezer
Link: https://play.google.com/store/apps/details?id=com.wakasoftware.appfreezer&hl=en
Basic setup (taken almost verbatim from Play Store info):
1. Make sure you know how to use adb clearly! <- If you don't know to use adb, Google it!
2. Go to [Settings], go [Accounts], then remove All Accounts! <- This is a critical part of the setup!
3. Enable Android Debugging mode of your phone.
4. Run command
- adb shell dpm set-device-owner com.wakasoftware.appfreezer/.receiver.DPMReceiver
5. Reboot your phone, now you can add your accounts back and enjoy this app.
(For detailed instructions: http://wakasoftware.com/app-freezer-setup)
6. For general bloatware / unneeded app removal, I have attached an export from my App Freezer installation. OBVIOUSLY there are apps that I froze that I do not need or use, so go through the list and edit as needed. It is very difficult to find proper information on those com.Huawei.* files.
Status bar icon removal
App needed: SystemUI Tuner
Link: https://play.google.com/store/apps/...ystemuituner&rdid=com.zacharee1.systemuituner
Basic setup (taken almost verbatim from Play Store info):
1. Make sure you know how to use adb clearly! <- If you don't know to use adb, Google it!
2. Enable Android Debugging mode of your phone.
3. Run commands
- adb shell pm grant com.zacharee1.systemuituner android.permission.WRITE_SECURE_SETTINGS
- adb shell pm grant com.zacharee1.systemuituner android.permission.PACKAGE_USAGE_STATS
- adb shell pm grant com.zacharee1.systemuituner android.permission.DUMP
4. Launch app and select which icon you want to remove. Note that unfortunately not all icons can be removed, like the unneeded VoLTE / HD system icon that always shows up unless you manually disable this feature.
5. RESTART your phone to make most of the selected icons removed. REMEMBER THAT SOME ICONS CANNOT BE REMOVED BY THIS APP!
Notification panel clean up
App needed: TidyPanel
Link: https://play.google.com/store/apps/details?id=com.dharmapoudel.tidypanel
Basic setup:
1. Install, buy the Pro version (if you think it is worth it), assign needed permissions.
2. Select which permanent notifications you want removed.
3. Restart to ensure it continues to work after a reboot (though I think you may need the Pro version to enable this feature).
4. I found that some permanent notifications take some fine tuning to be removed by this app in terms of using a custom title or custom text. It is finicky indeed but once you get the hang of it, it works well. The app developer has a XDA thread in the main Apps sub-forum.
Yes, yes, three additional PAID applications to be installed to give us other features that we usually would be able to achieve with simple root or otherwise. Hopefully this helps someone else other there.

sad, but when i try to activate with adb always shows " Not allowed to set the device owner because there are already some accounts on the device"
i removed all accounts, even i removed all device administrator programs

Ricardo_G said:
sad, but when i try to activate with adb always shows " Not allowed to set the device owner because there are already some accounts on the device"
i removed all accounts, even i removed all device administrator programs
Click to expand...
Click to collapse
Hola
Hmm, that is indeed weird, I did not have any issues with this part. But just to confirm did you remove ALL Google and non-Google accounts like WhatsApp, email accounts, anything else listed in the Users and Accounts section?
Sent from my LYA-L0C using Tapatalk

when i try to run adb command…
adb shell dpm set-device-owner com.wakasoftware.appfreezer/.receiver.DPMReceiver
java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device
at android.os.Parcel.createException(Parcel.java:1953)
at android.os.Parcel.readException(Parcel.java:1913)
at android.os.Parcel.readException(Parcel.java:1863)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.setDeviceOwner(IDevicePolicyManager.java:5863)
at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:176)
at com.android.commands.dpm.Dpm.onRun(Dpm.java:106)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:54)
at com.android.commands.dpm.Dpm.main(Dpm.java:41)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:371)
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.devicepolicy.DevicePolicyManagerService.enforceCanSetDeviceOwnerLocked(DevicePolicyManagerService.java:8067)
at com.android.server.devicepolicy.DevicePolicyManagerService.setDeviceOwner(DevicePolicyManagerService.java:7352)
at android.app.admin.IDevicePolicyManager$Stub.onTransact(IDevicePolicyManager.java:1095)
at com.android.server.devicepolicy.HwDevicePolicyManagerService.onTransact(HwDevicePolicyManagerService.java:769)
at android.os.Binder.execTransact(Binder.java:739)

Hola
Based on the initial response it is still detecting some other account on your device. Long shot but after removing all accounts try rebooting and try again (assuming you didn't do so already).
Sent from my LYA-L0C using Tapatalk

no works
---------- Post added at 05:13 AM ---------- Previous post was at 05:12 AM ----------
i can note remove find my device and archives, this can not deleted ( both are system app, non removable)

Ricardo_G said:
no works
---------- Post added at 05:13 AM ---------- Previous post was at 05:12 AM ----------
i can note remove find my device and archives, this can not deleted ( both are system app, non removable)
Click to expand...
Click to collapse
Hola
I don't understand, I did not have to remove any apps, just any accounts listed in the Users and Accounts section in Settings. Can you show us a screen capture of your phone of this section?

I don't have any un-needed apps that I can't hide, disable or install, and I don't have any persistent notifications either?

Jonathan-H said:
I don't have any un-needed apps that I can't hide, disable or install, and I don't have any persistent notifications either?
Click to expand...
Click to collapse
Hola
Not sure I understand your comment. If you are simply stating that you have no issues with your Mate 20 Pro, and don't want to remove / disable existing Huawei provided apps then that is absolutely fine, etc. My post is simply to share information on how I was able to get some features that I accustomed to using on other devices. Many us really like the hardware, but man their EMUI skin is a most difficult nut to crack :crying:
Only wish that Substratum can bring support for our device or at least for Android 9 Pie.

QAM said:
Hola
Not sure I understand your comment. If you are simply stating that you have no issues with your Mate 20 Pro, and don't want to remove / disable existing Huawei provided apps then that is absolutely fine, etc. My post is simply to share information on how I was able to get some features that I accustomed to using on other devices. Many us really like the hardware, but man their EMUI skin is a most difficult nut to crack :crying:
Only wish that Substratum can bring support for our device or at least for Android 9 Pie.
Click to expand...
Click to collapse
It´s simple
- i removed all accounts
- I remove all programs grants to accessibility
- I removed all programs grants to device administrator
and doesn´t work neither

Ricardo_G said:
no works
---------- Post added at 05:13 AM ---------- Previous post was at 05:12 AM ----------
i can note remove find my device and archives, this can not deleted ( both are system app, non removable)
Click to expand...
Click to collapse
adb shell
pm list packages
pm uninstall -k --user 0 "package name"
find my device is "com.google.android.apps.adm"
cant see the archives? maybe download an app similar to 'package name viewer' which will give you the package name to delete.
Please be cautious, some things should not be deleted and you may need a factory reset to get it back.
---------- Post added at 06:29 PM ---------- Previous post was at 06:28 PM ----------
Ricardo_G said:
It´s simple
- i removed all accounts
- I remove all programs grants to accessibility
- I removed all programs grants to device administrator
and doesn´t work neither
Click to expand...
Click to collapse
this doesnt make sense either. Did not in any way have anything to do with what was asked.

All worked great for me, thanks

Any benifit of freezing the bloat wares rather than just uninstalling them completely using adb? Just curious

wpy said:
Any benifit of freezing the bloat wares rather than just uninstalling them completely using adb? Just curious
Click to expand...
Click to collapse
If a package that is uninstalled causes issues, you'll need a factory reset to get it back. Otherwise just unfreeze

Cleanup Statusbar
command to remove statusbar icons:
Code:
adb shell settings put secure icon_blacklist [comma separated codes here] && adb reboot
Icons to disable (config_statusBarIcons from Huawei Mate 20 Pro framework_res.apk):
Code:
<string-array name="config_statusBarIcons">
<item>mute</item>
<item>ime</item>
<item>powersavingmode</item>
<item>speakerphone</item>
<item>wifi</item>
<item>cdma_eri</item>
<item>data_connection</item>
<item>phone_evdo_signal</item>
<item>phone_signal</item>
<item>battery</item>
<item>secure</item>
<item>clock</item>
<item>unicom_call</item>
<item>volte_call</item>
<item>vowifi_call</item>
<item>data_saver</item>
<item>tty</item>
<item>managed_profile</item>
<item>cast</item>
<item>sync_failing</item>
<item>sync_active</item>
<item>vpn</item>
<item>earphone</item>
<item>eyes_protect</item>
<item>nfc</item>
<item>alarm_clock</item>
<item>bluetooth</item>
<item>location</item>
<item>zen</item>
<item>volume</item>
</string-array>
command to re-enable the icons:
Code:
adb shell settings delete secure icon_blacklist && adb reboot
command to show disabled icons:
Code:
adb shell settings get secure icon_blacklist

webpatrick said:
command to remove statusbar icons:
Icons to disable (config_statusBarIcons from Huawei Mate 20 Pro framework_res.apk):
command to re-enable the icons:
command to show disabled icons:
Click to expand...
Click to collapse
Thanks for this info. Can confirm this works. But still cannot remove the stupid volte icon :laugh:

QAM said:
Hola
Hmm, that is indeed weird, I did not have any issues with this part. But just to confirm did you remove ALL Google and non-Google accounts like WhatsApp, email accounts, anything else listed in the Users and Accounts section?
Sent from my LYA-L0C using Tapatalk
Click to expand...
Click to collapse
I am also the same problem:哭::哭:

so after a successful cmd promt i get device is managed by your company why

miffymiffy said:
If a package that is uninstalled causes issues, you'll need a factory reset to get it back.
Click to expand...
Click to collapse
You can actually use the following in adb shell to reinstall a package as it is still in the system:
cmd package install-existing <package name>

dominicstg2 said:
so after a successful cmd promt i get device is managed by your company why
Click to expand...
Click to collapse
same with me, anyone can help or explain about this??

Related

Disabling Device Administrators triggers Apps getting activated again

Update (28. Sep. 2014):
Did some more research on that matter for I found this really annoying. Deactivated Apps shall remain deactivated, even more so for as long as we don't have root yet.
Figured finally out (reproducible) that it's Disabling Device Administrators to trigger (some) Apps to get activated again.
Steps to reproduce:
Goto Settings -> Apps -> All
Deactivate e.g. Chrome, Google+, Hangouts, File Commander, Gmail, Maps, Play Store, Sony Select or Video Unlimited (so it's not only the GAPPS coming back).
Check the App Drawer, all the above should no longer be visible.
Goto Settings -> Security -> Device Administrators: Disable a Device Admin (BTW: Enabling does not re-activate Apps, only deactivation!)
Check the App Drawer again and find all of the above deactivated Apps have re-appeared.
This works in 23.0.A.2.98 (customized DE) as well as 23.0.A.2.105 (customized UK).
Sony: please fix this asap.
Devs: please, please give us root. The phone is worth it
Original assumption (OUTDATED):
Noticed a strange behaviour in builds 23.0.A.2.98 (customized DE) and builds 23.0.A.2.105 (customized UK) w.r.t. deactivated Apps getting automatically re-activated after changing language settings.
Started off with 23.0.A.2.98 (customized DE) on my phone and deactivated e.g. Chrome, Google Play Store, Google Play Services and some other Apps. Now, as I wanted to make some screenshots in English, I changed language settings from German to English. That moment Chrome, Google Play Services and otheres (but not all of them) got automatically re-activated and also (re-)appeared in the App drawer. Changing the phone back to German did not help as still some Apps keep getting re-activated after say a re-start of the phone.
Then, installed 23.0.A.2.105 (customized UK), immediately set it to German during first boot, deactivated same apps as before and guess what... same here.
It looks as if whenever you set your phone to use a language different to the one for which the build was localized for this problems shows.
Can anyone please try and confirm?
This explains this reactivating of Apps. I was trying to deactivate Admin for the Sony Enterprise something. It re-activates automatically and reactivates some of the disabled apps. Not all though...
Very anoying. Especially that Sony gives themselves admin rights again after I deactivated it.... hmmm.
msm1111 said:
Very anoying. Especially that Sony gives themselves admin rights again after I deactivated it.... hmmm.
Click to expand...
Click to collapse
Happy to see (well, kind of, for it shouldn't be present in the first place) that finally someone has been able to reproduce the bug.
In order to get rid of admins "Sony Enterprise API" and "Sony My Xperia" do the following:
Download ADB and store it somewhere on you PC.
Enable USB debugging on the phone and connect it to your PC.
Open a command window and navigate to where you stored ADB.
Type "adb shell" at the prompt, hit ENTER and and the prompt changes to "[email protected]:/ $"
To block "Sony Enterprise API", issue command: "pm block com.sonymobile.enterprise.service"
To block "Sony My Xperia", issue command: "pm block com.sonymobile.mx.android"
While we are at that (though not an Admin, yet annoying), to block "What's New", issue command: "block com.sonymobile.advancedwidget.entrance".
The result of the block commands should look like "Package %PACKAGE_NAME% new blocked state: true. If still "false", you have to deactivate the corresponding admin in the settings first and re-issue the command again.
Only thing I have not been able to figure out yet is how to remove/block admin "Configuration Agent" but that one does not turn on itself (like the "Sony Enterprise API" does).
sxtester said:
Only thing I have not been able to figure out yet is how to remove/block admin "Configuration Agent" but that one does not turn on itself (like the "Sony Enterprise API" does).
Click to expand...
Click to collapse
Ah, thank you!
Configuration agent is: pm block com.sonymobile.deviceconfigtool
Wonderful, that removed my last (unwanted) one.
Thanks. I'll try it on Sunday! Is this enterprise stuff actually good for something? Or just tracking.
msm1111 said:
Thanks. I'll try it on Sunday! Is this enterprise stuff actually good for something? Or just tracking.
Click to expand...
Click to collapse
This is mainly for policy enforcement on mobiles given to employees by their company.
Check this for more info: http://developer.sonymobile.com/201...-work-with-our-sdk-and-become-a-sony-partner/
Just a quick note to say thanks to the guys who wrote this one up. I managed to follow the instructions and get rid of the whats new icon ive lost a bit of my touch though as this is not for those who don't know what sdk is.
pm block com.sonymobile.enterprise.service with this one I was getting: "False" without knowing how to change it to "true"
sxtester,
Thanks! It worked! I got rid of this stuff. I needed some attemps and reboots in between.
For "com.sonymobile.enterprise.service" you need to first disable admin and block "com.sonymobile.mx.android", reboot, then disable admin for the enterpriseAPI, block, reboot. Now its gone
I also successfully blocked "com.sonymobile.advancedwidget.entrance", "com.sony.smallapp.launcher" and "com.sony.smallapp.app.widget"
As I am not so familiar in adb, may I ask what is the difference between blocking and disabling (I guess its the same disable I can do in Settings/Apps)? I realized the blocked packages do not show up in the "pm list packages" anymore. Disabled ones do. Is there a list to see what was blocked? Thanks.
Btw I can also confirm that the OP is correct. When I first disabled Sony enterprise most or all of my disabled apps were re enabled.
Every thing worked great, thanks for help!
Thank you!!! Worked great Z3
PM BLOCK commands don't work...
I tried what was suggested above, but after I entered my ADB SHELL, the PM BLOCK command didn't work. I used the latest ADB that was installed on my system, but the only command that seems relevant to this was: PM DISABLE. I used that with the packages mentioned but they didn't get disabled. I had to disable them manually again after rebooting.
m0b1f0n3 said:
I tried what was suggested above, but after I entered my ADB SHELL, the PM BLOCK command didn't work. I used the latest ADB that was installed on my system, but the only command that seems relevant to this was: PM DISABLE. I used that with the packages mentioned but they didn't get disabled. I had to disable them manually again after rebooting.
Click to expand...
Click to collapse
As you didn't specify the version of ADB, try the following:
Download EasyRoot Tool from http://forum.xda-developers.com/showthread.php?t=2784900
Don't run the tool itself, it won't work on the Z3/Z3C! However, it contains a very slim ADB version 1.0.31 which worked for me.
Unpack the ZIP to a directory of your choice.
Open a CMD Window and navigate to %YOUR_FOLDER%\EasyRootTool v12.3\files
Connect you phone and issue the PM block commans as described above.
PM BLOCK commands still don't work...
sxtester,
Thanks for your response. I tried all sorts of ADB versions (1.0.25) including the one you suggested. I had no luck. Once I issued any of the commands above, I got the message: "Error: unknown command 'block'". I am not sure what more I can do at this point.
Any ideas?
m0b1f0n3 said:
sxtester,
Thanks for your response. I tried all sorts of ADB versions (1.0.25) including the one you suggested. I had no luck. Once I issued any of the commands above, I got the message: "Error: unknown command 'block'". I am not sure what more I can do at this point.
Any ideas?
Click to expand...
Click to collapse
I used "hide" command and it worked like a charm, i.e.: pm hide com.sony...
Hope it will help.

[Magisk][Module] FireTV 4K Stick Add-Ons

As we have unlocked bootloader on FiteTV 4K stick now, I made Magisk module, which disables OTA updates, and also includes some Google stuff:
Google Search for TV (2.2 or 3.13) with working Voice Input,
LeanbackOnFire (rockon999) Launcher - support Google Search and Android TV Recommendations,
Screen Rotation - allow set proper orientation for mobile Apps,
[*]Buttons Remapper - allow choose Keyboard, reassign Home, switch between Apps and many more,
[*]FireTVjack - allow reassign Home, set Language, and freeze stock KFTV Launcher,
LeanKey Keyboard Pro (it have multilingual support).
Module also adds Russian language instead Portuguese (and Ukrainian instead Japanese) to FireTV Settings menu and have Russian Settings translation over android resources overlays (must be compatible with future OTA updates).
AFTV Add-Ons (Magisk Module) v20201218 (Fire OS 6.2.7.6 compatible)
Previous:
=======
GDrive (All files)
Tested on Fire TV 4K with FireOS 6.2.6.5 / 6.2.6.6 / 6.2.6.8 / 6.2.7.1 / 6.2.7.3 / 6.2.7.6 and Magisk 20.1-4/21.0. Still under development.
How to install:
===========
- Unlock FireTV bootloader.
- Install Magisk (stable) via TWRP!
* don't ever do install / update Magisk over Magisk Manager on Fire TV 4K!
- Boot to Fire OS and pass Amazon Registration screen
- Check and install all current OS / Apps update in My Fire TV Settings section
- Reboot to TWRP Recovery and install / update module (AFTV-MM-2.0.zip)
* "adb shell reboot recovery" over adb or connect OTG cable with mouse and select Cancel on Power ON
How to update:
===========
Just add new module version in Modules section of Magisk Manager (+) and press Reboot button after.
You need to wait till autorestart on first boot after module update (implemented from v1.8 +).
To freeze stock Amazon launcher:
==========================
adb connect FireTV IP (allow connection on TV)
adb shell
su
settings put global frozenMode enabled
reboot
* KFTV Launcher will be auto-frozen if you'll enable AFTV-XM Xposed Module in Xposed Installer (Modules tab) and have any user launcher installed.
To choose LeanbackOnFire as default Home:
============================
- Install Xposed Framework from Magisk Manager
- Open Xposed Installer - Modules tab and activate AFTV-XM Module
- Reboot
To enable Android TV Recommendations:
================================
- Go to LeanbackOnFire Launcher Settings / Edit Apps Rows / Edit Rows and enable Recommendations Row there
* in case there is toast about needed permissions, do over adb:
adb connect FireTV IP (allow connection on TV)
adb shell
su (grant root access on TV)
pm grant com.amazon.tv.leanbacklauncher android.permission.WRITE_SECURE_SETTINGS
pm disable com.amazon.device.sale.service
reboot
Optional packages to disable:
=============================
pm disable com.amazon.ags.app
pm disable com.amazon.alexashopping
pm disable com.amazon.bueller.music
pm disable com.amazon.bueller.photos # (used for screensaver)
pm disable com.amazon.device.metrics
pm disable com.amazon.device.sale.service # (must be disabled in case LeanbackOnFire recommendations are ON)
pm disable com.amazon.device.software.ota
pm disable com.amazon.device.software.ota.override
pm disable com.amazon.firebat
pm disable com.amazon.hedwig
pm disable com.amazon.tahoe
pm disable com.amazon.tv.alexanotifications
pm disable com.amazon.tv.fw.metrics
pm disable com.amazon.wirelessmetrics.service
pm disable com.android.documentsui
...
GSearch
=======
You can use Voice Input in ATV apps (press on-screen mic and long-press mic on remote and speak)
You can assign ASSIST (keycode 219) in Xposed Edge Pro or other remapper apps to Voice remote button
===
P.S. In case something went wrong You can always do factory reset, remove Module or uninstall / reinstall Magisk and your system will back to full stock - no files in /system partition changed by module.
Have Fun!
tsynik said:
As we have unlocked bootloader on FiteTV 4K stick now, I made Magick module, which disables OTA updates and Metrics, and also includes some Google stuff: Google Search for TV (3.7), LeanbackOnFire (rockon999) Launcher, Launcher Hijack, Screen Rotation, Buttons Remapper and LeanKeyKeyboardPro (it have multilingual support).
AFTV Add-Ons (Magisk Module)
Tested on FireOS 6.2.6.5 and Magisk 19.3. Still under development.
Have fun!
Click to expand...
Click to collapse
Thanks very much, I'm wondering if you could help me, I've rooted my 4k stick but the stick won't go past setup screen as I think it's been blocked by Amazon, is there any chance you could upload a TWRP backup for me to restore in TWRP so I can get into my home screen ? Or you wouldn't know any commands I can use in TWRP terminal ?
I'd love to get this up and running along with this lot what you have done.
Thanks.
Awesome project! Thanks for the hard work, will defo be installing this once i get time to root
Be careful with this .... I had UI restart issues .... had to uninstall
Doesn't work properly for me. Seems to install fine, but nothing happens.
Tepifan said:
Doesn't work properly for me. Seems to install fine, but nothing happens.
Click to expand...
Click to collapse
I've updated module and instructions how to setup. Read 1st post.
Thanks. Will try this tomorrow.
Thanks, installed and working without any discernable issues as of yet. I'll update if I see anything.
For anyone interested in debug options: you can enable KFTV Launcher Debug menu (accessible via HUD).
To enable:
- Install MagiskHide Props Config module from repo
- Install busybox module from repo
- Reboot and override those options with props command via shell:
ro.debuggable=0 to ro.debuggable=1
ro.build.type=user to ro.build.type=userdebug
Have fun!
how to uninstall those alexa update in /data
Masterofchicken said:
how to uninstall those alexa update in /data
Click to expand...
Click to collapse
I too would like to know this, please elaborate for us both.
xionbunny said:
I too would like to know this, please elaborate for us both.
Click to expand...
Click to collapse
just type in adb shell:
su
pm uninstall com.amazon.vizzini
reboot
Working vizzini apk must be this:
mantis:/ $ pm path com.amazon.vizzini
package:/system/priv-app/com.amazon.vizzini/com.amazon.vizzini.apk
Great job. I'm a bit scared cause I dont want to be forced to factory reset if something goes wrong but this weekend I could try nonetheless. Any chance to have Chromecast support (Shield like) and/or Google services?
Thanks.
The pm grant com.amazon.fireh1jack android.permission.SYSTEM_ALERT_WINDOW command is not working for me, it gives me a huge list on how to execute pm commands correctly.
puppinoo said:
Any chance to have Chromecast support (Shield like) and/or Google services?
Thanks.
Click to expand...
Click to collapse
Probably no. There is something weird with fw when placing privileged apps to /system/priv-app. I tried current 7.1 tvstock opengapps package as a module, and it doesn't work (except google search)
@tsynik I cannot get this to work, i unlock bootloader, boot to twrp, install rbox rom then magisk 20.0 reboot to setup then reboot to twrp install your zip file then the commands in your guide wont work.
I am connected to my stick with adb and su but no joy.
---------- Post added at 08:34 PM ---------- Previous post was at 08:33 PM ----------
[/COLOR @tsynik I cannot get this to work, i unlock bootloader, boot to twrp, install rbox rom then magisk 20.0 reboot to setup then reboot to twrp install your zip file then the commands in your guide wont work.
I am connected to my stick with adb and su but no joy.
tsynik said:
Probably no. There is something weird with fw when placing privileged apps to /system/priv-app. I tried current 7.1 tvstock opengapps package as a module, and it doesn't work (except google search)
Click to expand...
Click to collapse
would there eventually be a solution?
xionbunny said:
would there eventually be a solution?
Click to expand...
Click to collapse
Aptoide TV + this module
tsynik said:
Aptoide TV + this module
Click to expand...
Click to collapse
aurora store gives you play store access though, I've turned that for the moment to get my official google play store apps.
Can anyone help me to get this working ?

How to remove Google services?

Does anyone know how to completely remove Google services on EMUI 10? Maybe some ADB commands because I can not disable core services from GUI? I don't need their bloatware, especially after they added COVID s*it inside.
Thanks a lot and have a nice day!
domy_os said:
Does anyone know how to completely remove Google services on EMUI 10? Maybe some ADB commands because I can not disable core services from GUI? I don't need their bloatware, especially after they added COVID s*it inside.
Thanks a lot and have a nice day!
Click to expand...
Click to collapse
Download "package name viewer 2.0" from market then open it and Search for "package name" for the app you want to delete,,
Open adb on your computer
Put those codes :
- adb devices
If you see an entry listed under the “List of devices” section, then your device is connected.
- adb shell
- pm uninstall -k --user 0 package-name
For example you want to delete google play services app,, open package name app and search for package name for that app,, will be "com.google.android.gms"
So..
- pm uninstall -k --user 0 com.google.android.gms
So do this with the rest of the apps you want to delete..
Will factory reset restore all removed packages, just in case something goes wrong?
domy_os said:
Will factory reset restore all removed packages, just in case something goes wrong?
Click to expand...
Click to collapse
Yes... I think so
Damn, I have to be 100% sure because the phone is not rooted so no way to make full system image. Maybe reflash with HiSuite will help, I don't know...
domy_os said:
Will factory reset restore all removed packages, just in case something goes wrong?
Click to expand...
Click to collapse
Hi @domy_os, did you ever manage to remove Google Play Services? And did you find out if it came back after a factory reset?
thefish123 said:
Hi @domy_os, did you ever manage to remove Google Play Services? And did you find out if it came back after a factory reset?
Click to expand...
Click to collapse
Yes, but I have restored it because some crypto apps (still) depend on Google.
Take a look on Universal Android Debloater, it's a nice tool...
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
domy_os said:
Yes, but I have restored it because some crypto apps (still) depend on Google.
Take a look on Universal Android Debloater, it's a nice tool...
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
That is an interesting tool. I will have to check that out. Right now, I am running LineageOS with MicroG (an open source replacement for Google Play Services) on a Samsung S10+ (SM-G975F). But because it is the international model (the only ones that support unlocking the bootloader) I do not have all LTE bands enabled and so I have poor reception in places (not terrible but I am concerned about when I go into rural areas).
So, now I am thinking about getting a Canadian model and de-bloating it instead of running an alternative ROM.
The Fish

Debloating MIUI without Root Access (Manual Method)

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Tired of all the pre-installed applications that come with your new phone. Most of them tend to be useless and some tend to be on annoying side with push notifications and battery drains.
One way to get rid of all these intruders is to root your device and delete them using some application or manual purge. Not everyone is comfortable with rooting and it's risks. Also, rooting is not an option on many phones coz of limited support from the developer community. Does that mean one has to learn to live with the bloat?
Thankfully, No. You can get rid of them with the use of ADB (Android Debugging Bridge). The method is safer than manual purge and would not break any system variables, allowing to keep accepting OTAs w/o any issues.
Let's Debloat your Phone.
Note: This method works on every OEM rom as well as custom rom without root access.
Requirements:
Android Platform Tools
Prerequisites:
Disable "App Vault", "Swipe up for google", "Wallpaper Carousel", "Find Device", "Mi Sync"(Don't confuse Mi Sync and Google Sync though)
Follow the steps carefully :
Initial Setup
1. Go to About Phone in Settings.
2. Tap on MIUI version/Build version until it shows You're now a developer. It might ask for password in some cases.
3. Go to Settings>Additional Settings>Developer Options or Settings>System>Developer Options.
4. Enable USB Debugging, Install via USB, USB Debugging(Security Settings). Accept all the prompts thrown.
Note: Most ROMs will only have USB Debugging toggle.
Note: On MIUI, the above step requires an MI Account.
Main Process
Connect your device to the PC now. Recommend using a good quality USB cable for this.
1. Extract the platform tools zip. Navigate to the folder.
2. Shift+Right click and select open command window here.
3. Type adb devices
4. Grant authorization on your phone.
5. Type adb devices again and ensure that it shows your device as connected and authorized.
Note: If your device doesn't show up, you might need to install latest USB drivers for your phone. It usually happens automatically if you have an updated OS. If that's not the case, use this and install the USB drivers.
6. Type adb shell.
7. Type
Code:
pm list packages | grep 'mi'
Here mi is a keyword. You can replace it with whatever you want. This command would return all packages which have the phrase mi in their name.
Type
Code:
pm list packages
for complete list of installed packages.
8. Type
Code:
pm uninstall -k --user 0 <package-name>
Replace the <package-name> with the package you want to remove. The names can be obtained from the list command in the previous step.
Tip: Package name can be found in app list. Just tap on the small 'i' icon on the top right corner of each app page on MIUI. On custom roms, it's usually given at the bottom.
Tip : If you can't see all apps. Tap on the three dots in the top corner on "Manage Apps" page and tap "Show All Apps". SImilarly on custom roms, it can be achieved by selecting "Show System Apps".
I'm not going to cover all the OEMs or Custom Roms. The process is similar across all OEMs and Custom Roms. Packages that are safe to remove on MIUI are given below:
(Skip to the next step if you're not on MIUI)
- Cleaner
Code:
com.miui.cleanmaster
- Tracking Application
Code:
com.miui.daemon
- Ad Serving Application
Code:
com.miui.msa.global
- Xiaomi System Webview
Code:
com.mi.webkit.core
- Tracking Application
Code:
com.xiaomi.joyose
- Facebook Bloat
Code:
com.facebook.services
- Facebook Bloat
Code:
com.facebook.appmanager
- Facebook Bloat
Code:
com.facebook.system
- Tracking Application
Code:
com.miui.analytics
- Wallpaper Carousel
Code:
com.miui.android.fashiongallery
- ShareMe/Mi Drop
Code:
com.xiaomi.midrop
- Broswer with Ads
Code:
com.android.browser
- Calendar with Ads
Code:
com.android.calendar
- Tracking Application
Code:
com.miui.bugreport
- Tracking Application
Code:
com.xiaomi.glgm
- Tracking Application
Code:
com.miui.yellowpage
- Weather Application
Code:
com.miui.weather2
- Tracking Application
Code:
com.miui.miservice
- Music player with Ads
Code:
com.miui.player
- Mi Pay
Code:
com.mipay.wallet.id
- Mi Pay
Code:
com.mipay.wallet.in
- Mi Pay
Code:
com.xiaomi.payment
- Quick Apps
Code:
com.miui.hybrid
- Quick Apps Addon
Code:
com.miui.hybrid.accessory
- Video Player with Ads
Code:
com.miui.videoplayer
- GetApps
Code:
com.xiaomi.mipicks
- Translation Service
Code:
com.miui.translation.kingsoft
- Translation Service
Code:
com.miui.translation.youdao
- Translation Service
Code:
com.miui.translation.xmcloud
- Translation Service
Code:
com.miui.translationservice
- Mi Doc Viewer (XPS based)
Code:
cn.wps.xiaomi.abroad.lite
- Recycle Service
Code:
com.xiaomi.mirecycle
- Ad based App Installer
Code:
com.miui.global.packageinstaller
- Auto Installs from Play Store
Code:
android.autoinstalls.config.Xiaomi.ginkgo
- App Vault
Code:
com.mi.android.globalminusscreen
- Mi Credit
Code:
com.micredit.in
- Mi Health
Code:
com.mi.health
- Downloads Application with Ads
Code:
com.android.providers.downloads.ui
(make sure you have an alternate file explorer installed before you uninstall the next one)
- Ad based File Explorer
Code:
com.mi.android.globalFileexplorer
Google BloatWare
A few Google Applications that always come pre-installed :
- Youtube
Code:
com.google.android.youtube
- Hangouts
Code:
com.google.android.talk
- Play Movies & TV
Code:
com.google.android.videos
- Google Duo
Code:
com.google.android.apps.tachyon
- Google Chrome
Code:
com.android.chrome
- Google Search Application
Code:
com.google.android.googlequicksearchbox
- Digital Wellbeing
Code:
com.google.android.apps.wellbeing
- Android Feedback
Code:
com.google.android.feedback
- Talkback
Code:
com.google.android.marvin.talkback
Note: Removal of Google Search App will Remove Assistant and Google search.
Conclusion
This is not a complete list. You can remove anything that you find annoying using these commands. Just replace the package name with the package you wish to remove.
However, removing some apps could cause issues. Stay away from MI Account, Security and Google Services related apps. If you accidentally remove something and end up experiencing crashes, please follow the following steps.
Type
Code:
adb shell
.
Type
Code:
cmd package install-existing <name-of-package>
Replace <name-of-package> with the name of the package to be restored.
Note : The method doesn't delete the application. It only changes the permissions of each package and hides it in the system. A Factory Reset, OTA update or a Reinstall would restore the application. Also, if you create a new user, he would have access to the removed applications.
MOD EDIT: Telegram link removed, please read the STICKY!
Reserved
using this much easier and faster https://github.com/Szaki/XiaomiADBFastbootTools
if i remember correctly when i was on miui (ginkgo)
i removed "Find Device" and the phone stay in bootloop
anyway ...
the command : pm uninstall -k --user 0 <package-name>
can remove app for user 0
but what if i want to remove the app for all users ???
nneko904 said:
using this much easier and faster https://github.com/Szaki/XiaomiADBFastbootTools
Click to expand...
Click to collapse
It's personal choice. The tool does the same thing. This is for people who want to do it manually without a tool.
Also that tool is specific to the xiaomi devices to an extent. You can use this on any android smartphone. This doesn't have java dependencies as well.
loopypalm said:
if i remember correctly when i was on miui (ginkgo)
i removed "Find Device" and the phone stay in bootloop
anyway ...
the command : pm uninstall -k --user 0 <package-name>
can remove app for user 0
but what if i want to remove the app for all users ???
Click to expand...
Click to collapse
You can't remove an app completely from the system without root access. If you have a second user, you have to remove it for other users as well.
And I haven't mentioned find find device anywhere.
Great, debloated here. Missed play music only.
uncannyjish said:
And I haven't mentioned find find device anywhere.
Click to expand...
Click to collapse
you mentioned it in prerequisites , i tought u r goin to remov it ...
uncannyjish said:
You can't remove an app completely from the system without root access. If you have a second user, you have to remove it for other users as well..
Click to expand...
Click to collapse
i have root access,and no 2nd user
when i use the comand the app is removed just for user 0 but it stays in the system
thats why i asked for a comand to remove it completely
loopypalm said:
you mentioned it in prerequisites , i tought u r goin to remov it ...
i have root access,and no 2nd user
when i use the comand the app is removed just for user 0 but it stays in the system
thats why i asked for a comand to remove it completely
Click to expand...
Click to collapse
Well if you're have root, and can mount system as rw. You could use some root explorer and remove the apk's and there folder. But doing this prevents the ability for OTA update because now the system is changed.
The space saved by doing this is so tiny, you will never notice it.
---------- Post added at 05:22 PM ---------- Previous post was at 04:53 PM ----------
uncannyjish said:
Note : The method doesn't delete the application. It only changes the permissions of each package and hides it in the system. A Factory Reset, OTA update or a Reinstall would restore the application. Also, if you create a new user, he would have access to the removed applications.
Click to expand...
Click to collapse
Very nice thread.
FYI, I have been doing this on stock ROMs for long time. It's nice to see a listed description.
FYI, with this adb method , your debloated apps will remain gone after an OTA update. At least for me they do.
mrmazak said:
Well if you're have root, and can mount system as rw. You could use some root explorer and remove the apk's and there folder. But doing this prevents the ability for OTA update because now the system is changed.
The space saved by doing this is so tiny, you will never notice it
Click to expand...
Click to collapse
i use custom rom and i don't want OTA
i asked for the command because it remove the app + data
i can delete the app manualy by browsing system/app or priv app but i have to look for eatch app data folder
loopypalm said:
i use custom rom and i don't want OTA
i asked for the command because it remove the app + data
i can delete the app manualy by browsing system/app or priv app but i have to look for eatch app data folder
Click to expand...
Click to collapse
Well if you are concerned about the app data being left. Just run the command as in the . OP bit leave the "-k" off. This part of the command is (keep) , it keeps the user data on device. If you run the command without the -k, then it does not keep data.
loopypalm said:
i use custom rom and i don't want OTA
i asked for the command because it remove the app + data
i can delete the app manualy by browsing system/app or priv app but i have to look for eatch app data folder
Click to expand...
Click to collapse
Try running adb root and use the uninstall command on the package without the flags. Since you're rooted, it might just remove app + data.
godoy.rafa said:
Great, debloated here. Missed play music only.
Click to expand...
Click to collapse
Find the package name and remove it. I already explained all command
loopypalm said:
you mentioned it in prerequisites , i tought u r goin to remov it ...
i have root access,and no 2nd user
when i use the comand the app is removed just for user 0 but it stays in the system
thats why i asked for a comand to remove it completely
Click to expand...
Click to collapse
I asked everyone to disable those stuff, so to prevent any app from returning.
mrmazak said:
Well if you are concerned about the app data being left. Just run the command as in the . OP bit leave the "-k" off. This part of the command is (keep) , it keeps the user data on device. If you run the command without the -k, then it does not keep data.
Click to expand...
Click to collapse
i know, i asked for a command that remove the app completly not only for "user 0" and it seems no one knows it
Can i remove gallery? Is it safe? I mean com.miui.gallery .
OliveReeve said:
Can i remove gallery? Is it safe? I mean com.miui.gallery .
Click to expand...
Click to collapse
yes
OliveReeve said:
Can i remove gallery? Is it safe? I mean com.miui.gallery .
Click to expand...
Click to collapse
better not, there's several problems user reported when they remove it
there's many thread over which app you could remove and shouldn't, i recommend you should go search them
nneko904 said:
better not, there's several problems user reported when they remove it
there's many thread over which app you could remove and shouldn't, i recommend you should go search them
Click to expand...
Click to collapse
What problems are related to miui gallery removal? Please tell me I don't want to search over whole xda. It is probably bootloop too but I am not sure (hint from some github page).
---------- Post added at 11:27 AM ---------- Previous post was at 11:24 AM ----------
If I get it it to bootloop by debloating, Can I fix it by adb? I know that I can reinstall app back by adb. I don't have root and twrp so far. Does it respond to adb during this bootloop?
OliveReeve said:
What problems are related to miui gallery removal? Please tell me I don't want to search over whole xda. It is probably bootloop too but I am not sure (hint from some github page).
---------- Post added at 11:27 AM ---------- Previous post was at 11:24 AM ----------
If I get it it to bootloop by debloating, Can I fix it by adb? I know that I can reinstall app back by adb. I don't have root and twrp so far. Does it respond to adb during this bootloop?
Click to expand...
Click to collapse
If you get bootloop from adb app uninstall, you will not get to use adb. Factory reset from recovery will undo the changes.
As for the gallery apk. I had removed it and was no longer able to save any photos, from any camera. I was not able to delete files from device either. The gallery app is somehow forced into needed for /sdcard file permissions. You can set it to "adb hide". If you don't want to see it

Question Okay, I'm stupid...

So, I was going through and removing bloat from my phone and was trying to remove the Samsung Contacts app through `adb`, but apparently I removed the wrong thing and now the Phone, Messages, and Contacts app are crashing every time I try to open them. I removed "package:/system/priv-app/SamsungContactsProvider/SamsungContactsProvider.apk=com.samsung.android.providers.contacts" which is apparently a core service. I'm wondering if anyone might know how I could reinstall that APK?
install this apk should solve the problem
If worse comes to worse a factory reset will.
A lot of the bloatware is useful. I prefer to use a package disabler as I can easily toggle them on or off as needed real time.
rtd4 said:
install this apk should solve the problem
Click to expand...
Click to collapse
It sat for a minute trying to install and then came up with, "App not installed" and says that every time I retry.
Trying install via adb I get: "
Performing Streamed Install
adb: failed to install /home/mhicks/Downloads/SamsungContactsProvider.apk: Failure [INSTALL_FAILED_DUPLICATE_PERMISSION: Package com.samsung.android.providers.contacts attempting to redeclare permission android.permission.SEND_CALL_LOG_CHANGE already owned by com.android.providers.contacts]"
Hmmm, perhaps I should remove Google Contacts first...
Okay, that helped, but now I'm getting: "
Performing Streamed Install
adb: failed to install /home/mhicks/Downloads/SamsungContactsProvider.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]"
I thought deleting the "com.samsung.android.providers.contacts" might solve the problem, but trying gave me: "
./adb -d uninstall com.samsung.android.providers.contacts
Failure [DELETE_FAILED_INTERNAL_ERROR]"
darkfrog26 said:
It sat for a minute trying to install and then came up with, "App not installed" and says that every time I retry.
Click to expand...
Click to collapse
try these commands on pc
adb shell cmd package install-existing com.samsung.android.providers.contacts
adb shell pm install -r --user 0 /system/priv-app/SamsungContactsProvider/SamsungContactsProvider.apk
The first command returns: "Package com.samsung.android.providers.contacts installed for user: 0", but the second command returns: "Failure [-3001: INSTALL_FAILED_REJECTED_BY_BUILDTYPE]"
If you have deleted the apk with root you just have to paste it again in the folder /system/priv-app/SamsungContactsProvider
@rtd4, unfortunately, this device isn't rooted.
darkfrog26 said:
@rtd4, unfortunately, this device isn't rooted.
Click to expand...
Click to collapse
It is somewhat complicated to recover the device without wipe in the past I had these problems, it was solved with a higher version of the application
@rtd4, I suppose it's time for a wipe... Thanks for trying to help me.
If you had made a copy of all your apps including system apks with ApkExport you could now use that copy to restore it.
Now before you factory reset make a copy of your installed apps and any system updates then save it on the PC or SD card. After the reload you won't need Playstore. It speeds things up a lot...
APK Export (Backup & Share) - Apps on Google Play
Manage and extract your apps.
play.google.com
@blackhawk, thanks for the tip. Right now, I'm trying to set up a Telegram account so I can root my phone (US version) if I'm going to go through the trouble of wiping. Unfortunately, Telegram's SMS verification appears to be broken or at least doesn't like Mint Mobile... Fun day.
darkfrog26 said:
@blackhawk, thanks for the tip. Right now, I'm trying to set up a Telegram account so I can root my phone (US version) if I'm going to go through the trouble of wiping. Unfortunately, Telegram's SMS verification appears to be broken or at least doesn't like Mint Mobile... Fun day.
Click to expand...
Click to collapse
You're welcome.
You really don't need to root.
Consider the possible consequences carefully.
Package Disabler will easily block apks you don't want running.
Well, it would appear it's moot anyway since I'm at Baseband v4 and only v1 can be rooted apparently...
darkfrog26 said:
Well, it would appear it's moot anyway since I'm at Baseband v4 and only v1 can be rooted apparently...
Click to expand...
Click to collapse
This is the one I use:
Home - Package Disabler
The only NON-root solution that let’s you disable any unwanted packages that come pre-installed / installed with your phone / tablet.
www.packagedisabler.com
It has an interactive widget that allows you to toggle selected entries on/off. It runs even in Safe mode so be careful what you disable. I've never had to do a factory reset because of it but the potential is there.
Unfortunately it no longer disables Google play Services but will disable all carrier bloatware including OTA updates.
darkfrog26 said:
@rtd4, unfortunately, this device isn't rooted.
Click to expand...
Click to collapse
Then how come you have removed apk from system?
In case you have used command like
pm disable packageName . Then try pm enable packageName
Or
If you have used
pm hide packageName then try
pm unhide packageName
darkfrog26 said:
So, I was going through and removing bloat from my phone and was trying to remove the Samsung Contacts app through `adb`, but apparently I removed the wrong thing and now the Phone, Messages, and Contacts app are crashing every time I try to open them. I removed "package:/system/priv-app/SamsungContactsProvider/SamsungContactsProvider.apk=com.samsung.android.providers.contacts" which is apparently a core service. I'm wondering if anyone might know how I could reinstall that APK?
Click to expand...
Click to collapse
Next time use this, so you don't make mistakes:
[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