No-Root : How to deboat using adb or other tools? - Redmi K20 / Xiaomi Mi 9T Questions & Answers

I need to remove some uninstallable apps like YouTube, MI Music, MI Share, MI Pay, etc.
Which tool or method should I use to uninstall these? I heard there is some ADB tool by connecting phone to PC using USB. But I dont know the details.

Google is your friend. Since adb commands are common to all Android phones, you can find the guides elswehere, including various threads and posts here on XDA
Search, read, learn about the pairs of commands:
adb shell pm disable-user
com.google.android.youtube
adb shell pm enable com.google.android.youtube
or:
adb shell pm uninstall -k --user 0 com.google.android.youtube
adb shell cmd package install-existing com.google.android.youtube
Here, com.google.android.youtube
is the package name for YT, hence given example is to disable/enable YT

debloat

yaro666 said:
debloat
Click to expand...
Click to collapse
Hi Thanks but there is no EXE in the link, so how to launch the application?

DOWNLOAD
And read FAQ, like literally there is an instruction

Related

Any package disabler without root?

I really dont want to root. Coming from a smasung device we were able to use package disable to disable system app etc. Any app avail for oneplus that DOES NOT require rooot?
eduardmc said:
I really dont want to root. Coming from a smasung device we were able to use package disable to disable system app etc. Any app avail for oneplus that DOES NOT require rooot?
Click to expand...
Click to collapse
Unlike the bloat known as Samsung you really don't need to disable apps forcefully to alter the performance of the device. Perhaps just disable Google Play Movies and whatnot through the factory settings. and the few other applications that are preloaded Google apps that you may not use.
I've owned a few Samsung phones in the past so I know what you mean (and currently still have a Galaxy Tab S3 using said app). On a device like the Tab S3, yes it 100% was worth disabling stuff to speed up the device. Not necessary on the OnePlus. There really isn't much "bloat."
Lastly, common misconception is I'll get more storage space by removing system applications. You're not gaining any space on your DATA partition but rather on your SYSTEM partition should you forcefully uninstall (which requires root anyways to do so).
Enjoy the device! :good:
Nosferatu. said:
Unlike the bloat known as Samsung you really don't need to disable apps forcefully to alter the performance of the device. Perhaps just disable Google Play Movies and whatnot through the factory settings. and the few other applications that are preloaded Google apps that you may not use.
I've owned a few Samsung phones in the past so I know what you mean (and currently still have a Galaxy Tab S3 using said app). On a device like the Tab S3, yes it 100% was worth disabling stuff to speed up the device. Not necessary on the OnePlus. There really isn't much "bloat."
Lastly, common misconception is I'll get more storage space by removing system applications. You're not gaining any space on your DATA partition but rather on your SYSTEM partition should you forcefully uninstall (which requires root anyways to do so).
Enjoy the device! :good:
Click to expand...
Click to collapse
Im not looking for perfomance. Just to freeze and hide apps from my phones ???
You can do this without root easily. Enable dev opts, then use adb..
Code:
pm uninstall -k --user 0 <name of package>
If you dont know the package name, you can use
Code:
pm list packages -d
eduardmc said:
Im not looking for perfomance. Just to freeze and hide apps from my phones ??
Click to expand...
Click to collapse
Find me one app you NEED to disable that you cannot from the factory settings app lol
eduardmc said:
I really dont want to root. Coming from a smasung device we were able to use package disable to disable system app etc. Any app avail for oneplus that DOES NOT require rooot?
Click to expand...
Click to collapse
I tried using App Freezer:
https://play.google.com/store/apps/details?id=com.wakasoftware.appfreezer&hl=en_US
It's supposed to work on most Android devices,not just user specific ones.
I couldn't get it to work,kept getting an "Accounts need to be removed" message when using ADB to do the initial set-up.
I even went as far as removing the OnePlus account app,even though I'd never logged-in to it & I still got the error.
I pinged the developer,they didn't have much to offer except to factory reset & try again,or use on a rooted device,which doesn't require ADB set-up.
____________________________________________________________________________________________________________________________________________________
Nosferatu. said:
Find me one app you NEED to disable that you cannot from the factory settings app lol
Click to expand...
Click to collapse
Anything with "logkit" or similar is worthy of getting rid of,ditto for the OnePlus account app,backup/etc...
Bug Report Lite
BackupRestoreRemoteService
com.oem.logkitsdservice
com.tmobile.pr.adapt (T-Mobile version)
NVBackupUI
OnePlusAccount
OnePlus System Service
OnePlusLogKit
Push
I also user uninstalled an app that had something mentioning TenCent in the package name,I can't seem to find it now...
Naturally,if one uses any of these services,leave 'em alone.
AFAICT,I'm not experiencing any undesired effects from removing these via ADB (I'm still stock/unrooted).
If anything critical turns out to be broken by removing the above apps,I'll be more that happy to edit/update with explanatory notes.
Nosferatu. said:
Find me one app you NEED to disable that you cannot from the factory settings app lol
Click to expand...
Click to collapse
That would be anything you dont like or want in /system/app or /system/priv-app
KOLIOSIS said:
I tried using App Freezer:
https://play.google.com/store/apps/details?id=com.wakasoftware.appfreezer&hl=en_US
It's supposed to work on most Android devices,not just user specific ones.
I couldn't get it to work,kept getting an "Accounts need to be removed" message when using ADB to do the initial set-up.
I even went as far as removing the OnePlus account app,even though I'd never logged-in to it & I still got the error.
I pinged the developer,they didn't have much to offer except to factory reset & try again,or use on a rooted device,which doesn't require ADB set-up.
____________________________________________________________________________________________________________________________________________________
Anything with "logkit" or similar is worthy of getting rid of,ditto for the OnePlus account app,backup/etc...
Bug Report Lite
BackupRestoreRemoteService
com.oem.logkitsdservice
com.tmobile.pr.adapt (T-Mobile version)
NVBackupUI
OnePlusAccount
OnePlus System Service
OnePlusLogKit
Push
I also user uninstalled an app that had something mentioning TenCent in the package name,I can't seem to find it now...
Naturally,if one uses any of these services,leave 'em alone.
AFAICT,I'm not experiencing any undesired effects from removing these via ADB (I'm still stock/unrooted).
If anything critical turns out to be broken by removing the above apps,I'll be more that happy to edit/update with explanatory notes.
Click to expand...
Click to collapse
...and removing these adds zero benefits to performance of the device.
If it's security you are worried about I suggest you just quit the internet lol
Nosferatu. said:
...and removing these adds zero benefits to performance of the device.
If it's security you are worried about I suggest you just quit the internet lol
Click to expand...
Click to collapse
You're on a roll this morning,ain't ya?
To counterpoint,it hurts nothing to remove certain packages.
If you're comfortable with your care-free attitude with your internet/data usage,more power to ya.
Yeah,thanks for the suggestion & after serious consideration,I respectfully decline.
While it is true that removing/disabling APKs in /system doesn't free up any space in /data (not sure how anyone would think that, but ok...) it could free up RAM that these APKs were using. Now, would that really make a difference in performance? Probably not at all. And with 6/8gb RAM, you wont likely run out and need more RAM freed up.
The OP asked how to remove/disable apps without root. Clearly he wishes to do so, regardless of any of our opinions. Let's try to remember that.
KOLIOSIS said:
You're on a roll this morning,ain't ya?
To counterpoint,it hurts nothing to remove certain packages.
If you're comfortable with your care-free attitude with your internet/data usage,more power to ya.
Yeah,thanks for the suggestion & after serious consideration,I respectfully decline.
Click to expand...
Click to collapse
I guess I am on a roll...:silly:
I've given my feedback (aka it's really un-necessary on a OP device) but I'll step out at this point. :good:
I used to use the following adb commands on my OP3...Should be similar for the OP6T..."pm list packages -d" can be used to find more or 6T specific ones...
Code:
adb shell pm uninstall -k --user 0 cn.oneplus.photos
adb shell pm uninstall -k --user 0 com.android.chrome
adb shell pm uninstall -k --user 0 com.android.engineeringmode
adb shell pm uninstall -k --user 0 com.android.engineeringmode.specialtest
adb shell pm uninstall -k --user 0 com.example.wifirftest
adb shell pm uninstall -k --user 0 com.fingerprints.fingerprintsensortest
adb shell pm uninstall -k --user 0 com.oem.logkitsdservice
adb shell pm uninstall -k --user 0 com.oem.nfc
adb shell pm uninstall -k --user 0 com.oem.oemlogkit
adb shell pm uninstall -k --user 0 com.oneplus.account
adb shell pm uninstall -k --user 0 com.oneplus.backuprestore
adb shell pm uninstall -k --user 0 com.oneplus.clipboard
adb shell pm uninstall -k --user 0 com.oneplus.factorymode
adb shell pm uninstall -k --user 0 com.oneplus.factorymode.specialtest
adb shell pm uninstall -k --user 0 com.oneplus.gallery
adb shell pm uninstall -k --user 0 com.oneplus.iconpack.dives
adb shell pm uninstall -k --user 0 com.oneplus.iconpack.o2default #Switching back to system default automatically
adb shell pm uninstall -k --user 0 com.oneplus.iconpack.rifon
adb shell pm uninstall -k --user 0 com.oneplus.opbugreport
adb shell pm uninstall -k --user 0 com.oneplus.opbugreportlite
adb shell pm uninstall -k --user 0 cn.oneplus.nvbackup
adb shell pm uninstall -k --user 0 net.oneplus.widget
adb shell pm uninstall -k --user 0 com.oem.logkitsdservice
adb shell pm uninstall -k --user 0 com.oppo.bttestmode
adb shell pm uninstall -k --user 0 com.yulore.framework
adb shell pm uninstall -k --user 0 net.oneplus.odm
adb shell pm uninstall -k --user 0 net.oneplus.odm.provider
adb shell pm uninstall -k --user 0 net.oneplus.provider.appcategoryprovider
adb shell pm uninstall -k --user 0 net.oneplus.push
#Unused Google apps:
pm uninstall -k --user 0 com.google.android.apps.docs #Google drive
pm uninstall -k --user 0 com.google.android.apps.photos #Google photos
pm uninstall -k --user 0 com.google.android.apps.tachyon #Google duo
pm uninstall -k --user 0 com.google.android.googlequicksearchbox #Google app
adb shell pm uninstall -k --user 0 com.google.android.marvin.talkback
pm uninstall -k --user 0 com.google.android.music
pm uninstall -k --user 0 com.google.android.videos
pm uninstall -k --user 0 com.google.android.youtube
#Unused other apps:
adb shell pm uninstall -k --user 0 com.android.mms #using QKSMS, android messenger not needed
adb shell pm uninstall -k --user 0 net.oneplus.launcher #Replaced by Nova Launcher
SidMAX said:
I used to use the following adb commands on my OP3...Should be similar for the OP6T..."pm list packages -d" can be used to find more or 6T specific ones...
Click to expand...
Click to collapse
As described in post #4.

