Kung-Foo-Kamel's no nonsense "How To Root Your Black Shark 3" - Xiaomi Black Shark 3 Guides, News, & Discussion

I spent countless hours and downloaded over 100Gb of files and found nearly all how-to's and files borked in someway, so I managed to patch together a working repeatable process to root the Black Shark 3, I also managed to do this with the CN version of JoyUI but I hated it, and switch straight back to the global.
This is for the Black Shark 3 Global only
Note:
1: I will start by saying, your best to place the "Unlockfiles" directory and contents straight into your "C drive" this will make it easy when you open a command prompt, you can then just type: cd c:\unlockfiles and your good to go.
2: I'm not responsible if you FUBAR your phone, that's your problem, not mine
3: before you start this, please ffs log the out of the Mi account on the phone and shut that crap down, don't go any further until you have done this, to be honest, I don't know why anyone would eve log into this garbage in the first place, seems worse than all the google crap.
4: This "How To" is for Windows 10 only, all drivers appeared to be installed automatically by default.
5: Link to download required files: Click Here To Download
6: Password for the zip file is: Password
Unlocking the Bootloader:
1: Enable developer mode in the settings of your BS3
2: Enable USB Debugging in developer settings on your BS3
3: Connect phone to to PC via USB cable
4: Open a command prompt in the Unlockfiles directory
5: Check ADB connection to the phone by entering: adb devices
6: If okay, then type: adb reboot edl
7: Phone will reboot into emergency download mode, screen will be off, but phone will still be connected.
8: Open the MiFlash tool provided in the Unlockfiles folder, ignore any silly messages it gives you about not finder a flash script, then hit select in the MiFLash app and selct the Bootunlocker folder.
9: Press the refresh button, your BS3 should show up under devices as COM10 or something similar, then hit flash, with any luck it should say "successful"
10: Now, hold down the volume down button, then press and hold down the power button, as soon as the phone turns on, release the power button, but keep pressing the volume down until it starts in the bootloader.
11: If you did that correctly, you should be able to type fastboot devices in your command prompt and it should show as connected.
12: In the command prompt run the fbunlock.bat found in the Unlockfiles directory, this will now unlock the bootloader and reboot the phone
13: If successful it will show that the bootloader is unlocked on the phone, leave the phone in this mode if you want to continue with twrp and rooting the phone.
Installing TWRP and Rooting the phone
1: Only follow this guide if you now want to root your phone, be aware that you will need to install the provided rom image.
2: Make sure you command prompt is open in the Unlockfiles directory
3: Test your phone is connected properly by typing: fastboot devices
4: Install TWRP by typing: fastboot flash recovery twrp.img
5: Reboot the phone into recovery mode by typing: fastboot reboot recovery
6: You should now be entering into twrp, it may be in Chinese at first, one of the buttons will switch it to English
7: Now select advanced in twrp, then sideload, twrp should go into sideload mode and wait for the file to be pushed through adb on the pc
8: In your command prompt, type: adb sideload global_stock_rom.zip
9: Go grab a coffee and wait
10: when the rom is installed, hit reboot in twrp
11: If successful your phone will now have botted straight into the OS
12: In you command prompt, type: adb reboot fastboot
13: Once the phone has rebooted, using the volume buttons, select "reboot to bootloader"
14: Check your connection by typing the following in the command prompt: fastboot devices
15: Flash the rooted bootloader file by typing: fastboot flash boot rooted_boot.img
16: Once completed type: fastboot reboot
17: You may be presented with a prompt to wipe the phone and restore to factory, just do it if required.
18: Once you phone has booted to the OS, transfer the Magisk.apk to you downloads folder on the phone, this can be done through windows in "My Computer" as your phone should be connected as a storage device, just make sure you set the phone to transfer files mode when the prompt comes up.
19: Install the Magisk.apk, if everything was successful, Magisk will say installed.
20: Go read or watch a tutorial on how to use Magisk.
21: Have fun with your newly unlocked and rooted Black Shark 3
Additional fun, debloat your phone
1: Head over to here: https://selivan.github.io/2020/02/25/removing-bloatware-from-xiaomi-miui-android.html
2: Fire up the command prompt and navigate to you Unlockfiles directory
3: Check your connection to the phone: adb devices
4: Enter the android shell by typing: adb shell
5: List all packages installed on the phone by typing: pm list packages
6: If you wish to search for packages you can type: pm list packages Xiaomi or pm list packages google
7: To uninstall a package just type: pm uninstall --user 0 app.package.name (Obviously just replace app.package.name with the package name of your choice)
8: I removed all the safe to remove packages from the website listed above, and the phone works super great, even Shark Space 3 switched from Chinese text to English.
I will end this by saying, what a great piece of hardware this phone is, but like most of these Android devices, its plagued with total crap software and half arsed security, just enough to cause people issues if they want to actually have some fun with the device, in my opinion, if you want a phone with good security and well thought out software, then just by an Apple iPhone, I use an iPhone for daily work and all things important, I use Android devices for gaming and tinkering, just like I use a Mac for all things important and a PC for gaming and tinkering.
Regards
Kung-Foo-Kamel

Hi a quick question why do I have to flash a rooted boot image? Isn't it simple after flashing twrp just to flash magisk directly like everyone does ? Or it will brick the device I mean I don't want to install another rom version I just need to install root in my current official global rom that's it
Hope you can clarify all of my queries
Regards

[10:56:33 COM10]:MiFlash 2020.3.14.0
[10:56:33 COM10]:vboytest index:10
[10:56:33 COM10]:flash in thread name:COM10,id:9
[10:56:33 COM10]:flash in thread name:COM10,id:9
[10:56:33 COM10]:vboytest do open :
[10:56:33 COM10]: serial port COM10 opend successfully
[10:56:33 COM10]:[COM10]:start flash.
[10:56:34 COM10]:cannot receive hello packet,MiFlash is trying to reset status!
[10:56:35 COM10]:try to reset status.
[10:56:37 COM10]:write time out try agian 1
[10:56:39 COM10]:write time out try agian 2
[10:56:42 COM10]:write time out try agian 3
Tried all of the avaible online theroes about it holding power button to restart power cycle, entering edl mode without prompt changing usb port actiavating windows test mode Nothing works. Is there another solution?

Wissler9 said:
[10:56:33 COM10]:MiFlash 2020.3.14.0
[10:56:33 COM10]:vboytest index:10
[10:56:33 COM10]:flash in thread name:COM10,id:9
[10:56:33 COM10]:flash in thread name:COM10,id:9
[10:56:33 COM10]:vboytest do open :
[10:56:33 COM10]: serial port COM10 opend successfully
[10:56:33 COM10]:[COM10]:start flash.
[10:56:34 COM10]:cannot receive hello packet,MiFlash is trying to reset status!
[10:56:35 COM10]:try to reset status.
[10:56:37 COM10]:write time out try agian 1
[10:56:39 COM10]:write time out try agian 2
[10:56:42 COM10]:write time out try agian 3
Tried all of the avaible online theroes about it holding power button to restart power cycle, entering edl mode without prompt changing usb port actiavating windows test mode Nothing works. Is there another solution?
Click to expand...
Click to collapse
I could not get any of the newer versions of myflash to work, the one in my download which is 2018 does work, I was getting similar errors as you.
And th only way to enter edl for me was adb reboot edl
I tried all sorts and could not do it manually, probably going to need the special Qualcomm EDL USB Trigger cable.

Josh23 said:
Hi a quick question why do I have to flash a rooted boot image? Isn't it simple after flashing twrp just to flash magisk directly like everyone does ? Or it will brick the device I mean I don't want to install another rom version I just need to install root in my current official global rom that's it
Hope you can clarify all of my queries
Regards
Click to expand...
Click to collapse
I couldn't get it to work and I did almost brick my device, so I went with the full flash method, long winded, but it works, try it directly, worst case is you will have to do what I have done.

Any link for CN?

I have been flashing the ROM but Game Dock and Hyper Charging is CN, How to change English,

CTS PROFILE flase on magisk how to fix that

