44 lines
763 B
Bash
44 lines
763 B
Bash
|
#
|
||
|
# Service Mode
|
||
|
#
|
||
|
|
||
|
# Disable module on next boot
|
||
|
touch $MODPATH/disable
|
||
|
|
||
|
# Synchronize & Wait a little
|
||
|
sync
|
||
|
sleep 1
|
||
|
|
||
|
# Dalvik
|
||
|
if [ -e /data/dalvik-cache ]; then
|
||
|
rm -rf /data/dalvik-cache
|
||
|
fi
|
||
|
|
||
|
# Packages
|
||
|
if [ -e /data/system/package_cache ]; then
|
||
|
rm -rf /data/system/package_cache/*
|
||
|
fi
|
||
|
|
||
|
# Ressources
|
||
|
if [ -e /data/resource-cache ]; then
|
||
|
rm -rf /data/resource-cache/*
|
||
|
fi
|
||
|
|
||
|
# PlayStore
|
||
|
if [ -e /data/data/com.android.vending ]; then
|
||
|
rm -rf /data/data/com.android.vending
|
||
|
fi
|
||
|
if [ -e /data/data/com.google.android.gms ]; then
|
||
|
rm -rf /data/data/com.google.android.gms
|
||
|
fi
|
||
|
if [ -e /data/data/com.google.android.gms.setup ]; then
|
||
|
rm -rf /data/data/com.google.android.gms.setup
|
||
|
fi
|
||
|
|
||
|
# Synchronize & Wait a little
|
||
|
sync
|
||
|
sleep 1
|
||
|
|
||
|
# Restart device
|
||
|
reboot
|