Adb commands to uninstall bloatware

hi can anyone post adb commands to uninstall bloat or apps like facebook,one drive etc
abhijeetn said:
hi can anyone post adb commands to uninstall bloat or apps like facebook,one drive etc
Click to expand...
Click to collapse
adb devices ---> Identify if device is connected.
adb shell ---> To enter commands.
pm uninstall -k --user 0 "X" ---> X is app location (i use App Aplication Info to get it)
cmd package install-existing "X" ---> If you f*cked up and have to reinstall what you deleted.

Rooted Fire HD 10 (7th gen) with 5.3.7.0, custom rom/launcher possible?

Really, I'm just trying to get my Fire 10 to be more like stock android. I was able to root it using Kingoroot but I'm unsure where to go from here as far as installing a custom rom like LineageOS, or if that's not possible, disabling as much of the Fire-related stuff and running a custom launcher. Can anyone point me in the right direction? Thank you!
Squirrlz said:
Really, I'm just trying to get my Fire 10 to be more like stock android. I was able to root it using Kingoroot but I'm unsure where to go from here as far as installing a custom rom like LineageOS, or if that's not possible, disabling as much of the Fire-related stuff and running a custom launcher. Can anyone point me in the right direction? Thank you!
Click to expand...
Click to collapse
Unlock and root using exploit package (follow the steps carefully):
https://forum.xda-developers.com/hd8-hd10/orig-development/unlock-fire-hd-10-2017-suez-t3913639
Custom ROM (can you install via TWRP):
5.1 Lollipop: https://forum.xda-developers.com/hd8-hd10/orig-development/rom-lineage-12-1-t3953677
7.1 Nougat: https://forum.xda-developers.com/hd8-hd10/orig-development/rom-lineage-14-1-t3973703
Disable Amazon launcher and OTA via ADB (You have an another launcher installed on it):
Code:
//Amazon launcher
adb shell pm disable-user --user 0 com.amazon.firelauncher
//OTA apps
adb shell pm disable-user --user 0 com.amazon.device.software.ota
adb shell pm disable-user --user 0 com.amazon.device.software.ota.override
adb shell pm disable-user --user 0 com.amazon.settings.systemupdates
adb shell pm disable-user --user 0 com.amazon.kindle.otter.oobe.forced.ota
//Others
adb shell pm disable-user--user 0 com.amazon.dcp.contracts.library
AmznUser444 Dev said:
Unlock and root using exploit package (follow the steps carefully):
https://forum.xda-developers.com/hd8-hd10/orig-development/unlock-fire-hd-10-2017-suez-t3913639
Custom ROM (can you install via TWRP):
5.1 Lollipop: https://forum.xda-developers.com/hd8-hd10/orig-development/rom-lineage-12-1-t3953677
7.1 Nougat: https://forum.xda-developers.com/hd8-hd10/orig-development/rom-lineage-14-1-t3973703
Disable Amazon launcher and OTA via ADB (You have an another launcher installed on it):
Click to expand...
Click to collapse
After installation of Lineage OS, is it still necessary to go through the disable OTA steps (or would all the amazon OTA stuff have been overwritten)?
AmznUser444 Dev said:
Unlock and root using exploit package (follow the steps carefully):
https://forum.xda-developers.com/hd8-hd10/orig-development/unlock-fire-hd-10-2017-suez-t3913639
Custom ROM (can you install via TWRP):
5.1 Lollipop: https://forum.xda-developers.com/hd8-hd10/orig-development/rom-lineage-12-1-t3953677
7.1 Nougat: https://forum.xda-developers.com/hd8-hd10/orig-development/rom-lineage-14-1-t3973703
Disable Amazon launcher and OTA via ADB (You have an another launcher installed on it):
Code:
//Amazon launcher
adb shell pm disable-user --user 0 com.amazon.firelauncher
//OTA apps
adb shell pm disable-user --user 0 com.amazon.device.software.ota
adb shell pm disable-user --user 0 com.amazon.device.software.ota.override
adb shell pm disable-user --user 0 com.amazon.settings.systemupdates
adb shell pm disable-user --user 0 com.amazon.kindle.otter.oobe.forced.ota
//Others
adb shell pm disable-user--user 0 com.amazon.dcp.contracts.library
Click to expand...
Click to collapse
Is it actually still possible to follow that procedure for installing a custom rom through TWRP since I am on the latest FW OTA update (5.3.7.0)? Is it still possible to do the downgrade step?
Once rooted and in custom rom, can a kid still use Freetime app as a standalone app?
greenlndr said:
Once rooted and in custom rom, can a kid still use Freetime app as a standalone app?
Click to expand...
Click to collapse
I have not tried it, but it is available in the playstore to install as a stand alone app. I dont see any reason why it wouldn't work.
AmznUser444 Dev said:
Unlock and root using exploit package (follow the steps carefully):
https://forum.xda-developers.com/hd8-hd10/orig-development/unlock-fire-hd-10-2017-suez-t3913639
Click to expand...
Click to collapse
I don't think this works with 5.3.7? Or I'm missing something? It fails on the step-1.sh script due to incompatibility with the mtk-su script? Is there a work-around?
~~
epeace said:
I don't think this works with 5.3.7? Or I'm missing something? It fails on the step-1.sh script due to incompatibility with the mtk-su script? Is there a work-around?
~~
Click to expand...
Click to collapse
Should be ok... Or you can do the shorting method... Confirmed on 5.3.7.0
Post #1065
https://forum.xda-developers.com/hd.../unlock-fire-hd-10-2017-suez-t3913639/page107
Oh, wow, thanks. How did this not come up in searching? I think I'm rooted now. Thanks again.

