{"id":20098533,"url":"https://github.com/pinaki82/adb-shell-android-bloatware-removal","last_synced_at":"2025-03-02T16:30:00.605Z","repository":{"id":167521143,"uuid":"457313924","full_name":"Pinaki82/adb-shell-android-bloatware-removal","owner":"Pinaki82","description":"Delete Bloatware and Install Apps on Android via Android Debug Bridge (ADB)","archived":false,"fork":false,"pushed_at":"2025-01-26T19:02:38.000Z","size":3669,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T20:18:37.692Z","etag":null,"topics":["android-debug-bridge","app-installation","bloatware-removal"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pinaki82.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-09T10:37:01.000Z","updated_at":"2025-01-26T19:02:42.000Z","dependencies_parsed_at":"2023-05-22T19:00:25.731Z","dependency_job_id":null,"html_url":"https://github.com/Pinaki82/adb-shell-android-bloatware-removal","commit_stats":null,"previous_names":["pinaki82/adb-shell-android-bloatware-removal"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pinaki82%2Fadb-shell-android-bloatware-removal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pinaki82%2Fadb-shell-android-bloatware-removal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pinaki82%2Fadb-shell-android-bloatware-removal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pinaki82%2Fadb-shell-android-bloatware-removal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pinaki82","download_url":"https://codeload.github.com/Pinaki82/adb-shell-android-bloatware-removal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241536767,"owners_count":19978399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-debug-bridge","app-installation","bloatware-removal"],"created_at":"2024-11-13T17:04:14.759Z","updated_at":"2025-03-02T16:30:00.597Z","avatar_url":"https://github.com/Pinaki82.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Delete Bloatware and Install Apps on Android via Android Debug Bridge (ADB)\n\nDo you need the ADB shell to install apps on your phone when anyone can easily check the option to 'allow installation from unknown sources' and use the phone browser to download APK files? The short answer is, Yes.\n\nThe Reason:\n\nGoogle accounts enrolled in Google's Advanced Protection Program have limited choices of app installation from different sources due to security reasons. On the other hand, some people prefer libre and open source applications for security. Open source projects are usually secure due to the nature of their publicly auditable source code. F-Droid is a repository that hosts such Android applications. Apps on F-Droid are compiled from the source code on their server, so those apps are secure. Here's the catch. Google won't allow users of Advanced Protection Program enrolled accounts to install any other app store on their devices. The phones of those users won't have any effect on having the button 'allow installation from unknown sources' checked either. Here comes another question. Will F-Droid be able to install apps on those phones even though F-Droid can be installed from the PC using the ADB shell? No. Possibly, F-Droid won't be allowed to update apps that are also available on both the app stores (Google Play Store). However, F-Droid is a treasure of information to know alternative open-source applications. Find an app on F-Droid, then search for it on Play Store. The ADB shell will be the last resort to get an app on the phone after downloading the app from F-Droid's repository, only if it's unavailable in Google Play Store.\n\n'I'm not impressed. My Google account is not enrolled in Advanced Protection Program. Do I really need the ADB shell anyway? ' Yes. In case you want to get rid of sticky bloatware supplied by the phone vendor. Those sticky apps are irremovable. The regular uninstallation method won't do the trick.\n\nThus, knowing to use the ADB shell is a plus.\n\nWhat you need:\n\n1. A computer. It can be a Windows or a Linux computer.\n\n2. An Android device (phone/tablet/Android-powered eReader etc.).\n\n3. 15 minutes of patience.\n\nRef:\n\nGoogle: how to sideload apps using the adb\n\nhttps://www.lifewire.com/how-to-sideload-android-apps-4689188\n\nGoogle: uninstall apps from the adb shell\n\nhttps://www.droidwin.com/remove-uninstall-bloatware-apps-from-android-via-adb-commands/\n\n\u003e Fun Factor: Turning on USB Debugging is not Jailbreaking. You aren't going to Root your phone. (^_^)\n\n**If you are looking for a tutorial to root your phone, you should look somewhere else.**\n\nI never suggest people to ROOT their phones. It's a clear threat to security.\n\n## Part 1:\n\n#### Windows:\n\nDownload the ADB from Google:\n https://dl.google.com/android/repository/platform-tools-latest-windows.zip\n\nUnpack the zip archive with 7-Zip (*use only 7Z).\n\n##### Registry Patch:\n\nYou'll need a registry patch so that you can open the Windows command prompt inside a folder from a simple Right-Click context menu.\n\nFilename:\n\n```\nTerminalHere.reg\n```\n\n```\nWindows Registry Editor Version 5.00\n\n; Open CMD Here\n; 'Open Terminal Here' MS equivalent\n\n; https://github.com/microsoft/terminal/issues/1060\n; https://stackoverflow.com/questions/27632612/comment-in-reg-file\n; https://docs.microsoft.com/en-us/previous-versions/windows/embedded/gg469889(v=winembedded.80)?redirectedfrom=MSDN\n\n[HKEY_CURRENT_USER\\Software\\Classes\\Directory\\Background\\shell\\Open CMD Here\\command]\n@=\"C:\\\\Windows\\\\system32\\\\cmd.exe\"\n\n[HKEY_CURRENT_USER\\Software\\Classes\\Directory\\Background\\shell\\Open CMD Here]\n@=\"Open CMD Here\"\n\"Icon\"=\"%WINDIR%\\\\system32\\\\cmd.exe\"\n```\n\n#### *-Ubuntu:\n\n```\nsudo apt install android-tools-adb\n```\n\nThe two core aspects of installing/uninstalling apps from the ADB shell:\n\n1. Developer Mode.\n2. USB Debugging.\n\n## Part 2:\n\n#### On the phone:\n\n**Settings App** -\u003e **About Phone** -\u003e **MIUI Version** -\u003e **Tap 7 Times**\n\nYou'll get a warning that looks like, 'You're 4 steps away from putting your phone into developer mode', after three consecutive taps.\n\n\u003e You're 4 steps away from putting your phone into developer mode\n\nRef: https://www.getdroidtips.com/enable-option-usb-debugging-redmi-4-4x/\n\nGoogle: toggle developer mode redmi 4\n\n**NOTE:** Connect your device to the internet. Otherwise, Xiaomi Corporation Inc. won't let you turn on USB Debugging.\n\n![ADB-devel-0001](https://user-images.githubusercontent.com/16861933/153182956-93326aa7-108a-49c9-8f84-1ee0f00548ce.jpg)\n\nTurn on USB Debugging from the Developer Options.\n\n**Settings App** -\u003e **System Settings** -\u003e **Additional Settings** -\u003e **Developer Options** -\u003e **DEBUGGING** -\u003e **USB Debugging**, **Install via USB**, \u0026 **Verify apps installed over the USB**.\n\n![ADB-devel-0002](https://user-images.githubusercontent.com/16861933/153183217-f282a105-1aa4-40b1-a96d-ececa0a6fd49.jpg)\n\n![ADB-devel-0003](https://user-images.githubusercontent.com/16861933/153183308-e605979d-5f37-45cd-a9d9-4c1290ac053d.jpg)\n\n![ADB-devel-0004](https://user-images.githubusercontent.com/16861933/153183370-537ec2f5-77a4-42d1-a77a-9c61721c35bb.jpg)\n\n![ADB-devel-0005](https://user-images.githubusercontent.com/16861933/153183421-11e04519-8e2e-43d1-ade0-3ab4b553a8a6.jpg)\n\n![ADB-devel-0006](https://user-images.githubusercontent.com/16861933/153183488-4fda7c93-861e-4a26-b6de-3c5143f5e413.jpg)\n\n## Part 3:\n\nPC Side:\n\nRight-click inside the extracted folder 'platform-tools_rxx.x.x-windows\\platform-tools' and choose to open a command prompt window there.\n\n#### CMD:\n\n```\nO:\\platform-tools_r32.0.0-windows\\platform-tools\u003els\nAdbWinApi.dll     adb.exe          fastboot.exe         make_f2fs.exe           mke2fs.exe         systrace\nAdbWinUsbApi.dll  dmtracedump.exe  hprof-conv.exe       make_f2fs_casefold.exe  source.properties\nNOTICE.txt        etc1tool.exe     libwinpthread-1.dll  mke2fs.conf             sqlite3.exe\n```\n\nThe `ls` command worked on my PC because I have MSYS2 installed on my system. And also, MSYS2 'bin' directories are added to the system path on my system.\n\n```\nC:\\msys64\\usr\\bin\nC:\\msys64\\usr\\x86_64-pc-msys\\bin\nC:\\msys64\nC:\\msys64\\mingw64\\bin\nC:\\msys64\\opt\\node-v14.17.6-win-x64\n```\n\nNot everyone needs MSYS2. So, for now, stick to the more common Windows command: `dir`.\n\n## Part 4:\n\n#### The Next Step\n\n```\nadb devices\n```\n\nAllow USB Debugging from the phone. Or else, you'll see that the connected device is unauthorised, and you won't be able to install/uninstall anything on your phone from your PC's terminal.\nSee the outputs below:\n\n```\nO:\\platform-tools_r32.0.0-windows\\platform-tools\u003eadb devices\n* daemon not running; starting now at tcp:5037\n* daemon started successfully\nList of devices attached\nxxxyyywwwzzz    unauthorized\n```\n\n```\nO:\\platform-tools_r32.0.0-windows\\platform-tools\u003eadb install \"C:\\Users\\YourUserName\\Downloads\\F-Droid.apk\"\nPerforming Streamed Install\nadb: failed to install F-Droid.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user]\n```\n\nAfter authorising USB Debugging from the phone, the output will look something like this:\n\n```\nO:\\platform-tools_r32.0.0-windows\\platform-tools\u003eadb devices\nList of devices attached\nxxxyyywwwzzz    device\n```\n\n## Part 5:\n\n\u003e NOTE: Don't ever install APK files downloaded from anywhere other than the F-Droid's repository. Any other third-party app stores are also not beyond scepticism. Even Google Play Store is a mixed bag. There is no shortage of malicious apps found on Google's own app store. Play Store comes preinstalled, so it is deemed secure by android users.\n\n## App Installation:\n\nNow you can install any app from the terminal. **Important:** Be sure to authorise the installation from the PC to the phone on the phone side. You'll see that a dialogue box appears on your phone asking your permission to allow the connected PC to perform the installation.\n\nExamples:\n\n```\nadb install Your_app.apk\n```\n\n```\nadb install F-Droid.apk\n```\n\n```\nadb install \"C:\\Users\\YourUserName\\Downloads\\F-Droid.apk\"\n```\n\nIf everything goes well, you'll be greeted with the 'success' message.\n\n```\nPerforming Streamed Install...\nSuccess\n```\n\nExample:\n\n```\nO:\\platform-tools_r32.0.0-windows\\platform-tools\u003eadb install \"C:\\Users\\YourUserName\\Downloads\\F-Droid.apk\"\nPerforming Streamed Install\nSuccess\n```\n\n## Part 6:\n\n## App Uninstallation:\n\n```\nadb shell\n```\n\nKnow the packages installed on your phone.\n\n```\nadb shell cmd package list packages -s\n```\n\nTake a backup:\n\n```\nadb shell cmd package list packages -s \u003e \"%USERPROFILE%\\Documents\\SystemApps.txt\"\n```\n\nFor older versions of Android:\n\n```\npm list packages -s\n```\n\nHere's the output I received.\n\nDepending on the phone and the apps installed on your phone, you may see something else. I try new applications and sometimes uninstall apps I don't need. So, the list may grow or shrink in the future. That's not something to be considered permanent. However, the output below will give us an overview of what it looks like from the ADB Shell.\n\n```\npackage:com.miui.screenrecorder\npackage:com.android.cts.priv.ctsshim\npackage:com.google.android.youtube\npackage:com.qualcomm.qti.auth.sampleextauthservice\npackage:com.google.android.ext.services\npackage:com.android.providers.telephony\npackage:com.miui.powerkeeper\npackage:com.xiaomi.miplay_client\npackage:com.google.android.googlequicksearchbox\npackage:com.miui.fm\npackage:com.android.providers.calendar\npackage:com.android.providers.media\npackage:com.milink.service\npackage:com.qti.service.colorservice\npackage:com.google.android.onetimeinitializer\npackage:com.google.android.ext.shared\npackage:com.xiaomi.powerchecker\npackage:com.xiaomi.account\npackage:com.qualcomm.shutdownlistner\npackage:com.android.wallpapercropper\npackage:com.quicinc.cne.CNEService\npackage:com.xiaomi.mi_connect_service\npackage:com.xiaomi.micloud.sdk\npackage:com.wt.secret_code_manager\npackage:org.simalliance.openmobileapi.service\npackage:com.android.updater\npackage:com.android.documentsui\npackage:com.android.externalstorage\npackage:com.qualcomm.uimremoteclient\npackage:com.android.htmlviewer\npackage:com.qualcomm.svi\npackage:com.miui.securityadd\npackage:com.miui.gallery\npackage:com.android.mms.service\npackage:com.miui.msa.global\npackage:com.android.providers.downloads\npackage:com.qualcomm.qti.auth.sampleauthenticatorservice\npackage:com.xiaomi.payment\npackage:com.miui.securitycenter\npackage:android.autoinstalls.config.Xiaomi.santoni\npackage:com.qualcomm.qti.telephonyservice\npackage:com.miui.videoplayer\npackage:com.qualcomm.qti.auth.fidocryptoservice\npackage:com.google.android.configupdater\npackage:com.android.soundrecorder\npackage:com.miui.userguide\npackage:com.android.defcontainer\npackage:com.miui.guardprovider\npackage:com.android.providers.downloads.ui\npackage:com.android.vending\npackage:com.android.pacprocessor\npackage:com.qualcomm.cabl\npackage:com.miui.backup\npackage:com.xiaomi.mirecycle\npackage:com.miui.notification\npackage:com.miui.micloudsync\npackage:com.miui.daemon\npackage:com.android.certinstaller\npackage:com.android.carrierconfig\npackage:com.google.android.marvin.talkback\npackage:com.qti.qualcomm.datastatusnotification\npackage:android\npackage:com.android.contacts\npackage:com.qualcomm.wfd.service\npackage:com.miui.hybrid\npackage:com.miui.vsimcore\npackage:com.mi.webkit.core\npackage:com.miui.securitycore\npackage:com.android.egg\npackage:com.android.mms\npackage:com.android.mtp\npackage:com.android.stk\npackage:com.android.backupconfirm\npackage:com.xiaomi.simactivate.service\npackage:com.miui.player\npackage:com.miui.miservice\npackage:com.android.provision\npackage:org.codeaurora.ims\npackage:com.android.statementservice\npackage:com.google.android.gm\npackage:com.miui.sysopt\npackage:com.miui.system\npackage:com.google.android.apps.tachyon\npackage:com.android.calendar\npackage:com.miui.global.packageinstaller\npackage:com.miui.translation.kingsoft\npackage:com.miui.compass\npackage:com.qualcomm.qti.auth.secureextauthservice\npackage:com.google.android.setupwizard\npackage:com.miui.rom\npackage:com.qualcomm.qcrilmsgtunnel\npackage:com.android.providers.settings\npackage:com.android.sharedstoragebackup\npackage:com.mediatek.batterywarning\npackage:com.facebook.services\npackage:com.xiaomi.location.fused\npackage:com.google.android.music\npackage:com.android.printspooler\npackage:com.android.dreams.basic\npackage:com.android.incallui\npackage:com.fido.xiaomi.uafclient\npackage:com.android.frameworks.telresources\npackage:com.miui.bugreport\npackage:com.android.inputdevices\npackage:com.fido.asm\npackage:com.qualcomm.qti.auth.securesampleauthservice\npackage:com.qualcomm.qti.CdmaCallOptions\npackage:com.qualcomm.qti.StatsPollManager\npackage:com.qti.dpmserviceapp\npackage:com.android.fileexplorer\npackage:com.qti.xdivert\npackage:com.google.android.apps.docs\npackage:com.google.android.apps.maps\npackage:com.miui.translation.youdao\npackage:com.miui.cloudbackup\npackage:com.android.cellbroadcastreceiver\npackage:com.google.android.webview\npackage:com.android.server.telecom\npackage:com.google.android.syncadapters.contacts\npackage:com.android.keychain\npackage:com.android.camera\npackage:com.android.chrome\npackage:com.xiaomi.glgm\npackage:com.xiaomi.upnp\npackage:com.xiaomi.xmsf\npackage:com.google.android.packageinstaller\npackage:com.google.android.gms\npackage:com.google.android.gsf\npackage:com.google.android.tts\npackage:com.android.calllogbackup\npackage:com.miui.freeform\npackage:com.google.android.partnersetup\npackage:com.fingerprints.serviceext\npackage:com.google.android.videos\npackage:org.codeaurora.btmultisim\npackage:com.xiaomi.mipicks\npackage:com.dsi.ant.server\npackage:com.xiaomi.finddevice\npackage:com.android.proxyhandler\npackage:com.xiaomi.joyose\npackage:com.mi.android.globalFileexplorer\npackage:com.miui.notes\npackage:com.miui.wmsvc\npackage:com.xiaomi.misettings\npackage:com.google.android.feedback\npackage:com.google.android.printservice.recommendation\npackage:com.xiaomi.midrop\npackage:com.google.android.apps.photos\npackage:com.miui.translationservice\npackage:com.google.android.syncadapters.calendar\npackage:com.miui.cloudservice\npackage:com.android.managedprovisioning\npackage:com.miui.hybrid.accessory\npackage:com.android.dreams.phototable\npackage:com.miui.translation.xmcloud\npackage:com.miui.touchassistant\npackage:com.xiaomi.providers.appindex\npackage:com.android.providers.partnerbookmarks\npackage:com.google.android.gsf.login\npackage:com.android.smspush\npackage:com.mediatek.factorymode\npackage:com.mi.android.globalminusscreen\npackage:com.miui.calculator\npackage:com.android.wallpaper.livepicker\npackage:com.mi.AutoTest\npackage:com.miui.cloudservice.sysbase\npackage:com.miui.miwallpaper\npackage:com.facebook.system\npackage:com.xiaomi.bluetooth\npackage:com.qualcomm.qti.telephony.vodafonepack\npackage:com.google.android.backuptransport\npackage:com.miui.cleanmaster\npackage:com.android.storagemanager\npackage:com.miui.analytics\npackage:com.android.bookmarkprovider\npackage:com.android.settings\npackage:com.qualcomm.qti.ims\npackage:com.miui.weather2\npackage:com.quicinc.wbcserviceapp\npackage:com.qualcomm.location\npackage:com.xiaomi.scanner\npackage:com.android.cts.ctsshim\npackage:com.qualcomm.qti.tetherservice\npackage:com.miui.yellowpage\npackage:com.miui.antispam\npackage:com.qualcomm.qti.services.secureui\npackage:com.android.vpndialogs\npackage:com.android.email\npackage:com.wt.version_query\npackage:com.android.phone\npackage:com.android.shell\npackage:com.android.wallpaperbackup\npackage:com.android.providers.blockednumber\npackage:com.android.providers.userdictionary\npackage:com.android.emergency\npackage:com.qualcomm.qti.RIDL\npackage:com.android.location.fused\npackage:com.android.deskclock\npackage:com.android.systemui\npackage:com.android.bluetoothmidiservice\npackage:com.mi.globallayout\npackage:com.facebook.appmanager\npackage:com.xiaomi.discover\npackage:com.mi.dlabs.vr\npackage:com.miui.smsextra\npackage:com.android.thememanager\npackage:com.mipay.wallet.id\npackage:com.mipay.wallet.in\npackage:com.qualcomm.fastdormancy\npackage:com.qualcomm.qti.auth.fidosuiservice\npackage:com.miui.fmservice\npackage:com.android.thememanager.module\npackage:com.lbe.security.miui\npackage:com.android.bluetooth\npackage:com.qualcomm.timeservice\npackage:com.qualcomm.embms\npackage:com.android.providers.contacts\npackage:com.stability.camerastability\npackage:com.android.captiveportallogin\npackage:com.miui.core\npackage:com.miui.home\npackage:com.google.android.inputmethod.latin\npackage:com.miui.audioeffect\nsantoni:/ $\n```\n\n### Uninstall apps:\n\n\u003e NOTE: Do not uninstall any system app or essential app. Always double-check the app's purpose before removing an app. Try [this one](https://play.google.com/store/apps/details?id=sk.styk.martin.apkanalyzer\u0026hl=en) to know the APK names of the apps installed on your phone.\n\nExamples...\n\nGoogle Pay (Tez) uses the UPI Payment Gateway, and it serves my purpose. I don't feel the need for any similar apps. Let me show you how I uninstalled the 'Mi Pay' app.\n\n```\nsantoni:/ $ pm uninstall -k --user 0 com.mipay.wallet.in\nSuccess\nsantoni:/ $ pm uninstall -k --user 0 com.mipay.wallet.id\nSuccess\nsantoni:/ $\n```\n\nI also uninstalled the following apps. In some cases, I downloaded alternative apps, and in other cases, I don't see any reason for using some of the default apps. Privacy concerns had also been considered at the time of uninstalling some packages.\n\n_Google Movies and TV:_\n\n```\npm uninstall -k --user 0 com.google.android.videos\n```\n\n_Google Music:_\n\n```\npm uninstall -k --user 0 com.google.android.music\n```\n\n_Android Mail Client:_ The default Android Mail Client App. It doesn't integrate well with some email clients. On top of that, this modified version is issued by Xiaomi Corporation. The issuer country shown was not the country I live in.\n\n```\npm uninstall -k --user 0 com.android.email\n```\n\n_MIUI Video Player:_ I'll show you how to download VLC from F-Droid's repository and install the same using the ADB shell.\n\n```\npm uninstall -k --user 0 com.miui.videoplayer\n```\n\n_MIUI Audio Player:_ I'll go for VLC.\n\n```\npm uninstall -k --user 0 com.miui.player\n```\n\n_Android Notes:_ A modified version of the Android Notes App, created by Xiaomi. The app can't export files to TXT format and doesn't open files with the TXT extension. Other text files with different extensions are unsupported as well. The app also has a tendency to sync notes to Xiaomi's cloud services. No thanks! I have so many decent note-taking/to-do management/code-editor apps.\n\n```\npm uninstall -k --user 0 com.miui.notes\n```\n\n_Google Photos:_ Google imposed storage limitations on their Google Photos service in 2021. The app occupied a lot of space on my phone's internal memory. I'd rather use the web interface when needed.\n\n```\npm uninstall -k --user 0 com.google.android.apps.photos\n```\n\n_ShareMe - Xiaomi's File-Sharing app:_ Nobody's interested in downloading that Xiaomi app to send files to other devices unless they own a Xiaomi device. Most people ask for turning on the BlueTooth, and I also noticed transferring files from USB drives is the fastest possible way to go. Wireless file sharing apps have a reputation of not being suckless. Carry a 16GB thumb drive with two USB-A to Phone OTG adapters if you're in dire need. If wireless file transfer is your best bet, you may try Goggle's 'Files' app as well.\n\n```\npm uninstall -k --user 0 com.xiaomi.midrop\n```\n\n_Xiaomi's Theme Manager:_ I use a minimalist launcher. Themes and notifications are not my cups of tea, and they are seemingly distracting. People need to detoxify their digital life. Computers were designed to help us to be more productive, not to make us lazy and infuriate us with distracting notifications from social media, news, advertisements, and bundled resource hog sluggish bloatware applications, which in turn make us counterproductive. I'm not a fan of Eye-Popping Themes and a whole bunch of distracting notifications for diverting my attention to somewhere else.\n\n```\npm uninstall -k --user 0 com.android.thememanager\n```\n\n_Google Duo:_ Who uses Google's Duo? I'll go for Jitsi.\n\n```\npm uninstall -k --user 0 com.google.android.apps.tachyon\n```\n\n_RedMi Calender:_ Another critical, however, modified default app by Xiaomi. It syncs my data to overseas servers, their cloud services. I use a different calendar app.\n\n```\npm uninstall -k --user 0 com.android.calendar\n```\n\n_RedMi Gallery:_ I have a better Gallery app.\n\nNOTE: After uninstalling the default Xiaomi Gallery app, I faced problems while grabbing screenshots. I had to re-install the gallery app. I'll show you how to re-install accidentally removed apps later.\n\n```\npm uninstall -k --user 0 com.miui.gallery\n```\n\nI uninstalled Wallpaper Carousel also.\n\n```\nSuccess\n```\n\n### Get a list of all applications installed by you [[Ref](https://stackoverflow.com/questions/53634246/android-get-all-installed-packages-using-adb)]:\n\n```\nadb shell cmd package list packages -3\n```\n\nSave the result to a text file if needed:\n\n```\nadb shell cmd package list packages -3 \u003e \"%USERPROFILE%\\Documents\\UserInstalledApps.txt\"\n```\n\nWhen done:\n\n```\nsantoni:/ $ exit\n```\n\nThen,\n\nType, `exit`.\n\n```\nO:\\platform-tools_r32.0.0-windows\\platform-tools\u003eexit\n```\n\n---\n\n# IMPORTANT:\n\n## If you have unintentionally uninstalled an app:\n\nRef:\n\nhttps://forum.xda-developers.com/t/how-to-install-get-back-uninstalled-apps-apks-with-adb.3894235/\n\nhttps://forum.xda-developers.com/t/how-to-install-get-back-uninstalled-apps-apks-with-adb.3894235/page-4#post-84291287\n\nDuckDuckGo: adb shell Unknown command: install-existing\n\n```\nO:\\platform-tools_r32.0.0-windows\\platform-tools\u003eadb shell\nsantoni:/ $ pm enable --user 0 com.miui.gallery\nPackage com.miui.gallery new state: enabled\nsantoni:/ $ pm dump com.miui.gallery | grep path\n        path: /system/priv-app/MiuiGallery/MiuiGallery.apk\nsantoni:/ $ pm install -r --user 0 /system/priv-app/MiuiGallery/MiuiGallery.apk\nSuccess\nsantoni:/ $\n```\n\n##### One-by-one:\n\nRun the ADB Shell from the Windows CMD.\n\n```\nadb shell\n```\n\nIn the ADB Shell, type...\n\n```\npm enable --user 0 com.miui.gallery\n```\n\n...to re-enable the removed package.\n\nKnow the path to that app:\n\n```\npm dump com.miui.gallery | grep path\n```\n\nCopy the path to the clipboard ('Click-n-drag + Enter' on Windows).\n\nFor example, `/system/priv-app/MiuiGallery/MiuiGallery.apk` or `/system/priv-app/FMRadio/FMRadio.apk`.\n\nThen, paste the copied path at the end of the following character string:\n\n```\npm install -r --user 0 \n```\n\nThat is,\n\n```\npm install -r --user 0 /system/priv-app/MiuiGallery/MiuiGallery.apk\n```\n\nAlso notice that the command `adb shell cmd package install-existing com.miui.gallery` will return an error: `Unknown command: install-existing`\n\nTherefore, it's best to stick to `pm install -r --user 0 /system/priv-app/APK_with_PATH`.\n\n---\n\n## Part 7:\n\nTime to install a few more apps. Test what you've learned.\n\n```\nadb install \"C:\\Users\\YourUserName\\Downloads\\F-Droid.apk\"\nadb install \"C:\\Users\\YourUserName\\Downloads\\com.mkulesh.micromath.plus_319.apk\"\nadb install \"C:\\Users\\YourUserName\\Downloads\\com.blacksquircle.ui_10007.apk\"\nadb install \"C:\\Users\\YourUserName\\Downloads\\org.videolan.vlc_13040307.apk\"\nadb install \"C:\\Users\\YourUserName\\Downloads\\org.koreader.launcher.fdroid_8849.apk\"\nadb install \"C:\\Users\\YourUserName\\Downloads\\com.concept1tech.instalate_13.apk\"\nadb install \"C:\\Users\\YourUserName\\Downloads\\com.foobnix.pro.pdf.reader_4334.apk\"\n```\n\nKoReader is not available in Google Play. It's possibly the best all-rounder eBook reader out there on the android market. It takes a few hours to get accustomed to using the reader. Nevertheless, you'll get all the bells \u0026 whistles to manipulate eBooks on a tiny phone display. When you get everything to handle every facet of document files, you'll read much more comfortably on your phone, even if your phone has a relatively smaller display, like 4.7\" or 5\".\n\nKoReader was designed for eReaders. The interface looks very different from the more traditional android applications' approach to the material design UI because their main focus is creating the best possible eBook reader app for eReader devices. It comes with an integrated dictionary. Stardict dictionary files can be added to extend the dictionary database further. External dictionary applications like GoldenDict can also be accessed. Pan and pinch zoom is not available, though. Instead, it has a different approach to zoom documents. It takes time to get used to with KoReader, but in the end, no other eBook Reader app feels even remotely close to this eBook reader application.\n\nLibrera PRO is another excellent eBook Reader for Android. It supports external dictionary applications, even WordWeb. Documents can be pinch zoomed and panned.\n\nCool Reader is also a good eBook Reader. It doesn't support static documents (PDF, DJVU etc.) which is a downside. External dictionary applications like GoldenDict are supported. Pan and pinch zoom is unavailable since EPUB, CHM, TXT, MOBI files are 'Reflowable Documents'. The text part in reflowable documents adapts to the screen properties. Images are scaled. Thus, ebooks in those formats are resized according to the screen size and resolution. However, Cool Reader allows users to change the font size.\n\n---\n\n---\n\n## Part 8:\n\n### Disable USB Debugging and Developer Mode:\n\n1. Uncheck the following options:\n- Install via USB.\n\n- USB Debugging.\n2. Revoke USB Debugging Authorisations.\n\n![ADB-devel-0007](https://user-images.githubusercontent.com/16861933/153183665-06cf668c-b301-4a1c-b3e1-b33cc67461d0.jpg)\n\nPress OK on the phone when prompted.\n\n3. Disable Developer Options.\n\n**Long Tap** on the **Settings** app -\u003e **App Info** -\u003e **Force Stop** \u0026 **Clear All Data**.\n\n![ADB-devel-0008](https://user-images.githubusercontent.com/16861933/153183730-025d6d7b-c470-419d-8265-b16c186ca5c7.jpg)\n\n![ADB-devel-0009](https://user-images.githubusercontent.com/16861933/153183762-2808126d-0671-4c4d-8bcf-af62fd74a2c7.jpg)\n\n_Repeat_ it.\n\nGo to the 'App Info' section of the required app (e.g., F-Droid) and allow network and storage permissions.\n\nReboot your PC and delete the folder 'platform-tools_rxx.x.x-windows' if you do not plan to use the ADB shell again.\n\n## Part 9:\n\n### How will you update the apps you installed using the ADB Shell?\n\n#### ONE: For general users:\n\nCheck the option 'Unknown Sources', 'Allow Installation of apps from unknown sources. Now you're ready to update apps from F-Droid, as you update from Google Play Store. If, for any reason, you cannot update apps directly from the phone, try the ADB Shell again. Update the apps as you'd install apps using the same commands.\n\nFor example:\n\n```\nadb install \"C:\\Users\\YourUserName\\Downloads\\org.koreader.launcher.fdroid_8849.apk\"\n```\n\nAdding the `-r` option at the start will reinstall the app. I strongly advise you against doing so because if you reinstall an app, you're most likely going to lose its configuration files and settings.\n\nIn case you don't want to update apps from your PC, you can try updating the apps from F-Droid after turning on the option 'Unknown Sources'. It's much comfier to update apps from the phone.\n\n#### TWO: For account holders of Google's Advanced Protection Program:\n\nTurning on the option 'Unknown Sources' won't have any effect here.\n\nThe ADB Shell is always your best friend. Use the ADB Shell and update the apps from your PC's terminal.\n\n---\n\n===\n\nLink to this document's repository: https://github.com/Pinaki82/adb-shell-android-bloatware-removal.git\n\nYou may wish to download the PDF or the EPUB version from the release section.\n\nRecommended EPUB Viewer on Android (for smaller files) is [Cool Reader](https://play.google.com/store/apps/details?id=org.coolreader\u0026hl=en). On the PC, try [Okular](https://okular.kde.org/). It's a multiplatform, multiformat document viewer by [KDE](https://kde.org/). Okular can open EPUB files. Windows and Linux both are covered.\n\nTo create the EPUB, I used [Sigil](https://sigil-ebook.com/).\n\nThe _README.md_ file, which is the main file to this guide, has been created with [Mark Text](https://marktext.app/). Also, the PDF version of the document was exported from [Mark Text](https://marktext.app/). Download **Mark Text** from [here](https://github.com/marktext/marktext). You can download the HTML version, but without an active internet connection, you won't see the screenshots.\n\n===\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinaki82%2Fadb-shell-android-bloatware-removal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinaki82%2Fadb-shell-android-bloatware-removal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinaki82%2Fadb-shell-android-bloatware-removal/lists"}