Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save imnotdev25/53acbebbef02fd79fd67813b8c3bb757 to your computer and use it in GitHub Desktop.
Save imnotdev25/53acbebbef02fd79fd67813b8c3bb757 to your computer and use it in GitHub Desktop.
How to remove bloatware from android without root using adb only

How to remove bloatware from android without root using adb only

  1. Make sure that USB debugging is enabled.
  2. Deactivate all bloatware apps.
  3. List the names of all deactivated packages:
$ adb shell pm list packages -d

I redirected this into a file and filtered google packages and removed the prefixc:

$ adb shell pm list packages -d | grep -v 'com.google' | sed -e 's/^package://' > /tmp/deactivated-packages
  1. Uninstall the packages
# either one-by-one
$ adb shell pm uninstall -k --user 0 <package-name>
# or use the list
$ for p in $(cat /tmp/deactivated-packages); do adb shell pm uninstall -k --user 0 "$p"; done

Voila!

Sources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment