Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 969 Bytes

README.md

File metadata and controls

44 lines (28 loc) · 969 Bytes

cleanup-android

Removes Android bloatware.

This script will uninstall apps using the command:

adb shell pm uninstall --user 0 $pkgID

If it is failed, it will attempt to disable an app:

adb shell pm disable-user --user 0 $pkgID

Requires

Android SDK platform tools (adb).

Download Command line tools only, unpack, and run:

sdkmanager.bat --install "platform-tools" "extras;google;usb_drive"

Then setup the environment variable ANDROID_SDK_ROOT:

setx ANDROID_SDK_ROOT <path to the folder that contains 'platform-tools'>

Use

Turn on Developer Mode on a device.

Connect a device to PC, and select Transfer files mode in a popup on a device.

Run get-apps.ps1 to get all installed apps (will be in app_list.txt).

Adjust the list of apps to uninstall in uninstall-apps.ps1 and run.