Kung-Foo-Kamel said:
I spent countless hours and downloaded over 100Gb of files and found nearly all how-to's and files borked in someway, so I managed to patch together a working repeatable process to root the Black Shark 3, I also managed to do this with the CN version of JoyUI but I hated it, and switch straight back to the global.
This is for the Black Shark 3 Global only
Note:
1: I will start by saying, your best to place the "Unlockfiles" directory and contents straight into your "C drive" this will make it easy when you open a command prompt, you can then just type: cd c:\unlockfiles and your good to go.
2: I'm not responsible if you FUBAR your phone, that's your problem, not mine
3: before you start this, please ffs log the out of the Mi account on the phone and shut that crap down, don't go any further until you have done this, to be honest, I don't know why anyone would eve log into this garbage in the first place, seems worse than all the google crap.
4: This "How To" is for Windows 10 only, all drivers appeared to be installed automatically by default.
5: Link to download required files: Click Here To Download
6: Password for the zip file is: Password
Unlocking the Bootloader:
1: Enable developer mode in the settings of your BS3
2: Enable USB Debugging in developer settings on your BS3
3: Connect phone to to PC via USB cable
4: Open a command prompt in the Unlockfiles directory
5: Check ADB connection to the phone by entering: adb devices
6: If okay, then type: adb reboot edl
7: Phone will reboot into emergency download mode, screen will be off, but phone will still be connected.
8: Open the MiFlash tool provided in the Unlockfiles folder, ignore any silly messages it gives you about not finder a flash script, then hit select in the MiFLash app and selct the Bootunlocker folder.
9: Press the refresh button, your BS3 should show up under devices as COM10 or something similar, then hit flash, with any luck it should say "successful"
10: Now, hold down the volume down button, then press and hold down the power button, as soon as the phone turns on, release the power button, but keep pressing the volume down until it starts in the bootloader.
11: If you did that correctly, you should be able to type fastboot devices in your command prompt and it should show as connected.
12: In the command prompt run the fbunlock.bat found in the Unlockfiles directory, this will now unlock the bootloader and reboot the phone
13: If successful it will show that the bootloader is unlocked on the phone, leave the phone in this mode if you want to continue with twrp and rooting the phone.
Installing TWRP and Rooting the phone
1: Only follow this guide if you now want to root your phone, be aware that you will need to install the provided rom image.
2: Make sure you command prompt is open in the Unlockfiles directory
3: Test your phone is connected properly by typing: fastboot devices
4: Install TWRP by typing: fastboot flash recovery twrp.img
5: Reboot the phone into recovery mode by typing: fastboot reboot recovery
6: You should now be entering into twrp, it may be in Chinese at first, one of the buttons will switch it to English
7: Now select advanced in twrp, then sideload, twrp should go into sideload mode and wait for the file to be pushed through adb on the pc
8: In your command prompt, type: adb sideload global_stock_rom.zip
9: Go grab a coffee and wait
10: when the rom is installed, hit reboot in twrp
11: If successful your phone will now have botted straight into the OS
12: In you command prompt, type: adb reboot fastboot
13: Once the phone has rebooted, using the volume buttons, select "reboot to bootloader"
14: Check your connection by typing the following in the command prompt: fastboot devices
15: Flash the rooted bootloader file by typing: fastboot flash boot rooted_boot.img
16: Once completed type: fastboot reboot
17: You may be presented with a prompt to wipe the phone and restore to factory, just do it if required.
18: Once you phone has booted to the OS, transfer the Magisk.apk to you downloads folder on the phone, this can be done through windows in "My Computer" as your phone should be connected as a storage device, just make sure you set the phone to transfer files mode when the prompt comes up.
19: Install the Magisk.apk, if everything was successful, Magisk will say installed.
20: Go read or watch a tutorial on how to use Magisk.
21: Have fun with your newly unlocked and rooted Black Shark 3
Additional fun, debloat your phone
1: Head over to here: https://selivan.github.io/2020/02/25/removing-bloatware-from-xiaomi-miui-android.html
2: Fire up the command prompt and navigate to you Unlockfiles directory
3: Check your connection to the phone: adb devices
4: Enter the android shell by typing: adb shell
5: List all packages installed on the phone by typing: pm list packages
6: If you wish to search for packages you can type: pm list packages Xiaomi or pm list packages google
7: To uninstall a package just type: pm uninstall --user 0 app.package.name (Obviously just replace app.package.name with the package name of your choice)
8: I removed all the safe to remove packages from the website listed above, and the phone works super great, even Shark Space 3 switched from Chinese text to English.
I will end this by saying, what a great piece of hardware this phone is, but like most of these Android devices, its plagued with total crap software and half arsed security, just enough to cause people issues if they want to actually have some fun with the device, in my opinion, if you want a phone with good security and well thought out software, then just by an Apple iPhone, I use an iPhone for daily work and all things important, I use Android devices for gaming and tinkering, just like I use a Mac for all things important and a PC for gaming and tinkering.
Regards
Kung-Foo-Kamel
Click to expand...
Click to collapse
adb shell pm uninstall -k --user 0 com.xiaomi.mipicks
adb shell pm uninstall -k --user 0 com.miui.msa.global
adb shell pm uninstall -k --user 0 com.miui.cloudservice
adb shell pm uninstall -k --user 0 com.miui.cloudbackup
adb shell pm uninstall -k --user 0 com.xiaomi.glgm
adb shell pm uninstall -k --user 0 com.xiaomi.payment
adb shell pm uninstall -k --user 0 cn.wps.xiaomi.abroad.lite
adb shell pm uninstall -k --user 0 com.xiaomi.midrop
adb shell pm uninstall -k --user 0 com.miui.yellowpage
adb shell pm uninstall -k --user 0 com.miui.android.fashiongallery
adb shell pm uninstall -k --user 0 com.miui.miservice
adb shell pm uninstall -k --user 0 com.miui.bugreport
adb shell pm uninstall -k --user 0 com.google.android.youtube
adb shell pm uninstall -k --user 0 com.google.ar.lens
adb shell pm uninstall -k --user 0 com.google.android.googlequicksearchbox
adb shell pm uninstall -k --user 0 com.google.android.apps.wellbeing
adb shell pm uninstall -k --user 0 com.facebook.services
adb shell pm uninstall -k --user 0 com.facebook.system
adb shell pm uninstall -k --user 0 com.facebook.appmanager
adb shell pm uninstall -k --user 0 com.android.wallpaper.livepicker
adb shell pm uninstall -k --user 0 com.android.stk
adb shell pm uninstall -k --user 0 com.google.android.apps.googleassistant
adb shell pm uninstall -k --user 0 com.miui.hybrid
adb shell pm uninstall -k --user 0 com.android.chrome
adb shell pm uninstall -k --user 0 com.google.android.gm
adb shell pm uninstall -k --user 0 com.google.android.apps.subscriptions.red
adb shell pm uninstall -k --user 0 com.google.android.apps.walletnfcrel
adb shell pm uninstall -k --user 0 com.google.android.gms.location.history
adb shell pm uninstall -k --user 0 com.google.android.apps.maps
adb shell pm uninstall -k --user 0 com.miui.videoplayer
adb shell pm uninstall -k --user 0 com.miui.mishare.connectivity
adb shell pm uninstall -k --user 0 com.miui.analytics
adb shell pm uninstall -k --user 0 com.google.android.apps.setupwizard.searchselector <
adb shell pm uninstall -k --user 0 com.netflix.partner.activation
adb shell pm uninstall -k --user 0 com.ebay.carrier
adb shell pm uninstall -k --user 0 com.android.vending
adb shell pm uninstall -k --user 0 com.miui.micloudsync
adb shell pm uninstall -k --user 0 com.miui.newmidrive
adb shell pm uninstall -k --user 0 com.miui.player
adb shell pm uninstall -k --user 0 com.mi.globalbrowser
adb shell pm uninstall -k --user 0 com.miui.cleanmaster
adb shell pm uninstall -k --user 0 com.miui.notes
adb shell pm uninstall -k --user 0 com.google.android.calendar
adb shell pm uninstall -k --user 0 com.google.android.apps.messaging
adb shell pm uninstall -k --user 0 com.micredit.in
adb shell pm uninstall -k --user 0 com.mipay.wallet.in
adb shell pm uninstall -k --user 0 com.xiaomi.scanner

Hi, after I use the XiaoMi Flash tool, I can't get into fastboot mode with your steps. I tried going to it by holding Volume Up + Plugging in USB to go into fastboot mode but the fbunlock.bat gives me a 'Unrecognized command flashing unlock_critical' . Can you help me? Thank you!
EDIT: Nevermind, realized I had to launch the .bat file when I was at bootloader, not at the "fastboot" option on the Bootloader.
Worked fine for me. Very easy instructions, I have 8/128GB Global Version (not CN flashed to Global), and oh god, my game space (the one in game) is all in Chinese (this can probably be fixed by reinstalling an English APK of it). And lastly I have CTS Profile Failed on my Magisk, any fix for that?
Small question: Do your notifications also show up on your lock screen?

Kung-Foo-Kamel said:
5: Reboot the phone into recovery mode by typing: fastboot reboot recovery
Click to expand...
Click to collapse
After doing this step my BS3 just stuck at Black Shark logo. Any solution ?
Btw thanks for the guide.
Edit: It's work again after i press hold down the volume down button dan power button

