Remove Bloatware via ADB not working - HTC One Mini 2

Hi,
I tried to uninstall the not needed apps with ADB, but I always get an error.
At the beginning I tried:
pm uninstall -k --user 0 com.htc.sense.socialnetwork.facebook
But as this failed I found out that till Android 5 there were no "users". So I tried:
pm uninstall -k com.htc.sense.socialnetwork.facebook
But still I get just "Failure".
Is there any way to debloat the HTC One Mini 2 without installing a custom rom?

Related

[Firmware] EMUI 8.1 / 9.0 Flash, Root and Downgrade Guide (L29C432/L29C636)

How to FLASH EMUI 8.1 / 9.0 including latest single base versions (build 197+)
Your device must have the following
1. Bootloader should be unlocked (if you have not already unlocked bootloader, there are paid services available)
2. Enable USB debugging in Settings > Developer options > USB debugging
3. Remove Fingerprint ID, Face lock and Lock screen password. This is very very important otherwise your device will be soft bricked
Firmware Download:
You can download ROM version that you want (EMUI 8.1 / 9.0) from this LINK
If you do not see latest EMUI 9.0 firmwares, use the links below,
EMUI 9.0 Build 204
EMUI 9.0 build 236
EMUI 9.0 build 241
EMUI 9.0 build 243
EMUI 9.0 build 251
Do not try to update to build 241 straight from EMUI 8.0. It will brick your device and you will end up with black screen. Update to build 195 and then update to any later builds.
Files that you will be downloading are,
>> Upto build 195
update.zip
update_full_CLT-L29_hw_eu.zip
>> After build 197 or later
update_full_base.zip
Preparation:
a. Download this Flash tool and extract to your PC
b. Copy downloaded Firmware files to ZIPS-HERE folder (you can find this folder where you have extracted Flash tool
How to flash Firmware
1. Double click to run the file cmd-here.exe. It opens command prompt in the same folder where you are.
2. Once command prompt opens, type FLASH_two_files.bat if you have multiple Firmware files (2 files) or FLASH_full_base.bat if you have single base file from latest EMUI 9.0. Follow steps carefully. Once flashing is complete, it will boot normally.
PLEASE NOTE THAT THIS METHOD OF FLASHING DO NOT WIPE DATA and all the installed apps will be intact. But you will loose ROOT. You have root again.
How to ROOT EMUI 8.1 / EMUI 9.0
For EMUI 8.1:
1. Download this TWRP and flash it in fastboot mode
2. Download Magisk from this LINK
3. Flash in TWRP (using the command fastboot flash recovery_ramdisk images/twrp.img). twrp.img is already in the Flash tool that you downloaded.
For EMUI 9.0: Thanks to @ArtaxXP for the findings and the post is here LINK
1. Pre-patch images you need for different version are below. You will be patching this file yourself with magisk canary version.
RECOVERY_RAMDIS_163.img
RECOVERY_RAMDIS_195.img
RECOVERY_RAMDIS_9.0_204.img
RECOVERY_RAMDIS_9.0_236.img
RECOVERY_RAMDIS_9.0_241.img
RECOVERY_RAMDIS_9.0_243.img
RECOVERY_RAMDIS_9.0_251.img
and copy this img to your device (these recovery_ramdisk file extracted from respective EMUI firmware UPDATE.APP)
2. Download and Install latest magisk manager
3. Open Magisk manager, go to settings > update channel > Custom and use the link below
https://raw.githubusercontent.com/topjohnwu/magisk_files/master/canary_builds/release.json
Click to expand...
Click to collapse
4. Go back to magisk manager default page and refresh (pull down). Install the latest magisk manager version when prompted. Now open magisk manager after installing the updated version and again pull down to refresh
5. Now you will be asked to download and flash the latest magisk version. Click on Install and when the next window comes choose "patch only the boot.img" option. Choose the image file that you have downloaded from the link in step 1 above
6. Wait until patching is complete. The patched image will be found in Download folder in your device. Copy this patched_boot.img to your PC in the same folder where you have extracted the Flash tool you used to flash the ROM
7. Reboot device to fastboot mode and flash patched_boot.img using
fastboot command ===> fastboot flash recovery_ramdisk patched_boot.img
Click to expand...
Click to collapse
8. Now issue command fastboot reboot. Quickly unplug USB cable and hold vol-up button. Now your device will be booted in to rooted ROM
Careful Note:
If you reboot your device normally, it boots in to non-rooted ROM.
To boot to rooted ROM, hold vol-up button until Huawei Logo appears while booting.
IF YOU HAVE PATCHED WITH LATEST MAGISK CANARY BUILD 18.2+, THEN YOU DON'T HAVE TO HOLD VOL UP BUTTON WHEN REBOOTING. JUST POWER YOUR DEVICE NORMALLY AND IT BOOTS IN TO ROOTED ROM
How to DOWNGRADE from EMUI 9.0 to EMUI 8.1 for ROOTED EMUI
1. Remove fingerpring, disable screenlock & password and app lock in Settings / Security & privacy. If you miss this step your device will be soft bricked.
2. Download from here / extract yourself EMUI 9.0 recovery_ramdisk from UPDATE.APP
RECOVERY_RAMDIS_195.img (EMUI 9.0 release 11.01.2019)
3. Flash this RECOVERY_RAMDIS_195.img in fastboot and restart your device normally.
Your device may boot in to eRecovery. Switch off and restart in to fastboot and flash this RECOVERY_RAMDIS_195.img again in fastboot
4. Folllow the steps explained in How to Flash section.
How to DOWNGRADE from EMUI 9.0 to EMUI 8.1 for Non-ROOTED EMUI
Folllow the steps explained in How to Flash section.
GENERAL TWEAKS
AdGuard DNS:
You can read here what is DNS and the goodies of changins it https://www.maketecheasier.com/best-alternate-dns-services/
If anyone wants to change DNS AdGuard which stops ads in browsing. Flash it in magisk. I have done two versions. Default version blocks ads but allows browsing explicit sites and Family Protection block every ads and also explicit contents.
Files attached are,
AdGuard_DNS_(Default).v0.zip
AdGuard_DNS_(Family_Protection).v0.zip
Removal of Apps via ADB command:
If anyone wants to remove bloatware (that you may consider bloat) follow the steps below,
Note: This command doesn't remove the app altogether from your device. It removes the app from the default user 0. To get the apps back, just factory reset your device.
1. Download and unzip ADB files [Link]
2. Make sure that you have enabled USB debugging from Settings / System / Developers options [google search and find how to enable Developer option]
3. Connect your phone to your PC. Go to the folder where you have extracted the file downloaded from step 1 above
4. Double click to run the file cmd-here.exe. It opens command prompt in the same folder where you are
5. Run the command, adb shell
6. Now you can start debloating the apps that you want to (see commands below)
pm uninstall -k --user 0 com.google.android.youtube [YouTube]
pm uninstall -k --user 0 com.android.egg [Easter Egg]
pm uninstall -k --user 0 com.huawei.gameassistant [Playstore Game]
pm uninstall -k --user 0 com.huawei.appmarket [Huawei App market]
pm uninstall -k --user 0 com.android.chrome [Google Chrome]
pm uninstall -k --user 0 com.google.android.apps.docs [
pm uninstall -k --user 0 com.google.android.apps.tachyon [Duo]
pm uninstall -k --user 0 com.android.email [Stock email]
pm uninstall -k --user 0 com.google.android.gm [Gmail]
pm uninstall -k --user 0 com.google.android.videos [Google Play Videos]
pm uninstall -k --user 0 com.google.android.music [Google Music]
pm uninstall -k --user 0 com.huawei.health [Huawei Health app]
pm uninstall -k --user 0 com.huawei.phoneservice [HiCare customer service app]
pm uninstall -k --user 0 com.android.soundrecorder [Stock sound recorder]
pm uninstall -k --user 0 com.huawei.hifolder [App Advisor]
pm uninstall -k --user 0 com.android.mediacenter [Huawei Music app]
pm uninstall -k --user 0 com.huawei.himovie.overseas [Huawei Video player]
pm uninstall -k --user 0 com.huawei.videoeditor [Huawei video editor]
pm uninstall -k --user 0 com.huawei.aod [Always on display]
pm uninstall -k --user 0 com.android.dreams.basic [Daydream]
pm uninstall -k --user 0 com.android.calculator2 [stock calculator]
pm uninstall -k --user 0 com.facebook.system [Facebook App Installer]
pm uninstall -k --user 0 com.facebook.appmanager [Facebook App manager]
pm uninstall -k --user 0 com.facebook.services [Facebook Services]
pm uninstall -k --user 0 com.huawei.android.FloatTasks [Navigation dock]
pm uninstall -k --user 0 com.huawei.livewallpaper.paradise [Paradise Wallpaper]
pm uninstall -k --user 0 com.huawei.android.thememanager [Themes]
If anyone find more debloats please share in this thread
Few debloats submitted by @moonshiner
pm uninstall -k --user 0 com.huawei.search
pm uninstall -k --user 0 com.huawei.hwid
pm uninstall -k --user 0 com.huawei.hitouch
pm uninstall -k --user 0 com.huawei.hidisk [files explorer]
pm uninstall -k --user 0 com.huawei.compass
Nice guide, thanks for the mention!
I should add I did not upload these files. They are from a link shared in the MOD EDIT: TELEGRAM LINK DELETED. Check it out as there's lots of useful information in there.
Oh man! Thanks for this! Just perfect! Loving it =)
dang, i flashed these files on my first day with the p20, on a unknown region (C605) and now i'm having to go through with this rebranding: https://forum.xda-developers.com/huawei-p20-pro/help/strange-rebrand-clt-l09-to-clt-29-c432-t3798978
never that easy, is it?
smohanv said:
Hi
Download Link:
CLICK HERE TO DOWNLOAD
Click to expand...
Click to collapse
Do you need to name the folder anything specific?
Or literally just download those files an put them into a random folder on your phone?
How does the script see them, just looking for some clarity on that.
I understand the process just not that step.
Cheers for the guide and for taking the time.
:good:
dladz said:
Do you need to name the folder anything specific?
Or literally just download those files an put them into a random folder on your phone?
How does the script see them, just looking for some clarity on that.
I understand the process just not that step.
Cheers for the guide and for taking the time.
:good:
Click to expand...
Click to collapse
Yes, Just put the Huru zip with the others files at same folder, the name doesnt matter.
You will Just install the Huru zip att custom recovery. =)
lfpecoraro said:
Yes, Just put the Huru zip with the others files at same folder, the name doesnt matter.
You will Just install the Huru zip att custom recovery. =)
Click to expand...
Click to collapse
Ah so you navigate and flash one at a time via twrp?
Thanks for clarifying
dladz said:
Ah so you navigate and flash one at a time via twrp?
Thanks for clarifying
Click to expand...
Click to collapse
You only select the HuRUpdater zip in twrp for flashing. The script automatically finds and flashes the other files.
Just make sure all the files are in the same folder (including HuRUpdater.zip). The folder can be called anything you want.
This stock ROM is very good and smooth. Any opinions?
Finally, received this via OTA
European model / Dual Sim (L29-C432)
is it normal to have " Chipset Boston 8.1.0.001 (011S3)" in build number ?
After the update I mean
any advantage of upgrading from 131 to 131a?
scook94 said:
any advantage of upgrading from 131 to 131a?
Click to expand...
Click to collapse
I flashed this yesterday. Honestly can't notice any difference. Build number still states 131...
Similarly I upgraded and don't see any difference, probably minor backend stuff. I think it's only really worth upgrading once a month when the new security patch comes. All the hassle for these small incremental updates isn't really worth it.
Hi guys, I have p20 pro l29 c432.
when I finished flashing huru.zip I reboot phone on twrp. Now phone is bricked
Can you help me please?
Matias94pl said:
Hi guys, I have p20 pro l29 c432.
when I finished flashing huru.zip I reboot phone on twrp. Now phone is bricked
Can you help me please?
Click to expand...
Click to collapse
Same here :/
stock rom starts but is stuck after selecting WiFi (skipping doesn't work, some security bla about the necessity to verify via google account), it's stuck in "just a sec..." forever.
eRecovery also doesn't work, saying "failed to get package info" whenever I try.
Anyone with a solution?
Infyrana said:
Same here :/
stock rom starts but is stuck after selecting WiFi (skipping doesn't work, some security bla about the necessity to verify via google account), it's stuck in "just a sec..." forever.
eRecovery also doesn't work, saying "failed to get package info" whenever I try.
Anyone with a solution?
Click to expand...
Click to collapse
Try to clean cache in erecovery and try again. Helped me with a different problem but maybe it works for you as well.
reppi said:
Try to clean cache in erecovery and try again. Helped me with a different problem but maybe it works for you as well.
Click to expand...
Click to collapse
Thanks, but I tried that already, otherwise it wouldn't even start to try getting the recovery package ..
Is debranding necessary to flash this ROM? I'm on CLT-L04 8.1.0.109(C792), been learning Huawei's intricacies but still not understanding the debranding thing and keep hearing it tossed around. Are the ROMs themselves region locked or something?
djparent said:
Is debranding necessary to flash this ROM? I'm on CLT-L04 8.1.0.109(C792), been learning Huawei's intricacies but still not understanding the debranding thing and keep hearing it tossed around. Are the ROMs themselves region locked or something?
Click to expand...
Click to collapse
Yes you do. You need to debrand.. Search for the thread in this Forum. You have to debrand to C432. Check your version from settings.

Disable a Bloatware Without ROOT?

Hi everyone, I'm trying to make an app with App Factory which can disable some Bloatwares with one tap without root but it's not working. I'm running LOS 15.1 Android 8.1 and tried to use "pm uninstall -k --user 0 package_name" command but no luck still needs root. I'm gonna use it on other devices running from Android Lollipop to Oreo so it must be working without root. Thanks in advance.

Cannot uninstall/disable com.huawei.search

Hello. I am running android oreo. EMUI 8.2 Oreo. I did execute the adb command to remove this one package : com.huawei.search. But on my home screen, I am still able to swipe down and the search bar is still there. I executed the command pm uninstall -k --user 0 com.huawei.search but it says failure. So it means that it has been removed and the hisearch shouldn't be there right? Can anyone help? The swipe down search bar is still there. Help. Thank you :crying:
jayazia1994 said:
So it means that it has been removed and the hisearch shouldn't be there right?
Click to expand...
Click to collapse
No. It means that it failed to remove that package. Some of the packages are essential and cannot be removed. Try using some other launcher...

[SOLVED] FindDevice may cause a boot loop?

Hello.
I uninstalled Find Device (pm uninstall -k --user 0 com.xiaomi.finddevice) to avoid its periodic enabling reminders.
However now sometimes "find device has been destroyed" appears as a toast. Also the Security Status in the Settings now crashes.
After finding this message (despite it is other phone model) I'm frightened about a future reboot of my phone. Can my phone really enter in a boot loop the next time I reboot? I have the miui optimization disabled, though.
I have tried to install it back, downloading the 9.0 apk, but it says INSTALL_FAILED_ALREADY_EXISTS. Using the "-r" switch also doesn't works ("com.xiaomi.finddevice is a persistent app. Persistent apps are not updateable"). I assume that this is due to haven't erased the app data (uninstalled with -k) but "pm clean" doesn't seems to clean it. I also have tried the -p option for partial installation, but returns a null exception.
Ah, my device is not rooted. MIUI Global 10.2 stable.
I managed to restore the application with the following adb command:
Code:
pm install-existing com.xiaomi.finddevice
It also works with applications uninstalled without "-k 0".
By the way, I used to use "pm disable", but now it seems it is called "pm disable-user".
So, next time I'll preferably use it instead of uninstalling, if works as expected.
Note that it doesn't allows to disable finddevice:
Code:
$ pm disable-user com.xiaomi.finddevice
Package com.xiaomi.finddevice new state: default
The package still continues in default state, unlike when it actually works:
Code:
$ pm disable-user com.miui.player
Package com.miui.player new state: disabled-user
Credits for these great discoverings to this blog post (eskerahn.dk/wordpress/?p=2462) [add the https prefix, I can't yet post urls!]
is there a any way to uninstall this application without trouble (without bootloop)?
i have the same question is there a any way to uninstall this application without trouble (without bootloop)?
If it doesn't boot, it's awesome tho.
Without modifying the vendor ROM image there is no way to get rid of it.

[GUIDE] Apps safe to remove

Hello guys.
As you may know, there is a way to uninstall system apps whithout root, as described here. Is a 'generic' guide, so I'll not enter on details on it. I used this guide, and sucessfully debloated my Note 8.
Here is my list:
Code:
android.autoinstalls.config.Xiaomi.ginkgo
com.android.browser
com.android.calendar
com.android.soundrecorder
com.facebook.appmanager
com.facebook.services
com.facebook.system
com.google.android.apps.docs
com.google.android.apps.maps
com.google.android.apps.photos
com.google.android.apps.tachyon
com.google.android.apps.wellbeing
com.google.android.gm
com.google.android.googlequicksearchbox
com.google.android.marvin.talkback
com.google.android.music
com.google.android.tts
com.google.android.videos
com.google.ar.lens
com.mi.android.globalminusscreen
com.micredit.in
com.milink.service
com.mipay.wallet.id
com.mipay.wallet.in
com.miui.backup
com.miui.cleanmaster
com.miui.cloudbackup
com.miui.compass
com.miui.notes
com.miui.player
com.miui.screenrecorder
com.miui.userguide
com.miui.videoplayer
com.miui.weather2
com.miui.yellowpage
com.netflix.partner.activation
com.tencent.soter.soterserver
com.xiaomi.midrop
com.xiaomi.payment
com.xiaomi.scanner
Some advices: DO NOT uninstall cloud services if you want to use "Find My Phone". Also, DO NOT uninstall an app if you are unsure about it.
If you want a really clean device, I recommend to turn off your phone, take out the SIM card, turn on again and restore to factory defaults. Then, do the initial setup WITHOUT connecting to any network. By this way, you'll avoid any unwanted app to get updated automatically, PLUS avoinding initial installation of some apps like Facebook and Netflix (by uninstalling android.autoinstalls.config.Xiaomi.ginkgo). I'm using my phone for a week, without problems.
TIP 01: if you want to get the entire list, open an adb prompt on your computer, as described on list bellow, and use the following command:
Code:
adb shell pm list packages > list.txt
. Then, open the file list.txt on notepad.
TIP 02: MIUI isn't good to work with a Google App profile. But, if you need to use it, you need to uninstall the apps for this profile also. Setup you profile, and just after disconnect from any network. Then, go to adb command prompt and type
Code:
adb shell pm list users
. Press ENTER and you will get a list of 'users' on your phone, like:
Code:
Users:
UserInfo{0:Proprietário:13} running
UserInfo{12:security space:13} running
The first number is what you need. Just change the '0' (zero) on the commands for uninstall for the number you get (in case above, 12). A NOTE: for me is 12 because I'm using built-in Second Space feature to handle my work profile (and I recommend you to do the same), so the number for you maybe will be different.
See ya!
very nice list. i'm a bitt scared about removing com.mi.android.globalminusscreen. do you know what it is?
augugusto said:
very nice list. i'm a bitt scared about removing com.mi.android.globalminusscreen. do you know what it is?
Click to expand...
Click to collapse
App Vault, it's just used in stock launcher.
what about com.miui.securitycenter?
augugusto said:
what about com.miui.securitycenter?
Click to expand...
Click to collapse
It's an essential part of Miui system to work, you will get bootloop if you remove it completely (device won't boot).
Anyway this method doesn't remove any app completely so you would need root to achieve it, just the data user is wiped in a way that you no longer can't interact with the app. But with Miui Security Center you will have forced close for some apps and you won't access to some functions in settings.
Thanks! I found a few more "services" that I didn't like in this list.
https://medium.com/@mail.anonymous....devices-via-android-debug-bridge-2e5bcd94dfa0
What happens if I remove the default messaging app?
AppaDambis said:
What happens if I remove the default messaging app?
Click to expand...
Click to collapse
Unless you have another messaging app you won't be able to send messages............

Categories

Resources