38 lines
No EOL
1.8 KiB
Bash
38 lines
No EOL
1.8 KiB
Bash
##########################################################################################
|
|
#
|
|
# MMT Extended Config Script
|
|
#
|
|
##########################################################################################
|
|
|
|
##########################################################################################
|
|
# Config Flags
|
|
##########################################################################################
|
|
|
|
# Uncomment and change 'MINAPI' and 'MAXAPI' to the minimum and maximum android version for your mod
|
|
# Uncomment DYNLIB if you want libs installed to vendor for oreo+ and system for anything older
|
|
# Uncomment PARTOVER if you have a workaround in place for extra partitions in regular magisk install (can mount them yourself - you will need to do this each boot as well). If unsure, keep commented
|
|
# Uncomment PARTITIONS and list additional partitions you will be modifying (other than system and vendor), for example: PARTITIONS="/odm /product /system_ext"
|
|
MINAPI=28
|
|
#MAXAPI=25
|
|
#DYNLIB=true
|
|
#PARTOVER=true
|
|
#PARTITIONS=""
|
|
|
|
##########################################################################################
|
|
# MMT Extended Logic - Don't modify anything after this
|
|
##########################################################################################
|
|
|
|
SKIPUNZIP=1
|
|
unzip -qjo "$ZIPFILE" 'common/functions.sh' -d $TMPDIR >&2
|
|
. $TMPDIR/functions.sh
|
|
|
|
OVERLAY_IMAGE_EXTRA=0 # number of kb need to be added to overlay.img
|
|
OVERLAY_IMAGE_SHRINK=true # shrink overlay.img or not?
|
|
|
|
# Only use OverlayFS if Magisk_OverlayFS is installed
|
|
if [ -f "/data/adb/modules/magisk_overlayfs/util_functions.sh" ] && \
|
|
/data/adb/modules/magisk_overlayfs/overlayfs_system --test; then
|
|
ui_print "- Add support for overlayfs"
|
|
. /data/adb/modules/magisk_overlayfs/util_functions.sh
|
|
support_overlayfs && rm -rf "$MODPATH"/system
|
|
fi |