forked from Kingsman44/Pixelify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpixelify.sh
95 lines (93 loc) · 2.89 KB
/
pixelify.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/system/bin/sh
DIR=/data/adb/modules/Pixelify
option=$1
sel=$2
ac=0
. $DIR/vars.sh
. $DIR/utils.sh
case $option in
"disable")
if [ $sel == "pixellauncher" ] || [ $sel == "pl" ]; then
rm -rf $DIR/system/**/priv-app/NexusLauncherRelease
rm -rf $DIR/system/**/priv-app/*Launcher*
rm -rf $DIR/system/**/priv-app/*Lawnchair*
rm -rf $DIR/system/**/priv-app/*Trebuchet*
rm -rf $DIR/system/**/priv-app/*QuickStep*
rm -rf $DIR/system/**/priv-app/*MiuiHome*
rm -rf $DIR/system/**/priv-app/*TouchWizHome*
rm -rf $DIR/system/**/PixelLauncherOverlay.apk
elif [ $sel == "now-playing" ]; then
rm -rf $DIR/system/etc/firmware
rm -rf $DIR/system/product/overlay/PixeliflyNowPlaying.apk
elif [ $sel == "hotword" ]; then
rm -rf $DIR/system/**/*Hotword*
rm -rf $DIR/system/**/*hotword*
else
echo "x Invalid choice"
ac=1
fi
if [ $ac -eq 0 ]; then
echo "- Success, Please Reboot to take effect !!"
fi
;;
"--remove-backup")
if [ $sel == "pixellauncher" ] || [ $sel == "pl" ]; then
rm -rf /sdcard/Pixelify/*/pl-*
elif [ $sel == "asi" ] || [ $sel == "androidsystemintelligence" ]; then
rm -rf /sdcard/Pixelify/*/asi-*
rm -rf /sdcard/Pixelify/*/dp-*
elif [ $sel == "nga" ]; then
rm -rf /sdcard/Pixelify/*/nga*
rm -rf /sdcard/Pixelify/*/NgaResources*
elif [ $sel == "livewallapers" ] || [ $sel == "lw" ]; then
rm -rf /sdcard/Pixelify/*/pixel*
elif [ $sel == "osr" ]; then
rm -rf /sdcard/Pixelify/*/osr*
elif [ $sel == "callscreen" ] || [ $sel == "cs" ]; then
rm -rf /sdcard/Pixelify/*/callscreen*
elif [ $sel == "all" ]; then
rm -rf /sdcard/Pixelify/backup /sdcard/Pixelify/version
else
echo "x Invalid choice"
ac=1
fi
if [ $ac -eq 0 ]; then
echo "- Done"
fi
;;
"lockscreen_qr")
if [ $sel == "1" ] || [ $sel == "true" ]; then
settings put secure lock_screen_show_qr_code_scanner 1
echo "- Success"
elif [ $sel == "0" ] || [ $sel == "false" ]; then
settings put secure lock_screen_show_qr_code_scanner 0
echo "- Success"
else
echo "x Invalid choice"
ac=1
fi
;;
"enable")
if [ $sel == "now-playing" ]; then
if [ -d $DIR/extras/nplaying ]; then
cp -r $DIR/extras/nplaying/. $DIR
echo "- Success, Please Reboot to take effect !!"
else
echo "! File missing, cannot able to install now playing"
fi
elif [ $sel == "hotword" ]; then
if [ $API -ge 30 ]; then
cp -r $DIR/extras/hotword/. $DIR
else
cp -r $DIR/extras/hotword-9/. $DIR
fi
echo "- Success, Please Reboot to take effect !!"
else
echo "x Invalid choice"
ac=1
fi
;;
"*")
echo "x Invalid choice"
;;
esac