Safely to remove with adb?

Hello!
I have Mi 9T 6/64 non rooted with 11.0.5 stable global rom.
With adb I uninstalled some of the programs, but I need confirmation if I may remove App Vault, because it's deeply integrated into system settings?
I have ebank app with NFC and it's working fine, I wonder if I may remove Mi Pay and Mi credit because they have some connections with NFC.
jazzh said:
Hello!
I have Mi 9T 6/64 non rooted with 11.0.5 stable global rom.
With adb I uninstalled some of the programs, but I need confirmation if I may remove App Vault, because it's deeply integrated into system settings?
I have ebank app with NFC and it's working fine, I wonder if I may remove Mi Pay and Mi credit because they have some connections with NFC.
Click to expand...
Click to collapse
In Settings/Apps, Uninstall updates for App Vault, disable its auto-updates in Google Play and disable the app by ADB (yes, it's safe):
adb shell pm disable-user com.mi.android.globalminusscreen
zgfg said:
In Settings/Apps, Uninstall updates for App Vault, disable its auto-updates in Google Play and disable the app by ADB (yes, it's safe):
adb shell pm disable-user com.mi.android.globalminusscreen
Click to expand...
Click to collapse
Thx. What about Mi pay and Mi credit?
jazzh said:
Thx. What about Mi pay and Mi credit?
Click to expand...
Click to collapse
You can disable them - I just did but not by adb but by renaming apps to *.apk, everthing works fine.
However, I don't know would it affect (I don't believe so) Google Pay, you must test
But before you do it, please give me a small favour:
Install an app like ApkInspector (from Google Play), and please tell me the path and the name for MiCredit app - I renamed it to *.bak and now cannot find it
The path is
data/app/MiCreditInStub/MiCređitInStub.apk
jazzh said:
The path is
data/app/MiCreditInStub/MiCreditInStub.apk
Click to expand...
Click to collapse
Thanks. Strange.
I had renamed
data/app/MiCreditInStub/MiCreditInStub.apk
to
data/app/MiCreditInStub/MiCreditInStub.bak
and after rebooting I was searching for
su
chdir /data/app
du -a | grep credit
du -a | grep bak
but did not found.
Now when you gave me the full path/name I see that I don't have the folder MiCreditInStub under /data/app anymore?!
Anyway, MiCredit app is for India only for instant loans in rupies of up to cca 1320 USD:
https://www.jainishshah.in/mi-credit-instant-personal-loan-app-from-xiaomi/
Apparently, the app is also available from Google Play, but only in India:
https://www.jainishshah.in/mi-credit-instant-personal-loan-app-from-xiaomi/
/system/app/InMipay/InMipay.app
is also for India only:
https://www.financialexpress.com/in...ia-through-mi-pay-app-details-inside/1939555/
Btw, I have QFJEUXM, not QFJINXM - so why Xiaomi did not remove them from the firmware?!
Both the two from above plus the third
/system/app/IdMipay/IdMipay.app
can be safely removed:
https://forum.xda-developers.com/showpost.php?p=77706117&postcount=60
Instead of removing or renaming to bak (root or TWRP required), better use adb:
adb shell pm disable-user com.mipay.wallet.id
adb shell pm disable-user com.mipay.wallet.in
adb shell pm disable-user com.micredit.in
zgfg said:
Instead of removing or renaming to bak (root or TWRP required), better use adb:
adb shell pm disable-user com.mipay.wallet.id
adb shell pm disable-user com.mipay.wallet.in
adb shell pm disable-user com.micredit.in
Click to expand...
Click to collapse
I did so, thanks
jazzh said:
I did so, thanks
Click to expand...
Click to collapse
Did you also remove MiCoin:
com.xiaomi.payment
/system/app/PaymentService/PaymentService.apk
I did, everything ok so far

remove apps with adb

how do i remove apps with adb there is a few id like to remove
leo5111 said:
how do i remove apps with adb there is a few id like to remove
Click to expand...
Click to collapse
adb shell pm list packages to see what's installed.
adb shell pm list packages | grep <search term> to search for something specific.
adb shell pm uninstall -k --user 0 <name of package> to remove an app.
Here's a list of google and OnePlus apps.
leo5111 said:
how do i remove apps with adb there is a few id like to remove
Click to expand...
Click to collapse
If you prefer a GUI, you may like ADB App Control by Cyber.Cat. It's free for basic version and cheap to unlock the extras. It works on everything Android that I've tried it on.
the program did it, thanks

Categories

Resources