Related

Debloat System Apps Without Root

This Guide Assumes You Know How To Use ADB, And Already Have Access To It. You Can Possibly Mess Up Your Phone Disabling The Wrong Thing, And I'm Not Liable For Any Damage, Including Missing Your Anniversary Dinner Due To Alarm App Being Disabled =P.
Plus Side? A Factory Reset Will Fix It.
Step One :
Download Android Platform Tools (ADB/Fastboot)
https://ln.sync.com/dl/984ab7480/azzmqpk8-8km5ysir-6fz7v9rz-mvfu2tqf
Step Two :
Enable USB Debugging
--Settings, About Phone, Tap Build Number 5 Times,
Go To "Developer Options", And Enable USB Debugging.
Step Three :
Download Application Inspector
https://play.google.com/store/apps/details?id=com.ubqsoft.sec01&hl=en
Step Four :
Extract The ZIP File From Step One. Open
The Directory, Hold Down Shift, Right Click, And Click
"Open Command Prompt Here".
Step Five:
Unlock Your Phone And Plug In Into Your PC, Then Type
"adb devices" (without quotes) Into The Command Prompt.
On Your Phone, Check "Always Allow" On Your Phone, And
Then Okay.
Step Six : type "adb shell" (without quotes)
---------------------------------
Here's Where The Debloating Begins.
---------------------------------
Once you type adb shell, you'll start using commands to
disable apps "permanantly". Instead of disabling them, and
them coming back when you do play store updates. This
has worked with anything i've thrown at it so far. Using
application inspector (linked above), to get the package
name, you'll then type in the command below to "remove"
that package from the current user. when done, reboot.
"pm uninstall -k --user 0 PACKAGE_NAME"
------------------------------------------
original thread with this method from the G5 Plus
forums. linked below. i didn't come up with this method,
but it works well on our phones. pics coming when i get
home, to help others out. i'll probably rewrite this to make
it cleaner as well
https://forum.xda-developers.com/g5-plus/how-to/amazon-ads-removal-moto-g5-t3598515
no luck. I need to disable voicemail, carrierhub, callerID but it gaves me en error "Failure"
I am rooted Stock Android 8.0 Sprint
and this actually worked for me
Make sure you have Root, I can not guarantee it works without it.
1st) VERY important) Make sure to activate the phone and let Sprint install all the garbage bloatware all the way, it can take a good half an hour
Make sure your wifi calling and all your sprint stuff works and your phone is fully activated otherwise you will end up with SPRINT ID download error 400 and the only way to get rid of that is with FACTORY RESET.
2) use a batch uninstaller app and remove all the garbage users app in one shot , close to 18 of them
Restart and follow the above
USB Debug enabled
ADB Shell
and copy paste the following lines from my list below
reboot and done,
Sprint ID did not reinstall the bloatware again.
be careful it is case sensetive!
=======================
nash:/ $ pm uninstall -k --user 0 com.facebook.katana
Success
nash:/ $ pm uninstall -k --user 0 com.lookout
Success
nash:/ $ pm uninstall -k --user 0 com.facebook.orca
Success
nash:/ $ pm uninstall -k --user 0 com.amazon.clouddrive.photos
Success
nash:/ $ pm uninstall -k --user 0 com.instagram.android
Success
nash:/ $ pm uninstall -k --user 0 com.audible.application
Success
nash:/ $ pm uninstall -k --user 0 com.amazon.mp3
Success
nash:/ $ pm uninstall -k --user 0 com.amazon.kindle
Success
nash:/ $ pm uninstall -k --user 0 com.amazon.mShop.android.shopping
Success
nash:/ $ pm uninstall -k --user 0 com.amazon.avod.thirdpartyclient
Success
nash:/ $ pm uninstall -k --user 0 com.google.android.calendar
Success
pm uninstall -k --user 0 com.google.android.youtube
pm uninstall -k --user 0 com.google.android.marvin.talkback
pm uninstall -k --user 0 com.google.android.videos
pm uninstall -k --user 0 com.google.android.inputmethod.pinyin
pm uninstall -k --user 0 com.google.android.inputmethod.japanese
pm uninstall -k --user 0 com.google.android.inputmethod.korean
pm uninstall -k --user 0 com.google.android.apps.tachyon
pm uninstall -k --user 0 com.google.android.apps.walletnfcrel
pm uninstall -k --user 0 com.google.vr.vrcore
doctorman said:
I am rooted Stock Android 8.0 Sprint
and this actually worked for me
Make sure you have Root, I can not guarantee it works without it.
1st) VERY important) Make sure to activate the phone and let Sprint install all the garbage bloatware all the way, it can take a good half an hour
Make sure your wifi calling and all your sprint stuff works and your phone is fully activated otherwise you will end up with SPRINT ID download error 400 and the only way to get rid of that is with FACTORY RESET.
2) use a batch uninstaller app and remove all the garbage users app in one shot , close to 18 of them
Restart and follow the above
USB Debug enabled
ADB Shell
and copy paste the following lines from my list below
reboot and done,
Sprint ID did not reinstall the bloatware again.
be careful it is case sensetive!
=======================
nash:/ $ pm uninstall -k --user 0 com.facebook.katana
Success
nash:/ $ pm uninstall -k --user 0 com.lookout
Success
nash:/ $ pm uninstall -k --user 0 com.facebook.orca
Success
nash:/ $ pm uninstall -k --user 0 com.amazon.clouddrive.photos
Success
nash:/ $ pm uninstall -k --user 0 com.instagram.android
Success
nash:/ $ pm uninstall -k --user 0 com.audible.application
Success
nash:/ $ pm uninstall -k --user 0 com.amazon.mp3
Success
nash:/ $ pm uninstall -k --user 0 com.amazon.kindle
Success
nash:/ $ pm uninstall -k --user 0 com.amazon.mShop.android.shopping
Success
nash:/ $ pm uninstall -k --user 0 com.amazon.avod.thirdpartyclient
Success
nash:/ $ pm uninstall -k --user 0 com.google.android.calendar
Success
Click to expand...
Click to collapse
This worked great. Planning on removing bloat as the days go on.
Can anyone please confirm if this works on unrooted stock firmware?. I am unable to make whatsapp calls because Sprinthub keeps terminating it.
Please if anyone has better idea of debloating Sprint crap, then let me know.
thanks
I have a XT1789-06 (Indian) and i use this method to debloat my Moto Phones (Moto Z , Moto Z2 Force , Moto Z Play) all running on stock and locked BL. This works quite well to uninstall apps (such as Moto Voice , Motorola SLPC System , Checkin , Device Management etc.. )
It doesn't have any carrier specific app , but it should succeed .

Delete Bloatware with this script

