[Xiaomi Redmi Note 8] accidentally deleted one 'bloatware' package too many, phone is soft bricked - Android Q&A, Help & Troubleshooting

So this morning I got frustrated with some of the preinstalled software on my Xiaomi and I decided to connect it per adb via usb to my PC, after which I launched the shell and manually uninstalled following packages:
com.google.android.apps.wellbeing
com.google.android.googlequicksearchbox
com.facebook.services
com.facebook.system
com.facebook.appmanager
com.miui.analytics
com.xiaomi.mipicks
com.qualcomm.qti.uceShimService
com.qualcomm.qti.callfeaturessetting
com.qualcomm.qti.remoteSimlockAuth
com.xiaomi.finddevice
with the command
Code:
pm uninstall -k --user 0 <package name>
After this, my phone restarted into Redmi-Recovery 3.0, with no direct way to get out.
Trying to reinstall doesn't work because in this moment, even if adb is able to connect, I cant do anything about the packages in the shell anymore.
From what I've now read, it seems like Xiaomis "Find Device" service is essential, so I'm guessing i need to "revert" it, but how?
I started following this tutorial on youtube on "how to unbrick your xiaomi phone" (which assumes that I need to reflash my ROM via fastboot), but by now I've gotten stuck at every single sub-step of doing this with MiFlash that I'm about to give up.
So that MiFlash is able to flash, the bootloader needs to be unlocked. I tried to do that with Mi Unlock (both 4.5 and 6.5) but that app is even less comprehensible and functional. sometimes pages load blank, sometimes dialogues are suddenly in chinese, but worst of all is that even though I have a verified Xiaomi account (via email), when I try to sign in with it in Mi Unlock, it asks me to provide a phone number, and when I do, it says that "+417*******3" is not a valid phone format, what the hell?
I've been stuck on this the whole day, I think I'm missing an obvious workaround to reinstall that package, or some kind of different solution? What am I doing wrongly?
Thanks for any help.

The command
Code:
pm uninstall -k --user 0 <package name>
doesn't remove an app, but only deletes its APK.
You reinstall the now missing APK via command
Code:
adb shell "cmd package install-existing <package name>"

Thanks for your quick reply. I've already tried this, as I've said:
even if adb is able to connect, I cant do anything about the packages in the shell anymore
Click to expand...
Click to collapse
The exact output is:
Code:
pm install-existing com.xiaomi.finddevice
cmd: Can't find service: package

Can't read properly? May be you've to buy new glasses ...

Although my friend from just over the border could've phrased it more nicely, this was essentially my issue. I somehow omitted "cmd" from the install-existing command the last time.... 5 hours wasted for nothing
Merci und Gruess

Related

Please help make root mdz-21-aa mibox 4

