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
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'>
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.