Hello guys, as you know, we can't unlock the bootloader, so we are stuck with stock firmware.
I have a 3gb/ ram and 32gb/rom tablet, some of you may have lower specs 2/32 , or even 1/16 in many models.
With this script you can gain a bit of extra performance, because you'll have less apps using the ungenerous ram that comes with the device.
Instructions:
1) Install the device's drivers and enable usb debugging on your tablet.
2) Download the file and extract it.
3) Connect your tablet to the pc and open a cmd window and type adb shell.
4) You'll see a message on your tablet, just tap to allow the connection.
5) Now, run the bat file and wait, sometimes you need run it again.
If you open the .txt file, you'll see all the apps that are going to be disable and uninstalled, if you want to keep an app, just add a "#" at the start of the command and it well be skipped.
Download link:
https://drive.google.com/file/d/117sGCj5Ep6K6ZNGTD28s0FD5c46ckegD/view?usp=drivesdk
Have a good day and stay safe.
Cheers guys.
sfoot13 said:
Hello guys, as you know, we can't unlock the bootloader, so we are stuck with stock firmware.
I have a 3gb/ ram and 32gb/rom tablet, some of you may have lower specs 2/32 , or even 1/16 in many models.
With this script you can gain a bit of extra performance, because you'll have less apps using the ungenerous ram that comes with the device.
Instructions:
1) Install the device's drivers and enable usb debugging on your tablet.
2) Download the file and extract it.
3) Connect your tablet to the pc and open a cmd window and type adb shell.
4) You'll see a message on your tablet, just tap to allow the connection.
5) Now, run the bat file and wait, sometimes you need run it again.
If you open the .txt file, you'll see all the apps that are going to be disable and uninstalled, if you want to keep an app, just add a "#" at the start of the command and it well be skipped.
Download link:
https://drive.google.com/file/d/117sGCj5Ep6K6ZNGTD28s0FD5c46ckegD/view?usp=drivesdk
Have a good day and stay safe.
Cheers guys.
Click to expand...
Click to collapse
Hello and thank you for this.
Could you provide a brief explanation on the txt file next to each item (or here) as to what would happen when you disable or uninstall each item?
Most of them are self explanatory but I have trouble with a few ie:
pm disable-user --user 0 com.huawei.android.hwouc ??
pm uninstall --user 0 com.google.android.feedback ??
pm uninstall --user 0 com.android.providers.contacts ??
pm disable-user --user 0 com.android.contacts (I will need a new contacts app, wont I)
pm disable-user --user 0 com.huawei.camera (I will need a new camera app)
pm uninstall --user 0 com.android.bookmarkprovider ??
pm uninstall --user 0 com.android.providers.partnerbookmarks ??
pm disable-user --user 0 com.android.providers.calendar ??
pm disable-user --user 0 com.google.android.gm ??
pm uninstall --user 0 com.google.android.onetimeinitializer ??
pm disable-user --user 0 com.huawei.phoneservice (will I be able to call?)
pm disable-user --user 0 com.huawei.nearby ??
pm disable-user --user 0 com.android.emergency ??
pm disable-user --user 0 com.google.android.partnersetup ??
pm disable-user --user 0 com.android.cellbroadcastreceiver ??
pm uninstall --user 0 com.google.android.syncadapters.contacts ??
pm uninstall --user 0 com.google.android.syncadapters.calendar ??
pm uninstall --user 0 com.swiftkey.swiftkeyconfigurator
pm uninstall --user 0 com.touchtype.swiftkey (will I need a new keyboard? do i need to install it before I uninstall this one?)
pm disable-user --user 0 com.google.android.backuptransport ??
pm disable-user --user 0 com.google.android.backupconfirm ??
pm uninstall --user 0 com.google.android.tts ??
#pm disable-user --user 0 com.android.location.fused ?? why are you not disabling this one?
pm disable-user --user 0 com.google.android.printservice.recommendation ??
pm disable-user --user 0 com.android.keyguard ??
pm disable-user --user 0 com.huawei.android.FloatTasks ??
pm disable-user --user 0 com.huawei.hwid ??
pm disable-user --user 0 com.android.printspooler ??
pm disable-user --user 0 com.huawei.omacp ??
#pm disable-user --user 0 com.android.vending
#pm disable-user --user 0 com.google.android.gsf
#pm disable-user --user 0 com.google.android.gms
#pm disable-user --user 0 com.google.android.overlay.gmsconfig
#pm disable-user --user 0 com.google.android.marvin.talkbackNEVERDELETEIT,BECAUSEPHONEWILLENDINBOOTLOOP
And why are you not diabling the last five items?
Thanks in advance
Hi, in this thread, there is a comprehensive list of packages, with the description, and whether or not is safe to remove:
https://forum.xda-developers.com/mate-20-x/how-to/guide-remove-apps-adb-t3870727
Here below I’m sharing my experience about what I safely removed from my T5:
package:com.google.android.feedback
package:com.huawei.hifolder
package:com.huawei.hicloud
package:com.android.providers.partnerbookmarks
package:com.android.bookmarkprovider
package:com.google.android.music
package:com.google.android.videos
package:com.huawei.android.totemweatherwidget
package:com.huawei.android.totemweather
package:com.huawei.android.totemweatherapp
package:com.google.android.youtube
package:com.touchtype.swiftkey
package:com.huawei.kidsmode.kidspaint
package:com.example.android.notepad
package:com.swiftkey.swiftkeyconfigurator
package:com.facebook.system
package:com.android.email
package:com.android.mediacenter
package:com.huawei.himovie.overseas
package:com.google.android.gms
package:com.google.android.apps.photos
package:com.android.providers.calendar
package:com.android.calendar
package:com.android.contacts
package:com.android.providers.downloads
package:com.android.providers.downloads.ui
package:com.google.android.apps.tachyon
package:com.android.wallpaper.livepicker
package:com.android.providers.contacts
package:com.facebook.services
package:com.facebook.appmanager
package:com.huawei.hiview
package:com.huawei.iaware
package:com.huawei.android.chr
package:com.google.android.onetimeinitializer
package:com.huawei.nearby
package:com.huawei.android.FloatTasks
package:com.huawei.appmarket
package:com.huawei.phoneservice
package:com.huawei.screenrecorder
package:com.android.partnerbrowsercustomizations.tmobile
package:com.huawei.hiviewtunnel
package:com.hisi.mapcon
package:com.google.android.apps.work.oobconfig
package:com.huawei.hwid
packageackage:com.android.backupconfirm
package:com.huawei.android.instantshare
package:com.android.statementservice
package:com.google.android.setupwizard
package:com.android.sharedstoragebackup
package:com.huawei.HwMultiScreenShot
package:com.huawei.hwstartupguide
package:com.huawei.android.mirrorshare
package:com.huawei.android.wfdft
package:com.android.emergency
package:com.huawei.hwdetectrepair
package:com.huawei.bd
Probably I could remove more things safely, but I’m using them (launcher, file manager, camera,…)
Have a nice day
Thanks for this, will use it later today
Hey Im planning to use a debloat script as well! I've seen in the txt it removes the camera (useful to me) and swiftkey keyboard (isn't that dangerous if not having other keyboards?).
Hi again. I've used the script but now the Update app is disabled and can't enable it again! X_X any idea about how to fix that?
sfoot13 said:
Hello guys, as you know, we can't unlock the bootloader, so we are stuck with stock firmware.
I have a 3gb/ ram and 32gb/rom tablet, some of you may have lower specs 2/32 , or even 1/16 in many models.
With this script you can gain a bit of extra performance, because you'll have less apps using the ungenerous ram that comes with the device.
Instructions:
1) Install the device's drivers and enable usb debugging on your tablet.
2) Download the file and extract it.
3) Connect your tablet to the pc and open a cmd window and type adb shell.
4) You'll see a message on your tablet, just tap to allow the connection.
5) Now, run the bat file and wait, sometimes you need run it again.
If you open the .txt file, you'll see all the apps that are going to be disable and uninstalled, if you want to keep an app, just add a "#" at the start of the command and it well be skipped.
Download link:
https://drive.google.com/file/d/117sGCj5Ep6K6ZNGTD28s0FD5c46ckegD/view?usp=drivesdk
Have a good day and stay safe.
Cheers guys.
Click to expand...
Click to collapse
Hi!
I'm having a proble with the Windows shell command. If you run "abd shell" in cmd, it just says
'abd' is not recognized as an internal or external command,
operable program or batch file.
What am I doing wrong?
Thanks!
UC666 said:
try "adb" instead of "abd"
Click to expand...
Click to collapse
Holy dyslexia, Batman! Thanks!
Still hangs though:
adb shell
error: device not found
Developer mode is on, the tab is connected via USB: Tab gives the 8-digit code that HiSuite asks -> insert code -> "connected to desktop ******** via USB. Then -> cmd
adb shell
error: device not found
When cmd is run in the platform tools folder:
adb shell
adb server version (32) doesn't match this client (41); killing...
* daemon started successfully
adb.exe: no devices/emulators found
UC666 said:
- The correct drivers installed? I used "HUAWEI USB COM 1.0 driver.zip".
- Allowed data transfer after connecting the USB cable?
Click to expand...
Click to collapse
I just had the tab connected via HiSuite. Can't seem to install the driver you mentioned. No installer and Windows won't let me install via Device Manager, not that I know which file I should choose anyway...
A few weeks ago I debloated my MediaPad T5 using the script, adapted it to my needs before, and I am very happy with it
It made the tablet faster, fresher and more battery friendly.
Thanks a lot!
cappuccini said:
A few weeks ago I debloated my MediaPad T5 using the script, adapted it to my needs before, and I am very happy with it
It made the tablet faster, fresher and more battery friendly.
Thanks a lot!
Click to expand...
Click to collapse
How did you adapt the list?
jazzh said:
How did you adapt the list?
Click to expand...
Click to collapse
First, I used an ADB command to list all the packages, copied the list, compared it to the packages in the script, and copy/pasted it.
Be careful, if you remove too much, the tablet will not boot and you will have to reinstall the operating system via eRecovery.
Helpful ABD commands can be found under the link:
Adb useful commands list
Adb useful commands list. GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
jazzh said:
How did you adapt the list?
Click to expand...
Click to collapse
Did you manage to successfully debloat your device?

P40 Pro debloating guide

