forked from Magisk-Modules-Repo/HideNavBar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustomize.sh
More file actions
27 lines (25 loc) · 1.02 KB
/
customize.sh
File metadata and controls
27 lines (25 loc) · 1.02 KB
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
# Don't install on API # Don't install on API levels other than 29
if [ ! $API -ge "29" ]; then
abort "This module is for Android 10-11 only!"
fi
VEN=/system/vendor
[ -L /system/vendor ] && VEN=/vendor
if [ -f $VEN/build.prop ]; then BUILDS="/system/build.prop $VEN/build.prop"; else BUILDS="/system/build.prop"; fi
# Thanks Narsil/Sauron for the huge props list for various android systems
# Far easier to look there then ask users for their build.props
MIUI=$(grep "ro.miui.ui.version.*" $BUILDS)
if [ $MIUI ]; then
ui_print " MIUI is not supported"
abort " Aborting..."
fi
if [ -d /system/overlay/NavigationBarModeGestural ]; then
mkdir -p $MODPATH/system/overlay
cp -rf $MODPATH/overlays/* $MODPATH/system/overlay/
elif [ -d /system/vendor/overlay/NavigationBarModeGestural ]; then
mkdir -p $MODPATH/system/vendor/overlay
cp -rf $MODPATH/overlays/* $MODPATH/system/vendor/overlay/
else
mkdir -p $MODPATH/system/product/overlay
cp -rf $MODPATH/overlays/* $MODPATH/system/product/overlay/
fi
rm -rf $MODPATH/overlays