-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcustomize.sh
More file actions
23 lines (19 loc) · 749 Bytes
/
customize.sh
File metadata and controls
23 lines (19 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# shellcheck disable=SC2034
SKIPUNZIP=1
enforce_install_from_app() {
if $BOOTMODE; then
ui_print "- Installing from Magisk / KernelSU app"
else
ui_print "*********************************************************"
ui_print "! Install from recovery is NOT supported"
ui_print "! Recovery sucks"
ui_print "! Please install from Magisk / KernelSU app"
abort "*********************************************************"
fi
}
VERSION=$(grep_prop version "${TMPDIR}/module.prop")
ui_print "- Factory Props version ${VERSION}"
unzip -o "$ZIPFILE" 'module.prop' -d "$MODPATH" >&2
unzip -o "$ZIPFILE" 'service.sh' -d "$MODPATH" >&2
unzip -o "$ZIPFILE" 'uninstall.sh' -d "$MODPATH" >&2
set_perm_recursive $MODPATH 0 0 0755 0644