Hey everyone,
I've spent the last couples days going through all the installed packages, cross-referencing different debloating guides and testing my changes. I'm running the latest EMUI 10.1.0.158 (C636).
RECOMMENDATIONS: if you can, follow this debloating guide right after a factory reset; this simply guarantees a fresh clean start. Otherwise, start by backing up your apps and important files to an external device. The built-in backup app is ideal for preserving your apps and their settings, but make sure to move these backups OFF THE PHONE. Then, you can either remove all the apps (in my guide) all at once, or remove a few at a time and reboot the phone in between. Rebooting in between reduces the chance of "shocking" the OS with too many changes all at once which could result in boot looping. Just keep in mind that I did not find that to be necessary when debloating right after a factory reset, but your mileage may vary.
Here is what I personally debloated without any adverse effect, after 2 weeks of daily use:
adb shell pm uninstall --user 0 com.huawei.hicloud ****** Huawei cloud features
adb shell pm uninstall --user 0 com.huawei.browser ****** Stock browser, replaced with Mozilla
adb shell pm uninstall --user 0 com.huawei.browserhomepage ****** Stock browser component
adb shell pm uninstall --user 0 com.android.bookmarkprovider ****** Stock bookmark content
adb shell pm uninstall --user 0 com.android.providers.partnerbookmarks ****** Stock bookmark content
adb shell pm uninstall --user 0 com.huawei.wallet ****** Huawei Wallet app
adb shell pm uninstall --user 0 com.huawei.music ****** Stock music application, replaced with PowerAmp (use the APK from their website, it does not rely on Google Services)
adb shell pm uninstall --user 0 com.huawei.phoneservice ****** Huawei customer support, also known as HiCare
adb shell pm uninstall --user 0 com.huawei.hifolder ****** AppAdvisor
adb shell pm uninstall --user 0 com.huawei.parentcontrol ****** Digital balance, parental control features
adb shell pm uninstall --user 0 com.huawei.hicard ****** Huawei Cards, no info but recommended in some guides, no negative consequences
adb shell pm uninstall --user 0 com.huawei.hitouch ****** Allows you to shop for an object that you took a picture of
adb shell pm uninstall --user 0 com.huawei.hiassistantoversea ****** HiVoice. Huawei's voice assistant to replace "Hey Google"
adb shell pm uninstall --user 0 com.huawei.fastapp ****** Quick App Center, another type of app distribution
adb shell pm uninstall --user 0 com.huawei.imedia.sws ****** Histen. Special sound effects found in the sound settings. I only care about my EQ settings in PowerAmp
adb shell pm uninstall --user 0 com.huawei.intelligent ****** Huawei Assistant. Shopping recommendations
adb shell pm uninstall --user 0 com.huawei.magazine ****** Magazine unlock. Downloads wallpapers for your lock screen. I don't need my phone needlessly connecting to remote servers
adb shell pm uninstall --user 0 com.huawei.hwblockchain ****** I don't do anything blockchain related
adb shell pm uninstall --user 0 com.huawei.hwstartupguide ****** A one-time setup app that is no longer needed
adb shell pm uninstall --user 0 com.android.onetimeinitializer ****** A one-time setup app that is no longer needed
adb shell pm uninstall --user 0 com.huawei.android.instantonline ****** No information but recommended in some guides, no negative consequences
adb shell pm uninstall --user 0 com.huawei.hwpanpayservice ****** This is payment related, I don't use my phone as a payment method nor do I use Huawei Wallet
adb shell pm uninstall --user 0 com.bjbyhd.screenreader_huawei ****** An accessibility feature for visually impaired people
adb shell pm uninstall --user 0 com.huawei.search ****** HiSearch. This does not affect the search bar in the Settings
adb shell pm uninstall --user 0 com.huawei.hwdetectrepair ****** Smart Diagnosis app. It diagnoses hardware problems which I could do myself
adb shell pm uninstall --user 0 com.huawei.hiview ****** This supposedly displays details/attributes of pictures. After removing this, I can still access the picture attributes in the stock Gallery so I'm not sure what this is actually about
adb shell pm uninstall --user 0 com.huawei.hiviewtunnel ****** Related to HiView.
adb shell pm uninstall --user 0 com.huawei.hidisk ****** Stock file explorer, replaced with File Manager +
adb shell pm uninstall --user 0 com.huawei.android.chr ****** HwChrService, this collects data about your usage of the cellular network. No thanks
adb shell pm uninstall --user 0 com.huawei.bd ****** Huawei User Experience app
adb shell pm uninstall --user 0 com.huawei.android.karaoke ****** Self explanatory
adb shell pm uninstall --user 0 com.huawei.desktop.explorer ****** EMUI Desktop Mode for connecting to an external display
adb shell pm uninstall --user 0 com.huawei.android.FloatTasks ****** Navigation Dock, I don't care for that UI feature
adb shell pm uninstall --user 0 com.huawei.languagedownloader ****** According to some guides, this is unsafe but I don't need another downloader for something that I'll never use
adb shell pm uninstall --user 0 com.huawei.lbs ****** Location Service. Sounds scary but I am still able to use all my GPS and location services. My location based weather widgets, Waze and Google Maps connect just as fast and accurately as before
adb shell pm uninstall --user 0 com.huawei.featurelayer.sharedfeature.map ****** Huawei Map Service. I removed it and have no issues using Waze and Google Maps
adb shell pm uninstall --user 0 com.hisi.mapcon ****** This is apparently not recommended when using WiFi calling, which I don't
adb shell pm uninstall --user 0 com.huawei.himovie.overseas ****** Stock video application, replaced with VLC. This integrates perfectly with the stock Camera and Gallery apps
adb shell pm uninstall --user 0 com.android.stk ****** SIM Toolkit. Not supported by US SIM cards
adb shell pm uninstall --user 0 com.android.mms ****** Stock SMS application, replaced with Pulse. I can still send/receive SMS & MMS. Textra looks like a good alternative too
adb shell pm uninstall --user 0 com.huawei.HwMultiScreenShot ****** Scrollshot. Basic screenshots still work, I don't use the knock feature
adb shell pm uninstall --user 0 com.huawei.smartshot ****** Smart screenshot. Basic screenshots still work, I don't use the knock feature
adb shell pm uninstall --user 0 com.huawei.bluetooth ****** Allows importing phone contacts via Bluetooth, something I've never done in my life
adb shell pm uninstall --user 0 com.swiftkey.swiftkeyconfigurator ****** Older version of SwiftKey, replaced with the latest SwiftKey APK
adb shell pm uninstall --user 0 com.touchtype.swiftkey ****** Older version of SwiftKey, replaced with the latest SwiftKey APK. Do not do this before downloading the APK for your new keyboard otherwise you won't have a keyboard to use to search for a replacement
adb shell pm uninstall --user 0 com.huawei.pcassistant ****** Used when connecting your phone to your PC using HiSuite
adb shell pm uninstall --user 0 com.android.egg ****** A hidden animation that no one needs to see
adb shell pm uninstall --user 0 com.android.backupconfirm ****** Google Backup, unusable without Google Services. This does not affect Huawei's backup app, I was able to back up all my apps and settings
adb shell pm uninstall --user 0 com.android.calllogbackup ****** Google Call Log Backup/Restore. This does not affect Huawei's backup app, I was able to back up my calls successfully
adb shell pm uninstall --user 0 com.huawei.scanner ****** AI Lens. Shop for objects that you take a picture of. I can't stand these "features" that revolve around shopping. This de-clutters the camera interface by removing the AI Lens button on the top left corner and does not break the AR Measure app.
adb shell pm uninstall --user 0 com.huawei.contacts ****** Dialer & contacts app. I first installed my dialer replacement, True Phone (version 2.0.0-hw rev 99 from the AppGallery) and then ran this command. Although this should not actually delete your contacts, make sure to back them up. I've had absolutely 0 issue making or receiving calls after deleting the stock dialer.
adb shell pm uninstall --user 0 com.huawei.hwsearch ****** Petal Search widget. I personally use APKPure and sometimes the AppGallery.
adb shell pm uninstall --user 0 package:com.huawei.android.hwupgradeguide ****** New package that came with .158. There is no description online but judging from the name, I don't need it
NOTICE THAT I DO NOT INCLUDE THE -k PARAMETER IN MY COMMANDS, unlike most guides found online. I do not get any error running the commands as such, and it actually clears the data created by those apps. In other words, we're not only debloating your user interface but also your storage!
To restore any app removed via ADB:
adb shell cmd package install-existing <package_name>
I always try to uninstall apps through Android before resorting to ADB. I did not really keep track of apps that I uninstalled through the menu, so it's just easier to tell you which stock apps I kept installed. By stock app, I ONLY MEAN actual apps that you can open from the home screen:
-AppGallery. This requires com.huawei.hwid to work. I needed it to get Snapchat, I might ADB-uninstall it now that Snapchat is installed
-Phone Clone. This could always be useful for porting apps over
-Optimizer
-Themes
-Live wallpaper (com.huawei.livewallpaper.paradise, also known as Brocade)
-Calendar widget/app
-Camera. Obviously. Who in their right mind would get this phone lacking a major component of Android (Play Services), if not for the camera
-Gallery. For pictures and editing
-Contacts. This is also the phone dialer. I have now uninstalled this app and replaced it with True Dialer 2.0 by Hamster Beat (available on AppGallery)
-Compass. Works great
-Smart Remote. If I ever decide to make use of my IR blaster
-AR Measure. I usually don't care for stuff like this but this actually works great and looks awesome
Here are apps/system processes that actually have an uninstall button but that I DID NOT UNINSTALL:
-Backup (com.huawei.KoBackup). I use this app to create backups periodically. Without root, this native app is able to backup a lot more than any other 3rd party backup app
-com.huawei.game.kitserver (I don't play games but if I ever decide to, I'd like to avoid breaking features)
-Contacts Sync (com.huawei.contacts.sync). I have now uninstalled this app as I no longer use the stock dialer (com.huawei.contacts)
-Storage manager (com.android.storemanager)
My goal is to remove low quality, "spyware" or unnecessary apps without removing or breaking useful features. "Useful" is always a little subjective, so decide for yourself based on my descriptions and comments!
I added AI Lens to my debloat list.
I just updated to 10.1.0.122 and did not find new packages installed or restored as part of the ROM update.
thank you very much my friend ! just did this on Mate XS !!!
finally !
avetny said:
thank you very much my friend ! just did this on Mate XS !!!
finally !
Click to expand...
Click to collapse
You're more than welcome. I've been doing some network analysis using the AdGuard Firewall and I might update this guide with my findings. I found out the phone is phoning back home (to China) quite a bit, especially Huawei Cloud and HiCloud servers despite not using any of these apps or Huawei cloud services.
how do i do this?
i cant use adb i have developer options and usb debugging on but adb devices dont show the phone
It's probably a driver problem. Take a look at this guide: https://androidmtk.com/download-minimal-adb-and-fastboot-tool
H-Emmanuel said:
It's probably a driver problem. Take a look at this guide: https://androidmtk.com/download-minimal-adb-and-fastboot-tool
Click to expand...
Click to collapse
thank you got i to work had to revoke usb debugging
H-Emmanuel said:
Hey everyone,
I've spent the last couples days going through all the installed packages, cross-referencing different debloating guides and testing my changes. I'm running the latest EMUI 10.1.0.114 and here's what I debloated so far:
adb shell pm uninstall --user 0 com.huawei.hicloud ****** Huawei cloud features
adb shell pm uninstall --user 0 com.huawei.browser ****** Stock browser, replaced with Mozilla
adb shell pm uninstall --user 0 com.huawei.browserhomepage ****** Stock browser component
adb shell pm uninstall --user 0 com.android.bookmarkprovider ****** Stock bookmark content
adb shell pm uninstall --user 0 com.android.providers.partnerbookmarks ****** Stock bookmark content
adb shell pm uninstall --user 0 com.huawei.wallet ****** Huawei Wallet app
adb shell pm uninstall --user 0 com.huawei.music ****** Stock music application, replaced with PowerAmp (use the APK from their website, it does not rely on Google Services)
adb shell pm uninstall --user 0 com.huawei.phoneservice ****** Huawei customer support, also known as HiCare
adb shell pm uninstall --user 0 com.huawei.hifolder ****** AppAdvisor
adb shell pm uninstall --user 0 com.huawei.parentcontrol ****** Digital balance, parental control features
adb shell pm uninstall --user 0 com.huawei.hicard ****** Huawei Cards, no info but recommended in some guides, no negative consequences
adb shell pm uninstall --user 0 com.huawei.hitouch ****** Allows you to shop for an object that you took a picture of
adb shell pm uninstall --user 0 com.huawei.hiassistantoversea ****** HiVoice. Huawei's voice assistant to replace "Hey Google"
adb shell pm uninstall --user 0 com.huawei.fastapp ****** Quick App Center, another type of app distribution
adb shell pm uninstall --user 0 com.huawei.imedia.sws ****** Histen. Special sound effects found in the sound settings. I only care about my EQ settings in PowerAmp
adb shell pm uninstall --user 0 com.huawei.intelligent ****** Huawei Assistant. Shopping recommendations
adb shell pm uninstall --user 0 com.huawei.magazine ****** Magazine unlock. Downloads wallpapers for your lock screen. I don't need my phone needlessly connecting to remote servers
adb shell pm uninstall --user 0 com.huawei.hwblockchain ****** I don't do anything blockchain related
adb shell pm uninstall --user 0 com.huawei.hwstartupguide ****** A one-time setup app that is no longer needed
adb shell pm uninstall --user 0 com.android.onetimeinitializer ****** A one-time setup app that is no longer needed
adb shell pm uninstall --user 0 com.huawei.android.instantonline ****** No information but recommended in some guides, no negative consequences
adb shell pm uninstall --user 0 com.huawei.hwpanpayservice ****** This is payment related, I don't use my phone as a payment method nor do I use Huawei Wallet
adb shell pm uninstall --user 0 com.bjbyhd.screenreader_huawei ****** An accessibility feature for visually impaired people
adb shell pm uninstall --user 0 com.huawei.search ****** HiSearch. This does not affect the search bar in the Settings
adb shell pm uninstall --user 0 com.huawei.hwdetectrepair ****** Smart Diagnosis app. It diagnoses hardware problems which I could do myself
adb shell pm uninstall --user 0 com.huawei.hiview ****** This supposedly displays details/attributes of pictures. After removing this, I can still access the picture attributes in the stock Gallery so I'm not sure what this is actually about
adb shell pm uninstall --user 0 com.huawei.hiviewtunnel ****** Related to HiView.
adb shell pm uninstall --user 0 com.huawei.hidisk ****** Stock file explorer, replaced with File Manager +
adb shell pm uninstall --user 0 com.huawei.android.chr ****** HwChrService, this collects data about your usage of the cellular network. No thanks
adb shell pm uninstall --user 0 com.huawei.bd ****** Huawei User Experience app
adb shell pm uninstall --user 0 com.huawei.android.karaoke ****** Self explanatory
adb shell pm uninstall --user 0 com.huawei.desktop.explorer ****** I don't need Huawei doing anything on my PC
adb shell pm uninstall --user 0 com.huawei.android.FloatTasks ****** Navigation Dock, I don't care for that UI feature
adb shell pm uninstall --user 0 com.huawei.languagedownloader ****** According to some guides, this is unsafe but I don't need another downloader for something that I'll never use
adb shell pm uninstall --user 0 com.huawei.lbs ****** Location Service. Sounds scary but I am still able to use all my GPS and location services. My location based weather widgets and Waze connect just as fast and accurately as before
adb shell pm uninstall --user 0 com.huawei.featurelayer.sharedfeature.map ****** Huawei Map Service. I removed it and have no issues using Waze
adb shell pm uninstall --user 0 com.hisi.mapcon ****** This is apparently not recommended when using WiFi calling, which I don't
adb shell pm uninstall --user 0 com.huawei.himovie.overseas ****** Stock video application, replaced with VLC. This integrates perfectly with the stock Camera and Gallery apps
adb shell pm uninstall --user 0 com.android.stk ****** SIM Toolkit. Not supported by US SIM cards
adb shell pm uninstall --user 0 com.android.mms ****** Stock SMS application, replaced with Pulse. I can still send/receive SMS & MMS. Textra looks like a good alternative too
adb shell pm uninstall --user 0 com.huawei.HwMultiScreenShot ****** Scrollshot. Basic screenshots still work, I don't use the knock feature
adb shell pm uninstall --user 0 com.huawei.smartshot ****** Smart screenshot. Basic screenshots still work, I don't use the knock feature
adb shell pm uninstall --user 0 com.huawei.bluetooth ****** Allows importing phone contacts via Bluetooth, something I've never done in my life
adb shell pm uninstall --user 0 com.swiftkey.swiftkeyconfigurator ****** Older version of SwiftKey, replaced with the latest SwiftKey APK
adb shell pm uninstall --user 0 com.touchtype.swiftkey ****** Older version of SwiftKey, replaced with the latest SwiftKey APK
adb shell pm uninstall --user 0 com.huawei.pcassistant ****** Used when connecting your phone to your PC using HiSuite
adb shell pm uninstall --user 0 com.android.egg ****** A hidden animation that no one needs to see
adb shell pm uninstall --user 0 com.android.backupconfirm ****** Google Backup, unusable without Google Services. This does not affect Huawei's backup app, I was able to back up all my apps and settings
adb shell pm uninstall --user 0 com.android.calllogbackup ****** Google Call Log Backup/Restore. This does not affect Huawei's backup app, I was able to back up my calls successfully
adb shell pm uninstall --user 0 com.huawei.scanner ****** AI Lens. Shop for objects that you take a picture of. I can't stand these "features" that revolve around shopping. This de-clutters the camera interface by removing the AI Lens button on the top left corner and does not break the AR Measure app.
NOTICE THAT I DO NOT INCLUDE THE -k PARAMETER IN MY COMMANDS, unlike most guides found online. I do not get any error running the commands as such, and it actually clears the data created by those apps. In other words, we're not only debloating your user interface but also your storage!
To restore any app removed via ADB:
adb shell cmd package install-existing <package_name>
I always try to uninstall apps through Android before resorting to ADB. I did not really keep track of apps that I uninstalled through the menu, so it's just easier to tell you which stock apps I kept installed. By stock app, I ONLY MEAN actual apps that you can open from the home screen:
-AppGallery. This requires com.huawei.hwid to work. I needed it to get Snapchat, I might ADB-uninstall it now that Snapchat is installed
-Phone Clone. This could always be useful for porting apps over
-Optimizer
-Themes
-Live wallpaper (com.huawei.livewallpaper.paradise, also known as Brocade)
-Calendar widget/app
-Camera. Obviously. Who in their right mind would get this phone lacking a major component of Android (Play Services), if not for the camera
-Gallery. For pictures and editing
-Contacts. This is also the phone dialer
-Compass. Works great
-Smart Remote. If I ever decide to make use of my IR blaster
-AR Measure. I usually don't care for stuff like this but this actually works great and looks awesome
Here are apps/system processes that actually have an uninstall button but that I DID NOT UNINSTALL:
-com.huawei.game.kitserver (I don't play games but if I ever decide to, I'd like to avoid breaking features)
-Contacts Sync (com.huawei.contacts.sync). I use the stock dialer and I'm not sure whether this can be safely removed
-Storage manager (com.android.storemanager)
My goal is to remove low quality, "spyware" or unnecessary apps without removing or breaking useful features. "Useful" is always a little subjective, so decide for yourself based on my descriptions and comments!
Click to expand...
Click to collapse
Thanks for this have you noticed any improvement with battery life after debloating all of these apps?
Any issues after debloating?
Also, can you please tell me the exact command you have to type to debloat? Starting from ADB shell, what is the next command please? And what software /hardware do I need to debloat?
Thanos88 said:
Thanks for this have you noticed any improvement with battery life after debloating all of these apps?
Any issues after debloating?
Also, can you please tell me the exact command you have to type to debloat? Starting from ADB shell, what is the next command please? And what software /hardware do I need to debloat?
Click to expand...
Click to collapse
setting click build 7 times enable developer mode
go in developer mode enable usb debugging
download adb
open folder shift + right click
open commend window
adb devices to see if your device is found
then copy paste each commend
Thanos88 said:
Thanks for this have you noticed any improvement with battery life after debloating all of these apps?
Any issues after debloating?
Also, can you please tell me the exact command you have to type to debloat? Starting from ADB shell, what is the next command please? And what software /hardware do I need to debloat?
Click to expand...
Click to collapse
No issues, no crashes and no weird behavior. If you read my comments, I explain what each command does and whether or not it's removing an important feature.
You simply have to copy/paste the commands in bold, these are the full commands.
I pretty much debloated the phone as soon as I got it so I can't really speak about battery life improvement.
A few days ago I even removed the stock Huawei dialer in favor of True Phone (2.0.0.0-hw rev 99 found on the AppGallery). I just updated my first post to reflect that.
H-Emmanuel said:
No issues, no crashes and no weird behavior. If you read my comments, I explain what each command does and whether or not it's removing an important feature.
You simply have to copy/paste the commands in bold, these are the full commands.
I pretty much debloated the phone as soon as I got it so I can't really speak about battery life improvement.
A few days ago I even removed the stock Huawei dialer in favor of True Phone (2.0.0.0-hw rev 99 found on the AppGallery).
Click to expand...
Click to collapse
Thanks!! I stupidly uninstalled something I shouldn't have, restarted the phone and phone wouldn't boot past the huawei logo ?? had to perform factory reset. Be very careful with what you uninstall
Thanos88 said:
Thanks!! I stupidly uninstalled something I shouldn't have, restarted the phone and phone wouldn't boot past the huawei logo had to perform factory reset. Be very careful with what you uninstall
Click to expand...
Click to collapse
Do you remember what you uninstalled specifically? There's a chance you could have restored the missing apps using ADB in Fastboot Mode instead of doing a factory reset.
The list of apps in my post is what I personally removed right after a factory reset (to make sure I was starting from scratch).
H-Emmanuel said:
Do you remember what you uninstalled specifically? There's a chance you could have restored the missing apps using ADB in Fastboot Mode instead of doing a factory reset.
The list of apps in my post is what I personally removed right after a factory reset (to make sure I was starting from scratch).
Click to expand...
Click to collapse
I have no idea what I removed but even after removing it and restating the phone, there was no way to reinstall the app because the phone wouldn't load last the huawei logo meaning I couldn't get it into adb mode at all.
Alright. If I understand correctly, you also removed things that were not on my list, correct?
H-Emmanuel said:
Alright. If I understand correctly, you also removed things that were not on my list, correct?
Click to expand...
Click to collapse
That's correct yes. You won't really know if the things you've removed were safe to remove until you've restarted the phone pretty much
Yep that's true! I wrote this guide after doing many reboots, I'll update my post to add some guidelines.
H-Emmanuel said:
Yep that's true! I wrote this guide after doing many reboots, I'll update my post to add some guidelines.
Click to expand...
Click to collapse
excellent, as long as you rebooted your device after the debloats you've mentioned in your post that's good ?? I still have some more debloats left to do from your list. I was seriously hoping for better battery life, I hope debloating will improve it
Works like a charm, thanks
faceliler said:
Works like a charm, thanks
Click to expand...
Click to collapse
Glad to hear you've had success with this guide
Awesome thank you very much , i thought we need root permissions to do that

