Last active
March 31, 2018 10:23
-
-
Save KevCui/8697b75b5d12b7719fabd9af57614ace to your computer and use it in GitHub Desktop.
OP3T bloat apps remover
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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