no connect with usb to computer,adb debuging not work with usb ,kingoroot.apk dont make root in this device..Please help me (
Sorry, this box is totally locked down. The only mod possible would be to get partial English menus. You will still be stuck with the extensive bloatware and adware.
Why did you ever buy a box that is specific to Chinese language users living in PRC?
try this link.....no guarantees
http://en.miui.com/thread-391907-1-1.html
Good day. Tell me, please, who managed to establish a root on this TV box?
Much time has passed since the release of Mi Box 4, but so far there is no information about its unlocking anywhere.
This is all that was found. Maybe someone can solve the problem with the inclusion of debugging on USB?
HEY guys ! after days i found an instruction how to remove chinese blah blah
{
"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"
}
thanks to sergeizo96 from 4pda.ru :
on ur xiaomi mdz-21-aa:
1-install ATV launcher & Android settings & Aptoide with an USB flash
2-go to xiami settings->about->model (click 7 times)
3-go out and go to xiaomi settings->Account & Security->Adb-debugging , and turn it on
4- go to settings network and find your IP address
on your computer :
1- on ur cmd as administrator type : adb connect 192.168.1.9:5555 (ur ip address)
(confirm it on ur xiaomi box to connect)
2- check adb devices and confirm that its connected type : adb devices
(then start to remove chinise apps)
3:Adb shell pm uninstall --user 0 com.mitv.tvhome
Adb shell pm uninstall --user 0 mitv.service
4)these software also can be removed too:
app Store
Adb shell pm uninstall --user 0 com.xiaomi.mitv.appstore
MI home
Adb shell pm uninstall --user 0 com.xiaomi.smarthome.tv
Xiaomi Mall
Adb shell pm uninstall --user 0 com.xiaomi.mitv.shop
Xiaomi payment
Adb shell pm uninstall --user 0 com.xiaomi.mitv. payment
Xiaomi wallet
Adb shell pm uninstall --user 0 com.mipay.wallet.tv
Game center
Adb shell pm uninstall --user 0 com.xiaomi.mibox.gamecenter
--After these reboot ur mi box and check ur time zone from android settings , Enjoy it Guys
Congratulations, you still have an underpowered box lacking any meaningful DRM features or useful codecs. Now you can enjoy all these missing features with an English menu interface.
bigtalker said:
Congratulations, you still have an underpowered box lacking any meaningful DRM features or useful codecs. Now you can enjoy all these missing features with an English menu interface.
Click to expand...
Click to collapse
LOL its still useful in my country , we r using another services and we wont use Netflix and other blah blah , and its better than to put ur box throw out :fingers-crossed:
To be honest, I expected better from a supposed "Senior Member" with plenty of posts - what an asshat.
You would think you would be saying something positive considering he's contributing positively here... but I guess your username says it all.
Good on you @xenups - good work on your post.
Looks like the MDZ-19-AA has a tutorial on installing gApps and rooting etc, shame nothing for MDZ-21-AA yet - that'd really reinvigorate this thing.
Works ok for Plex and stuff like Twitch out of the box (with a custom launcher) so this will make it much better.
I've got a Shield and the original Mibox but this Chinese one is in my study and is underused, so this will make an improvement - thanks again.
So, just expanding on the existing instructions for anyone that comes across this thread and is interested.
I didn't have a USB cable to go between a PC and the box, so I used adb wirelessly.
I kept getting an "device unauthorized" message while using my laptop (the mibox wouldn't prompt to authorize the connection), so I decided to try out my phone as a last resort... not thinking that it'd actually work.
I used Remote ADB Shell on the playstore and connected to the IP of my Mibox.
After that, I carried out the ADB commands as per the earlier instructions and also added a few more apps to remove as well (also fixed a typo in the mitv.payment command which had a space in it in the previous post).
You can copy and paste this entire section into the app on your phone and it'll go down through each app one by one and uninstall them (or if you're using another method, just add "adb shell" in front of my list).
pm uninstall --user 0 com.xiaomi.gamecenter.sdk.service.mibox
pm uninstall --user 0 com.xiaomi.tweather
pm uninstall --user 0 com.xiaomi.mitv.systemui
pm uninstall --user 0 com.xiaomi.mitv.pay
pm uninstall --user 0 com.xiaomi.mitv.advertise
pm uninstall --user 0 com.xiaomi.mitv.gallery
pm uninstall --user 0 com.xiaomi.tv.gallery
pm uninstall --user 0 com.xiaomi.mitv.tvmanager
pm uninstall --user 0 com.mitv.tvhome
pm uninstall --user 0 mitv.service
pm uninstall --user 0 com.xiaomi.mitv.appstore
pm uninstall --user 0 com.xiaomi.smarthome.tv
pm uninstall --user 0 com.xiaomi.mitv.shop
pm uninstall --user 0 com.xiaomi.mitv.payment
pm uninstall --user 0 com.mipay.wallet.tv
pm uninstall --user 0 com.xiaomi.mibox.gamecenter
If you want to see what else is installed on your mibox, just type:
Simple view:
pm list packages
Detailed view:
pm list packages -f
Once you reboot, set your Mibox to "Always" open ATV Launcher and you're done.
Deviner said:
To be honest, I expected better from a supposed "Senior Member" with plenty of posts - what an asshat.
You would think you would be saying something positive considering he's contributing positively here... but I guess your username says it all.
Good on you @xenups - good work on your post.
Looks like the MDZ-19-AA has a tutorial on installing gApps and rooting etc, shame nothing for MDZ-21-AA yet - that'd really reinvigorate this thing.
Works ok for Plex and stuff like Twitch out of the box (with a custom launcher) so this will make it much better.
I've got a Shield and the original Mibox but this Chinese one is in my study and is underused, so this will make an improvement - thanks again.
Click to expand...
Click to collapse
Sorry you fail to appreciate the stark honesty about this lame box.
No matter what improvements happen to the UI, or what half-assed language mods are forced on it, it is still crippled by limitations imposed by Amlogic and the regulations of government of PRC.
If you had any sense to make an intelligent evaluation of similar priced stbs, this mdz-21-aa would not be under consideration.
Since you own 2 of the most fully endowed streaming devices on the market, you have been insulated from any concerns as to DRM, codecs, HDCP reliability, HDMI standards and many other aspects needed for a fully functional stb. Mind you, nearly all of these capabilities are missing, by design, from mdz-21-aa and no amount of fiddling can overcome these failings.
I think you're the one missing the point.
It wasn't a "OMG, I have an amazing solution for this box and everyone should go out and buy one.".
It's more of a "Ok, you're stuck with this box, here are a few tips to get it somewhat usable.".
For me, I had a 2nd gen Chromecast hooked up in my office and it's not capable of running 1080p @ 60fps, so defaults to 720p.
Using this box, I can run it in 1080p and I've a spare USB/Ethernet adapter so it handles it fine.
I've chucked Aptoide onto it and grabbed some other apps, including Plex, which runs my content at my TV's limit, 1080p.
So yeah... it's made a bad box somewhat usable.
And for anyone who has one, it's almost guaranteed they bought it from a Chinese reseller so the chances of returning it are slim to none.... hence this thread.
Deviner said:
I think you're the one missing the point.
It wasn't a "OMG, I have an amazing solution for this box and everyone should go out and buy one.".
It's more of a "Ok, you're stuck with this box, here are a few tips to get it somewhat usable.".
For me, I had a 2nd gen Chromecast hooked up in my office and it's not capable of running 1080p @ 60fps, so defaults to 720p.
Using this box, I can run it in 1080p and I've a spare USB/Ethernet adapter so it handles it fine.
I've chucked Aptoide onto it and grabbed some other apps, including Plex, which runs my content at my TV's limit, 1080p.
So yeah... it's made a bad box somewhat usable.
And for anyone who has one, it's almost guaranteed they bought it from a Chinese reseller so the chances of returning it are slim to none.... hence this thread.
Click to expand...
Click to collapse
I wasn't stoopid enough to actually buy one so I can pontificate to my heart's content.
bigtalker said:
Sorry you fail to appreciate the stark honesty about this lame box.
No matter what improvements happen to the UI, or what half-assed language mods are forced on it, it is still crippled by limitations imposed by Amlogic and the regulations of government of PRC.
If you had any sense to make an intelligent evaluation of similar priced stbs, this mdz-21-aa would not be under consideration.
Since you own 2 of the most fully endowed streaming devices on the market, you have been insulated from any concerns as to DRM, codecs, HDCP reliability, HDMI standards and many other aspects needed for a fully functional stb. Mind you, nearly all of these capabilities are missing, by design, from mdz-21-aa and no amount of fiddling can overcome these failings.
Click to expand...
Click to collapse
you are really a BIG talker~!!!!
please post the method to set Mibox to "Always" open ATV Launcher
please post the method to set Mibox to "Always" open ATV Launcher
---------- Post added at 07:36 AM ---------- Previous post was at 07:27 AM ----------
xenups said:
HEY guys ! after days i found an instruction how to remove chinese blah blah
thanks to sergeizo96 from 4pda.ru :
on ur xiaomi mdz-21-aa:
1-install ATV launcher & Android settings & Aptoide with an USB flash
2-go to xiami settings->about->model (click 7 times)
3-go out and go to xiaomi settings->Account & Security->Adb-debugging , and turn it on
4- go to settings network and find your IP address
on your computer :
1- on ur cmd as administrator type : adb connect 192.168.1.9:5555 (ur ip address)
(confirm it on ur xiaomi box to connect)
2- check adb devices and confirm that its connected type : adb devices
(then start to remove chinise apps)
3:Adb shell pm uninstall --user 0 com.mitv.tvhome
Adb shell pm uninstall --user 0 mitv.service
4)these software also can be removed too:
app Store
Adb shell pm uninstall --user 0 com.xiaomi.mitv.appstore
MI home
Adb shell pm uninstall --user 0 com.xiaomi.smarthome.tv
Xiaomi Mall
Adb shell pm uninstall --user 0 com.xiaomi.mitv.shop
Xiaomi payment
Adb shell pm uninstall --user 0 com.xiaomi.mitv. payment
Xiaomi wallet
Adb shell pm uninstall --user 0 com.mipay.wallet.tv
Game center
Adb shell pm uninstall --user 0 com.xiaomi.mibox.gamecenter
--After these reboot ur mi box and check ur time zone from android settings , Enjoy it Guys
Click to expand...
Click to collapse
please psot the link to download apk for ATV launcher & Android settings & Aptoide
Thanks
Thanks. It was helpful since it made this box bearable.
So... rooting?
hey, everyone sergeizo96 from 4pda here again, we (thanks to Arknew user) found a way to root this box!
Disclaimer: although chances of permanently bricking your device are pretty slim, I'm not responsible if you actually manage to do that. ALWAYS MAKE BACKUPS (DUMPS) AND KEEP THEM SAFE!
You can use this video (Russian language) for reference:
(link to youtube) watch?v=ZqPr6Vq0fUw
files:
(link to google drive) open?id=1Ki7p56otzAh31jYzMV7BKkxNYhjWZCWL
1. turn on adb on your box and connect your PC to your box over WI-FI (as it was described in this thread before).
2. Prepare USB-drive (minimum size 10GB), USB-hub (so you can have 2 usb ports: 1 for usb-drive, 1 for usb-mouse to control the recovery), and usb-mouse.
Format usb-drive as FAT32. Extract "xiaomibox_startup.zip" into the root of usb-drive.
plug in the usb-hub into the tv-box, plug usb-mouse and usb-drive into the usb-hub.
3. Enter TWRP.
from your PC adb console, execute: adb reboot update
wait for the tv-box to reboot into TWRP.
4. Make a dump of your whole system.
navigate to Mount->USB OTG or USB OTG DATA and mount it
then go to Select Storage and check that usb-drive was mounted (it'll show free space on the drive).
return to the main screen (home button at the buttom) and navigate to Backup->Dump->Swipe to Backup and wait for backup to finish
5.Get boot.img from Dump
plug the usb-drive (with your backup) to your PC and copy dump folder SOMEWHERE SAFE!
open dump.emmc.win in hex-editor program
open recovery.log and check your memory addresses (offset and size) for boot.img
in your hex-editor find the correct offset (text should read: ANDROID) and select block of correct lenght (from recovery.log)
copy selected block and paste it into a new file. Save new file as boot.img on usb-drive
6. Modify boot.img with Magisk
reboot your tv-box
install magisk-manager.apk
Open Magisk manager and select Install->Install->Select and Patch a file
find and open boot.img from usb-drive and wait for magisk to patch it
find patched file (magisk_patched.img) which should be in /Storage/Emulated/0/Download and copy it to usb-drive
7. Insert magisk_patched.img back into Dump
plug the usb-drive (with your backup) to your PC and open a copy of dump.emmc.win in hex-editor program
open magisk_patched.img in hex-editor and copy all its content
Paste write it into dump.emmc.win on the correct adress
save dump.emmc.win to usb-drive AS A COPY - Keep your original dump backup !!!!!
8. Flash new Dump
use instructions from step 3
in twrp navigate to
navigate to Mount->USB OTG or USB OTG DATA and mount it
then go to Select Storage and check that usb-drive was mounted (it'll show free space on the drive).
Go to Restore select your Dump and Swipe to Restore.
Wait for the dump to flash!
Reboot your tv-box
9. Install Root
on tv-box open Magisk Manager and follow given instructions
You should now have root access!
sergeizo96 said:
hey, everyone sergeizo96 from 4pda here again, we (thanks to Arknew user) found a way to root this box!
Disclaimer: although chances of permanently bricking your device are pretty slim, I'm not responsible if you actually manage to do that. ALWAYS MAKE BACKUPS (DUMPS) AND KEEP THEM SAFE!
You can use this video (Russian language) for reference:
(link to youtube) watch?v=ZqPr6Vq0fUw
files:
(link to google drive) open?id=1Ki7p56otzAh31jYzMV7BKkxNYhjWZCWL
1. turn on adb on your box and connect your PC to your box over WI-FI (as it was described in this thread before).
2. Prepare USB-drive (minimum size 10GB), USB-hub (so you can have 2 usb ports: 1 for usb-drive, 1 for usb-mouse to control the recovery), and usb-mouse.
Format usb-drive as FAT32. Extract "xiaomibox_startup.zip" into the root of usb-drive.
plug in the usb-hub into the tv-box, plug usb-mouse and usb-drive into the usb-hub.
3. Enter TWRP.
from your PC adb console, execute: adb reboot update
wait for the tv-box to reboot into TWRP.
4. Make a dump of your whole system.
navigate to Mount->USB OTG or USB OTG DATA and mount it
then go to Select Storage and check that usb-drive was mounted (it'll show free space on the drive).
return to the main screen (home button at the buttom) and navigate to Backup->Dump->Swipe to Backup and wait for backup to finish
5.Get boot.img from Dump
plug the usb-drive (with your backup) to your PC and copy dump folder SOMEWHERE SAFE!
open dump.emmc.win in hex-editor program
open recovery.log and check your memory addresses (offset and size) for boot.img
in your hex-editor find the correct offset (text should read: ANDROID) and select block of correct lenght (from recovery.log)
copy selected block and paste it into a new file. Save new file as boot.img on usb-drive
6. Modify boot.img with Magisk
reboot your tv-box
install magisk-manager.apk
Open Magisk manager and select Install->Install->Select and Patch a file
find and open boot.img from usb-drive and wait for magisk to patch it
find patched file (magisk_patched.img) which should be in /Storage/Emulated/0/Download and copy it to usb-drive
7. Insert magisk_patched.img back into Dump
plug the usb-drive (with your backup) to your PC and open a copy of dump.emmc.win in hex-editor program
open magisk_patched.img in hex-editor and copy all its content
Paste write it into dump.emmc.win on the correct adress
save dump.emmc.win to usb-drive AS A COPY - Keep your original dump backup !!!!!
8. Flash new Dump
use instructions from step 3
in twrp navigate to
navigate to Mount->USB OTG or USB OTG DATA and mount it
then go to Select Storage and check that usb-drive was mounted (it'll show free space on the drive).
Go to Restore select your Dump and Swipe to Restore.
Wait for the dump to flash!
Reboot your tv-box
9. Install Root
on tv-box open Magisk Manager and follow given instructions
You should now have root access!
Click to expand...
Click to collapse
It doesnt work on the 21, there's no system data or mount
Working recovery
netomx said:
It doesnt work on the 21, there's no system data or mount
Click to expand...
Click to collapse
Good news, working recovery that sees all the partitions has been developed. So you don't have to go through all of that mess. Just install magisk like you normally would. I'll put the recovery in the same folder on google drive (TWRPforMi4.rar).
Well, take 4 different USB drive and USB mouse, finally it could boot up TWRP.
Same result as netomx, there is no system/data to mount so no way to backup.
directly install magisk zip fails too.
I notice one thing, the TWRP version in attached rar is 3.0.2-0, but in Youbube it uses 3.1.1-1.
Maybe that makes difference, could you share the 3.1.1-1 recovery.img?
sergeizo96 said:
Good news, working recovery that sees all the partitions has been developed. So you don't have to go through all of that mess. Just install magisk like you normally would. I'll put the recovery in the same folder on google drive (TWRPforMi4.rar).
Click to expand...
Click to collapse
Using TWRPforMi4.rar, TWRP can recognize all partitions. However, after I backup all partitions the box cannot boot to system, including boot to recovery.
This turns to me to seek another way to recovery it back...

ADB uninstall package command: accidental space, mobile hangs

Hi I bought this brand new Samsung Galaxy J6 today. Immediately I notice the ****load amout of bloatware on it, so I've looked around and found tis ADB method of uninstalling services. (without root required)
Now I'm kind of new to this software, and I'm having fun uninstalling some crap. And then, one little finger slip and offcourse the command gets a completely different meaning and offcourse it immediately ****s up the whole phone.
From working fine 5 mins ago to 'hanging' on Samsung logo now. Really don't know what to do.
If there's some advanced user that could help me out, that would be awesome.
Here's the exact log in CMD: (Windows 7 Professional) Notice the accidental space between "rubin" and ".app" that's causing the instant drama!
j6lte:/ $ pm uninstall -k --user 0 com.samsung.android.rubin .app
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:761)
at android.os.BinderProxy.shellCommand(Binder.java:815)
at com.android.commands.pm.Pm.runShellCommand(Pm.java:334)
at com.android.commands.pm.Pm.runUninstall(Pm.java:726)
at com.android.commands.pm.Pm.run(Pm.java:174)
at com.android.commands.pm.Pm.main(Pm.java:107)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:287)
255|j6lte:/ $
And here's an example of how I intended the command: (without space)
j6lte:/ $ pm uninstall -k --user 0 com.samsung.android.rlc
Success
Many thanks in advance,
Tritium2

Do not disable com.android.updater

I uninstalled com.android.updater, and fow a while everything was OK. Then today the battery was depleted, and after recharging the phone went into a bootloop. I had to install com.android.updater again, and after that everything went back to normal.
How did I find out it was com.android.updater? When in a bootloop, the Android system is actually already up and running. I was able to do adb logcat. There I saw that the system was looking for com.android.updater.
Code:
04-18 17:07:20.036 7445 7606 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: Thread-4
04-18 17:07:20.036 7445 7606 E AndroidRuntime: java.lang.RuntimeException: System error: connot find system app : com.android.updater
Note that I'm using the original China Stable ROM version 10.4.4.0(PFKCNXM), all stock, locked bootloader, not rooted. Except for the customization that we can do without root: Install Google services etc, and disable/uninstall packages through ADB.
I didn't want to upgrade to MIUI 11 because I've seen reports of it being slow and draining battery, and I want the NFC functionality, so I had to stick with China ROM.
I can't find that in my Mi 9T Pro (using the latest xiaomi.eu 20.3.27)
When I search Update I find pl.zdunex25.updater, com.android.dynsystem and com.google.android.configupdater and have all 3 frozen with SDMaid.
DeepAnger said:
I can't find that in my Mi 9T Pro (using the latest xiaomi.eu 20.3.27)
When I search Update I find pl.zdunex25.updater, com.android.dynsystem and com.google.android.configupdater and have all 3 frozen with SDMaid.
Click to expand...
Click to collapse
Oh I'm using the China Stable ROM version 10.4.4.0(PFKCNXM), sorry for not mentioning it earlier. I think custom ROMs might be immune to this sort of thing. Thanks, I've updated the post with my ROM info.
I uninstalled com.android.updater, and i cant restore it(. Do you can help me? I use redmi 4 and firmware miui_HMNote4Global_V8.5.6.0.MBFMIED_6f4b63e4fd_6.0. How i can restore one app whitout reinstall all?(
Brooont said:
I uninstalled com.android.updater, and i cant restore it(. Do you can help me? I use redmi 4 and firmware miui_HMNote4Global_V8.5.6.0.MBFMIED_6f4b63e4fd_6.0. How i can restore one app whitout reinstall all?(
Click to expand...
Click to collapse
Process of restoring generally depends on how did you 'uninstall' - please precisely describe how you did
I connect phone to computer with adb, click "debloater" and write com.android.updater in "custom" field, and click uninstall.
Brooont said:
I connect phone to computer with adb, click "debloater" and write com.android.updater in "custom" field, and click uninstall.
Click to expand...
Click to collapse
Still depending on how your debloater worked, try the folowing command(s):
adb shell cmd package install-existing com.android.updater
if it fails then:
adb shell pm enable com.android.updater
First make sure that adb connection is properly established:
adb devices
C:\adb_run\bin>adb devices
List of devices attached
NF8LHYVSNJZTGY7L recovery
C:\adb_run\bin>adb shell pm enable com.android.updater
adb server is out of date. killing...
* daemon started successfully *
/sbin/sh: pm: not found
C:\adb_run\bin>adb shell cmd package install-existing com.android.updater
/sbin/sh: cmd: not found
C:\adb_run\bin>
Something wrong...
Brooont said:
C:\adb_run\bin>adb devices
List of devices attached
NF8LHYVSNJZTGY7L recovery
C:\adb_run\bin>adb shell pm enable com.android.updater
adb server is out of date. killing...
* daemon started successfully *
/sbin/sh: pm: not found
C:\adb_run\bin>adb shell cmd package install-existing com.android.updater
/sbin/sh: cmd: not found
C:\adb_run\bin>
Something wrong...
Click to expand...
Click to collapse
Something wrong/strange with your adb deamon
Btw, you used certain Debloater - you should better ask in the corresponding Debloater forum/thread how to un-do
Тhanks!
wpyh said:
I uninstalled com.android.updater, and fow a while everything was OK. Then today the battery was depleted, and after recharging the phone went into a bootloop. I had to install com.android.updater again, and after that everything went back to normal.
How did I find out it was com.android.updater? When in a bootloop, the Android system is actually already up and running. I was able to do adb logcat. There I saw that the system was looking for com.android.updater.
Code:
04-18 17:07:20.036 7445 7606 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: Thread-4
04-18 17:07:20.036 7445 7606 E AndroidRuntime: java.lang.RuntimeException: System error: connot find system app : com.android.updater
Note that I'm using the original China Stable ROM version 10.4.4.0(PFKCNXM), all stock, locked bootloader, not rooted. Except for the customization that we can do without root: Install Google services etc, and disable/uninstall packages through ADB.
I didn't want to upgrade to MIUI 11 because I've seen reports of it being slow and draining battery, and I want the NFC functionality, so I had to stick with China ROM.
Click to expand...
Click to collapse
Would it be safe to disable in ADB, rather than uninstall?
Also, is it only responsible for OS updates, or does it handle things like updating the Google Play app?
hey guys..
is there any method for unrooted device..? disable commanda is not working.;
C:\Users\Desktop\fastboot_adb(1.0.32)_071114_r21>adb shell pm disable-user --user 0 com.android.
updater
Package com.android.updater new state: default
t-mobile_mda said:
hey guys..
is there any method for unrooted device..? disable commanda is not working.;
C:\Users\Desktop\fastboot_adb(1.0.32)_071114_r21>adb shell pm disable-user --user 0 com.android.
updater
Package com.android.updater new state: default
Click to expand...
Click to collapse
I would suggest not touching android.updater. it gives bootloop if disabled or uninstalled
What should we remove then

Debloat/Disable System Apps

So you got your new shiny realme device but you hate bloatware or want to disable system apps so you can use 3rd party apps instead?
Follow the steps below:
THIS DOES NOT REQUIRE ROOT HOWEVER MAKE SURE NOT TO DISABLE IMPORTANT SYSTEM APPS. WIPE DATA/FORMATTING RE-ENABLES ALL SYSTEM APPS. THIS DOES NOT MESS WITH OTAs.
WHAT YOU NEED:-
ADB/Fastboot Drivers
Windows: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
Linux: https://dl.google.com/android/repository/platform-tools-latest-linux.zip
DEBLOAT:-
1. Enable developer options by tapping on the build number 7 times and enable USB Debugging.
2. Plug in your phone.
3. Goto the folder where ADB is installed, hold shift and right click, and click on open command window here(windows).
4. Type
in CMD
Code:
adb devices
in Powershell
Code:
./adb devices
.
5. This should return the ID of your device and show if its authorised. Enable debugging Promt on your Phone if it shows unauthorised (allow this computer).
6. Type
in cmd
Code:
adb shell
in Powershell
Code:
./adb shell
.
7. This should display a prompt, something like RMXxxxx:/ $
8. To uninstall type
Code:
pm uninstall -k --user 0 <name of the package>
To disable type
Code:
pm disable-user --user 0 <name of the package>
eg: pm uninstall -k --user 0 com.heytap.browser / pm disable-user --user 0 com.heytap.browser
9. Done!
To reinstall uninstalled apps type
Code:
pm install-existing <name of the package>
To enable disabled apps type
Code:
pm enable <name of the package>
Some apps do not uninstall such as market and gamecenter, disabling is the only option.
Very Helpful, Thanks. I debloated my realme 7 and also disabled the Realme security analysis app so now no more ads popup after everytime installing a new app from playstore?
vimal102029 said:
Very Helpful, Thanks. I debloated my realme 7 and also disabled the Realme security analysis app so now no more ads popup after everytime installing a new app from playstore
Click to expand...
Click to collapse
Nice
i wasn't able to debloat with uninstall command. what could possibly wrong? using disable-user work fine though
immns said:
i wasn't able to debloat with uninstall command. what could possibly wrong? using disable-user work fine though
Click to expand...
Click to collapse
Use this command, I tried this.
[ pm uninstall --user 0 <packagename> ]
vimal102029 said:
Use this command, I tried this.
[ pm uninstall --user 0 <packagename> ]
Click to expand...
Click to collapse
thank uu, it worked:good:
Could someone post a list of the apps that can be safely removed?
Some handy tips down the road.
While using power shell just add ./ infront of all adb commands and everything will work.
If error showing while connecting through USB debug "Cant Allow USB debugging Because an app is obscuring when connect to your pc..." Just disable assistive ball and Floating windows privacy > display over other apps.< Uncheck everything.
$ ./adb shell pm list packages < List everything installed
$ adb shell pm list packages -d < List all the disabled package
Can be safely and shud be Disabled packages:
package:com.heytap.cloud < Cloud service better alternates avail.
package:com.android.nfc < By default disabled as device doesn't have hardware.
package:com.facebook.services < Racist Biased Snitch Company will leech on your data and create chaos in your country.
package:com.facebook.system < No idea why its installed and running in back
package:com.facebook.appmanager < Always takes side of Mighty
package:com.heytap.browser < This is main source of adverts in phone only reason i needed to go through this.
---------- Post added at 04:27 AM ---------- Previous post was at 04:13 AM ----------
vimal102029 said:
Very Helpful, Thanks. I debloated my realme 7 and also disabled the Realme security analysis app so now no more ads popup after everytime installing a new app from playstore
Click to expand...
Click to collapse
Hello, security analysis app is from Google side can be disabled inside google settings. Only way Realme shows adverts is through default Browser which can be disabled. if there's in any package which can be disabled or uninstalled for realme analysis please share name.
Thank you
I personally disabled these apps
papabear57 said:
Hello, security analysis app is from Google side can be disabled inside google settings. Only way Realme shows adverts is through default Browser which can be disabled. if there's in any package which can be disabled or uninstalled for realme analysis please share name.
Thank you
Click to expand...
Click to collapse
com.realme.securitycheck
vimal102029 said:
com.realme.securitycheck
Click to expand...
Click to collapse
Thank you
I recently debloated many packages, but found the realme gallery3d to be useful. It has face sorting feature, which I found to be very nice.
However I lost the capability to sort face after deleting a random package, and I dont know which one it is.
Does anyone know which package is associated with this service?
vimal102029 said:
I personally disabled these apps
Click to expand...
Click to collapse
About your first attachment: how to know what path (e.g. com.heytap.browser) represents what app? I want to delete the weather app. How can i know what path is this?
Thank you all for these posts btw.
Edit: omg, last seen May 30, 2021 . Can somebody else answer this question?
neutrala said:
About your first attachment: how to know what path (e.g. com.heytap.browser) represents what app? I want to delete the weather app. How can i know what path is this?
Thank you all for these posts btw.
Edit: omg, last seen May 30, 2021 . Can somebody else answer this question?
Click to expand...
Click to collapse
Not the path but the app package name is that matters, you can download an app like this https://play.google.com/store/apps/details?id=com.csdroid.pkg&hl=es&gl=US
Be careful which app you choose, disabling a system dependent app may cause your device not working properly or even booting at all. You might need to perform a factory reset or flash again the firmware to solve it.
neutrala said:
I want to delete the weather app.
Click to expand...
Click to collapse
Don't. Disabling weather app on RUI 2.0 causes issues. You'll have to format data to recover.

Question bloatware disable script / setup script

I've made this bloatware disable script for my new realme GT (Global) you might find it useful.
It disables stuff you can't usually disable / remove on the phone itself.
The uninstallable stuff I removed manually before creating this script. Some more "extreme" options are commented out.
first setup ADB:
On your phone:
Settings -> About Phone -> Version -> press "Build Number" 7 times to enable Developer Options --> Go back to the root of settings --> Additional Settings --> Developer options and enable USB Debugging --> reconnect your phone --> select Data Transfer / Android Auto
On your PC:
Windows device driver: https://developer.android.com/studio/run/oem-usb.html
adb/fastboot: https://developer.android.com/studio/releases/platform-tools#downloads
on windows cd to the extracted platform-tools directory and change each command to .\adb ... or copy its contents to C:\tools and add that to your PATH
realme-gt-setup.sh
GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
Please note that you can't disable com.coloros.weather.service if you enables dark mode, otherwise, you'll encounter repeated flickering and not able to unlock the phone!
nickyip123 said:
....you can't disable com.coloros.weather.service....
Click to expand...
Click to collapse
Noted.
Firstly did you manage to unlock your phone ?
Would uninstalling instead of disabling the Weather App solve the issue ?
pm uninstall -k --user 0 com.coloros.weather.service
pm uninstall -k --user 0 com.coloros.weather2
Chi Am said:
Noted.
Firstly did you manage to unlock your phone ?
Would uninstalling instead of disabling the Weather App solve the issue ?
pm uninstall -k --user 0 com.coloros.weather.service
pm uninstall -k --user 0 com.coloros.weather2
Click to expand...
Click to collapse
I've tried that too.
pm uninstall -k --user 0 com.coloros.weather2
makes no problem at all, it is the "weather.service" matters.
I let the adb shell open and data line connected, then
pm uninstall -k --user 0 com.coloros.weather.service
Nothing happens at this point, but after I clicked Dark Mode the screen flickers.
I turned off screen and on again, still the same, flickers and no response.
So I immediately put the App back by
cmd package install-existing com.coloros.weather.service
The screen returns to normal again, and I can unlock.
nickyip123 said:
I've tried that too.
pm uninstall -k --user 0 com.coloros.weather2
makes no problem at all, it is the "weather.service" matters.
I let the adb shell open and data line connected, then
pm uninstall -k --user 0 com.coloros.weather.service
Nothing happens at this point, but after I clicked Dark Mode the screen flickers.
I turned off screen and on again, still the same, flickers and no response.
So I immediately put the App back by
cmd package install-existing com.coloros.weather.service
The screen returns to normal again, and I can unlock.
Click to expand...
Click to collapse
First and foremost, thank you for the prompt reply.
Having installed another Weather App, I uninstalled "weather.service" and "weather2" then changed the device from Light to Dark Mode (Device still connected to PC) and unfortunately, I'm glad to report, there were no flickering issues.
I'm assumming the weather.service is causing UI issues which another weather app in place had adressed.
My intension is to replace the Coloros Weather App with my own option therefore uninstalling just the "weather2" will be fine.
I threw caution to the wind and re-installed the coloros.weather.service just in case if the current weather app is accidentally uninstalled.
Thank you for your help.
I use this
[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
Easy to use
Hello, I am looking for a list of application (bloatware) to deactivate for Realme gt neo
In need of help.
Sorry people, I have convinved myself that it's better to have the devil you know...so no help needed....but I can't seem find an option to delete this post so if an admin is available then thank you.
Sos for the inconvenience.

Categories

Resources