De-bloating with ADB

De-Bloating, the process of removing bloatwares (general terminology used to represent unwanted applications pre-installed on an android device by the manufacturer or carrier) from a device shall be done on non-rooted devices by utilizing the power of Android Debug Bridge (ADB). Most majority of android users, however, blindly believe that the tools like ADB are designed only for developers, but not for common people. Although ADB tools are much useful for developers to debug their applications and more, this method also offers some advanced control over an android device for normal users via its powerful command-line interface. Other than a one-time configuration process that likely causes some headache to beginners, doing some basic tasks on ADB is not at all a difficult task. The sole intention of this article is to help users to properly configure a working ADB environment and conduct some basic de-bloating tasks. If you're an advanced user who is already using a rooted device, you can probably move to our other guide (De-bloating), which is solely written for rooted devices. The merits and demerits of rooting an android device is also explained in one of our articles (Android Rooting).

What is Android Debug Bridge (ADB)?

Android Debug Bridge (ADB) is a versatile command-line tool allowing advanced users to communicate with an android device. The ADB command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that can be used to run a variety of commands on a device. A much more detailed information on ADB and the usage of its command line tool are available here.

What are the requirements for ADB De-bloating?

  • A Computer or Laptop (Windows/Linux/Mac)
  • A USB cable to connect your android device with computer

How to configure Android Debug Bridge (ADB)?

  • Download and Install OEM specific USB drivers from here.
  • Download the ADB binary for your OS (Windows, Mac, Linux) from here and extract the zip file into a folder that you can quickly access.
  • On your phone, go to Settings –> About Phone and tap on the “Build number” at least 7 times to enable the “Developer Options”.
  • Now find and navigate to the newly enabled “Developer Options” from the “Setting” and find “USB Debugging”. Enable it.
  • Plug your phone into the computer via USB cable.
  • On your computer, browse to the directory where you extracted the ADB binary in step 2.
  • Launch Command Prompt (Windows) or Terminal/Shell (Linux/Mac) in your ADB folder.
  • Enter the following command:
    adb devices
    You will see that the system is starting the ADB daemon. Also, you will probably see a prompt on your phone asking you to authorize a connection with the computer. Grant it. If you re-run the “adb devices” command, the terminal will print the serial number of your device, meaning your mobile is successfully connected to the computer via ADB.
  • Now sending the following command from the Command Prompt/Terminal/Shell will remove the system application of your choice.

"adb shell pm uninstall -k --user 0 package_id"

where “package_id” is the unique application id of the bloatware you want to remove. Please be aware that the “package_id” of an android application, which looks like a java package name, such as “com.example.bloatware”, is most likely different to that of the application name.

For example, to uninstall Google Chrome from a device using this method, a user needs to execute the following command.

adb shell pm uninstall -k --user 0 com.android.chrome

Also, please do remember to checkout the official documentation of ADB, where a whole list of command line tasks are listed with proper examples. Cheers.