-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.sh
95 lines (77 loc) · 2.09 KB
/
setup.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
#!/sbin/sh
###########################
# MMT Reborn Logic
###########################
############
# Config Vars
############
# Set this to true if you want to skip mount for your module
SKIPMOUNT="false"
# Set this to true if you want to clean old files in module before injecting new module
CLEANSERVICE="false"
# Set this to true if you want to load vskel after module info print. If you want to manually load it, consider using load_vksel function
AUTOVKSEL="false"
# Set this to true if you want store debug logs of installation
DEBUG="true"
############
# Replace List
############
# List all directories you want to directly replace in the system
# Construct your list in the following example format
REPLACE_EXAMPLE="
/system/app/Youtube
/system/priv-app/SystemUI
/system/priv-app/Settings
/system/framework
"
# Construct your own list here
REPLACE="
"
############
# Permissions
############
# Set permissions
set_permissions() {
set_perm_recursive "$MODPATH" 0 0 0777 0755
set_perm_recursive "$MODPATH/system/bin" 0 0 0777 0755
}
############
# Info Print
############
# Set what you want to be displayed on header of installation process
info_print() {
ui_print ""
ui_print "***********************************"
ui_print " MemeUI Enhancer"
ui_print " By iamlooper @ telegram"
ui_print "***********************************"
sleep 2
}
############
# Main
############
# Change the logic to whatever you want
init_main() {
ui_print ""
ui_print "[*] Installing MemeUI Enhancer..."
[[ "$IS64BIT" == "true" ]] && {
mv -f "$MODPATH/system/bin/mienhancer64" "$MODPATH/system/bin/mienhancer"
} || {
mv -f "$MODPATH/system/bin/mienhancer32" "$MODPATH/system/bin/mienhancer"
}
sleep 2
ui_print ""
ui_print "[*] Done!"
ui_print ""
sleep 1
ui_print " --- Notes --- "
ui_print ""
ui_print "[*] Reboot is required"
ui_print ""
ui_print "[*] Report issues to @looptesting on Telegram"
ui_print ""
ui_print "[*] Join @loopprojects on Telegram to get more updates"
ui_print ""
ui_print "[*] You can find me at iamlooper @ Telegram for direct support"
sleep 2
}