⋆ [2022-09-28] Remove system apps on Realme UI 2.0 using ADB ⋆

Remove system apps on Realme UI 2.0 using ADB
Updated : 2022-09-28​
Tested On:
Model: RMX2001
Hardware Version: RMX_2001_11​
RealmeUI Version: V2.0
ColorOS Version: V11​
Android Version: 11
Android Security Update: 2022-03-05
Build Number: RMX2001_11_C.18​
Baseband Version: M_V3_P10,M_V3_P10​
Kernel Version: 4.14.186+​
Notes:
DO NOT INSTALL OTA UPDATE ON A DEBLOATED PHONE. YOU WILL FACE BOOT LOOPS.
RE-INSTALL / RE-ENABLE BLOATWARE APPS, RESTART PHONE AND THEN INSTALL OTA UPDATE.
This method should not delete your phone data, however always take full backup of your phone for safety.
This method uninstalls/disables the apps for user 0. It does not physically remove the apps from your system partition.
Requirements:
Your phone
A computer with Windows/Linux/MacOS
Enable "Use USB to : File Transfer" from notification menu after connecting your phone to PC, else ADB will not work.
Install ADB + Fastboot Drivers : https://www.xda-developers.com/install-adb-windows-macos-linux
Setup ADB + Fastboot Interface : https://www.xda-developers.com/adb-fastboot-any-directory-windows-linux
Un-install a system app
Code:
adb shell pm uninstall -k --user 0 <package.name>
List all system apps which you have un-installed
Code:
adb shell "(pm list packages -u && pm list packages) | sed 's/^package://' | sort | uniq -u"
Re-install a system app
Code:
adb shell cmd package install-existing <package.name>
Re-install all uninstalled apps at once on a Linux machine
Code:
for i in $(adb shell "(pm list packages -u && pm list packages) | sed 's/^package://' | sort | uniq -u"); do adb shell "cmd package install-existing ${i}"; done
Disable a system app
Code:
adb shell pm disable-user --user 0 <package.name>
List all system apps which you have disabled
Code:
adb shell "pm list packages -d | sed 's/^package://' | sort | uniq -u"
Re-enable a system app
Code:
adb shell pm enable --user 0 <package.name>
Re-enable all disabled system apps at once on a Linux Machine
Code:
for i in $(adb shell "pm list packages -d | sed 's/^package://' | sort | uniq -u"); do adb shell "pm enable --user 0 ${i}"; done
Code:
# AOSP & Google Apps
adb shell pm uninstall -k --user 0 com.android.chrome
adb shell pm uninstall -k --user 0 com.android.hotwordenrollment.okgoogle
adb shell pm uninstall -k --user 0 com.android.stk
adb shell pm uninstall -k --user 0 com.google.android.apps.nbu.paisa.user
adb shell pm uninstall -k --user 0 com.google.android.feedback
adb shell pm uninstall -k --user 0 com.google.android.googlequicksearchbox
adb shell pm uninstall -k --user 0 com.google.android.youtube
# ColorOS & Oppo Apps
adb shell pm uninstall -k --user 0 com.coloros.assistantscreen
adb shell pm uninstall -k --user 0 com.coloros.backuprestore
adb shell pm uninstall -k --user 0 com.coloros.childrenspace
adb shell pm uninstall -k --user 0 com.coloros.compass2
adb shell pm uninstall -k --user 0 com.coloros.healthcheck
adb shell pm uninstall -k --user 0 com.coloros.healthservice
adb shell pm uninstall -k --user 0 com.coloros.personalassistant.overlay.common
adb shell pm uninstall -k --user 0 com.coloros.phonemanager
adb shell pm uninstall -k --user 0 com.coloros.securepay
adb shell pm uninstall -k --user 0 com.coloros.securitykeyboard
adb shell pm uninstall -k --user 0 com.coloros.video
adb shell pm uninstall -k --user 0 com.coloros.weather2
adb shell pm uninstall -k --user 0 com.oppo.quicksearchbox
adb shell pm uninstall -k --user 0 com.oppo.music
# Facebook Apps
adb shell pm uninstall -k --user 0 com.facebook.appmanager
adb shell pm uninstall -k --user 0 com.facebook.services
adb shell pm uninstall -k --user 0 com.facebook.system
# Heytap Apps
# You can remove all if you dont use Realme/Heytap online account
adb shell pm uninstall -k --user 0 com.heytap.market
adb shell pm uninstall -k --user 0 com.heytap.themestore
adb shell pm uninstall -k --user 0 com.heytap.browser
adb shell pm uninstall -k --user 0 com.heytap.cloud
adb shell pm uninstall -k --user 0 com.heytap.habit.analysis
adb shell pm uninstall -k --user 0 com.heytap.mcs
adb shell pm uninstall -k --user 0 com.heytap.openid
adb shell pm uninstall -k --user 0 com.heytap.pictorial
adb shell pm uninstall -k --user 0 com.heytap.usercenter
# Nearme & Realme Apps
# Secure Payment Protection Feature
adb shell pm uninstall -k --user 0 com.nearme.atlas
adb shell pm uninstall -k --user 0 com.realme.securitycheck
# Red Tea Mobile Apps
# Get new SIM, recharge data plans when abroad.
adb shell pm uninstall -k --user 0 com.redteamobile.roaming
# Tencent Apps
adb shell pm uninstall -k --user 0 com.tencent.soter.soterserver
# Misc Apps
adb shell pm uninstall -k --user 0 com.glance.internet
adb shell pm uninstall -k --user 0 com.finshell.fin
Credits:
Doug Lynch of XDA Portal : https://www.xda-developers.com/author/doug-lynch/
Original Article : https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access
Changelog
#1 : 15 June 2020
Initial Release
#2 : 20 June 2020
Added more AOSP, Google, MediaTek apps
#3 : 11 September 2020
Removed critical apps from the list
Remade the list for B45 update.
#4 : 15 September 2020
Added system app - com.heytap.mcs
#5 : 17 September 2020
Removed critical system app - com.coloros.safecenter
Removed critical system app - com.coloros.encryption
Removed system-locked app - com.coloros.lockassistant
#6 : 26 September 2020
Added new info
Added more devices apart from Realme 6
#7 : 10 October 2020
Added "pm disable-user --user 0" method
#8 : 12 May 2021
Remade the list, removed apps that were causing issues.
Added commands for batch re-installing and re-enabling apps of apps
#9 : 13 May 2021
Added more apps
#10 : 1 October 2021
Removed critical system app - com.coloros.weather2
Removed critical system app - com.coloros.weather.service
Guide is only applicable to Realme 6 (Realme UI 2.0, Android 11)
#11: 28 September 2022
Added OTA bootloop warning
Fixed adb commands
Added testing device information for transparency
#12 : 26 February 2023
Replaced com.coloros.weather.service with com.coloros.weather2
Added Finshell Pay and Glance apps
Reserved #2
Savior ????
thx
Remove hot apps and hot games
After the newest update of Jul, I have got two new icons/folder that tries to list entries from app market. Any way to remove those?
I might have remove those before using the mentioned approach but dont remember which packages were they.
udfaq8888 said:
After the newest update of Jul, I have got two new icons/folder that tries to list entries from app market. Any way to remove those? I might have remove those before using the mentioned approach but dont remember which packages were they.
Click to expand...
Click to collapse
Those are launcher activities from App Market App. Open App Market > Settings > Hot Games/Apps > Disable. It should now be hidden inside your stock launcher. They might re-appear again. Best way is to use a custom launcher and hide Hot App/Games permanently.
Can I remove all this packages? Is it safe?
Shirswa said:
Can I remove all this packages? Is it safe?
Click to expand...
Click to collapse
Yes, you can remove but be aware before removing any essential package required for proper device functioning.
Shirswa said:
Can I remove all this packages? Is it safe?
Click to expand...
Click to collapse
Technically its safe to remove all packages, I tested it personally and my phone was able to boot. If you dont need a particular app or functionality, you can safely remove that package.
the app security check drove me crazy, thanks for adding it!
too bad still now way to remove App Market. Can disable everything from the settings within the app and disable permissions
hi im using realme 6 pro is this applicable? using automatic? all listed there?
davejimson said:
hi im using realme 6 pro is this applicable? using automatic? all listed there?
Click to expand...
Click to collapse
yes you can use it on Realme 6 Pro too. I would recommend manual method instead.
prathameshsd said:
yes you can use it on Realme 6 Pro too. I would recommend manual method instead.
Click to expand...
Click to collapse
Thanks, anyway i can't understand the steps how to to automatic, i tried copying the code and save it as .bat , i clicked it run like blink only, nothing happens
davejimson said:
Thanks, anyway i can't understand the steps how to to automatic, i tried copying the code and save it as .bat , i clicked it run like blink only, nothing happens
Click to expand...
Click to collapse
make sure you have
installed adb drivers properly
added adb directory to system PATH variable
device gets detected in adb
set USB mode to file transfer
pasted the .bat file inside adb directory
if running bat file fails, go for manual method.
Removing com.coloros.encryption breaks the stock launcher.
Also trying to remove com.coloros.lockassistant returns "Failure [DELETE_FAILED_INTERNAL_ERROR]".
Everything else works fine :good:
Dont remove com.coloros.safecenter ! It breaks "display over other apps" permission!
wenna.speedy said:
Dont remove com.coloros.safecenter ! It breaks "display over other apps" permission!
Click to expand...
Click to collapse
zahid ramirez said:
Removing com.coloros.encryption breaks the stock launcher.
Also trying to remove com.coloros.lockassistant returns "Failure [DELETE_FAILED_INTERNAL_ERROR]".
Everything else works fine :good:
Click to expand...
Click to collapse
thanks for the heads up, I have updated the post.
Hello guys.
I uninstalled a lot of bloat from my realme 6i, but I accidentally deleted the phone and contacts app! And I don't know how they are called. Can anybody help me here? Just the stock android phone app would do. Thank you.
erw23 said:
Hello guys.
I uninstalled a lot of bloat from my realme 6i, but I accidentally deleted the phone and contacts app! And I don't know how they are called. Can anybody help me here? Just the stock android phone app would do. Thank you.
Click to expand...
Click to collapse
Phone app : adb shell cmd package install-existing com.android.phone
Contacts app : adb shell cmd package install-existing com.android.contacts
Messages app : adb shell cmd package install-existing com.androidm.mms
Also
adb shell "(pm list packages -u && pm list packages) | sort | uniq -u | cut -c 9-"
for all packages you have uninstalled.

How to reinstall system app correctly after removing through ADB.

I uninstalled heytap cloud through ADB by command pm uninstall -k --user 0 com.heytap.cloud
Then I reinstalled it with command
ADB shell CMD install-existing package --user 0 com.heytap.cloud and it was installed correctly
But I am unable to sign in nothing happens when I click on sign in or cloud backup button in settings pls help
Shubham9876 said:
I uninstalled heytap cloud through ADB by command pm uninstall -k --user 0 com.heytap.cloud
Then I reinstalled it with command
ADB shell CMD install-existing package --user 0 com.heytap.cloud and it was installed correctly
But I am unable to sign in nothing happens when I click on sign in or cloud backup button in settings pls help
Click to expand...
Click to collapse
Copy your data to pc or pendrive and Factory reset it.
I have kept that as a last alternative any better option ?

Categories

Resources