Skip to content

Instantly share code, notes, and snippets.

@KevCui
Last active March 31, 2018 10:23
Show Gist options
  • Save KevCui/8697b75b5d12b7719fabd9af57614ace to your computer and use it in GitHub Desktop.
Save KevCui/8697b75b5d12b7719fabd9af57614ace to your computer and use it in GitHub Desktop.
OP3T bloat apps remover
#!/bin/sh
# TRY THIS ON YOUR OWN RISK!
# root needed
BLOAT_APP_LIST=(
YouTube
Videos
Photos
Drive
Duo
Gmail2
Maps
Music2
EngineeringMode
OPClipBoardManager
OPBackupRestore
)
# remount /system as read-write
adb shell "su -c 'mount -o rw,remount /system'"
for i in "${BLOAT_APP_LIST[@]}"; do
echo "Removing $i"
adb shell "su -c 'rm -r /system/app/"$i"'"
done
# reboot devices
echo "Rebooting..."
adb reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment