-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
66 lines (61 loc) · 1.45 KB
/
install.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
if [ -z $UF ]; then
UF=$TMPDIR/common/unityfiles
unzip -oq "$ZIPFILE" 'common/unityfiles/util_functions.sh' -d $TMPDIR >&2
[ -f "$UF/util_functions.sh" ] || { ui_print "! Unable to extract zip file !"; exit 1; }
. $UF/util_functions.sh
fi
comp_check
#MINAPI=21
#MAXAPI=25
#DYNLIB=true
#SYSOVER=true
DEBUG=true
#SKIPMOUNT=true
REPLACE_EXAMPLE="
/system/app/Youtube
/system/priv-app/SystemUI
/system/priv-app/Settings
/system/framework
"
REPLACE="
"
print_modname() {
center_and_print
ui_print " *******************************************"
ui_print " * Special credit to TadiT7 @ github *"
ui_print " * for numerous ROM dumps *"
ui_print " *******************************************"
ui_print " "
unity_main
}
set_permissions() {
: #oof
}
unity_custom() {
# Device check vars
DEVNAME=$(grep_prop ro.product.model)
DEVCODE=$(grep_prop ro.build.product)
DEVLIST="
daisy_sprout
jasmine_sprout
tulip
wayne
whyred
"
# Begin checking devices
if $MAGISK; then
[ "$DEVCODE" == "wayne" ] && DEVNAME="Mi 6X"
LANJUT=false
for HP in ${DEVLIST}; do
[ "$DEVCODE" == "$HP" ] && LANJUT=true
done
if $LANJUT; then
ui_print "- Your $DEVNAME ($DEVCODE) is supported"
sed -i "s/UnF/$DEVNAME/g" $TMPDIR/module.prop
else
abort " ! Your $DEVNAME ($DEVCODE) is not supported"
fi
else
abort " ! $MODID only for magisk for system file safety !"
fi
}