customize.sh
#!/system/bin/sh

# Log dir
LOG="/sdcard/installation.log"
mkdir -p "$MODPATH/logs"

# Load module details
MODNAME=$(grep_prop name $TMPDIR/module.prop)
MODVER=$(grep_prop version $TMPDIR/module.prop)
AUTHOR=$(grep_prop author $TMPDIR/module.prop)
TIME=$(date "+%d, %b - %H:%M %Z")

# Gather system info
BRAND=$(getprop ro.product.brand)
MODEL=$(getprop ro.product.model)
DEVICE=$(getprop ro.product.device)
ANDROID=$(getprop ro.system.build.version.release)
SDK=$(getprop ro.system.build.version.sdk)
ARCH=$(getprop ro.product.cpu.abi)
CHIPSET=$(getprop ro.device.chipset)
DISPLAY=$(getprop ro.device.display_resolution)
BUILD_DATE=$(getprop ro.system.build.date)
MAINTAINER=$(getprop ro.device.maintainer)
ROM_TYPE=$(getprop ro.system.build.type)
FINGERPRINT=$(getprop ro.system.build.fingerprint)
SE=$(getenforce)
KERNEL=$(uname -r)

# Logger
debug() {
    echo "$1" | tee -a "$LOG"
}

# Header
debug " "
debug "┌──── Module Info ────────────────────┐"
debug "│ $MODNAME "
debug "│ By $AUTHOR"
debug "│ Version: $MODVER"
debug "│ Started at: $TIME"
debug "└────────────────────────────────────┘"
debug " "

# Root check
debug "┌── Root Info ────────────────────────┐"
if [ "$BOOTMODE" ] && [ "$KSU" ]; then
  debug "│ Provider       : KernelSU"
  debug "│ Kernel Version : $KSU_KERNEL_VER_CODE"
  debug "│ KSU Version    : $KSU_VER_CODE"
  [ "$(which magisk)" ] && {
    debug "│ ⚠ Multiple root systems detected!"
    debug "└───────────────────────────────────┘"
    abort   "Please use only KernelSU or Magisk."
  }
elif [ "$BOOTMODE" ] && [ "$MAGISK_VER_CODE" ]; then
  debug "│ Provider.         : Magisk"
  debug "│ Magisk Version  : $MAGISK_VER_CODE"
else
  debug "│ Root      : Unknown / Unsupported"
  debug "└───────────────────────────────────┘"
  abort "Please install via Magisk or KernelSU (no recovery support)"
fi
debug "└───────────────────────────────────┘"
debug " "

# Device block
debug "┌── Device Info ─────────────────────┐"
debug "│ Brand      : $BRAND"
debug "│ Model      : $MODEL"
debug "│ Device     : $DEVICE"
debug "│ Arch       : $ARCH"
debug "│ Android    : $ANDROID (SDK $SDK)"
debug "│ Kernel     : $KERNEL"
debug "└───────────────────────────────────┘"
debug " "

# ROM block
debug "┌── ROM Info ────────────────────────┐"
debug "│ ROM Type   : $ROM_TYPE"
debug "│ Build Date : $BUILD_DATE"
debug "│ SELinux    : $SE"
debug "└───────────────────────────────────┘"
debug " "

# Verify ZIP
unzip -o "$ZIPFILE" 'verify.sh' -d "$TMPDIR" >&2
if [ ! -f "$TMPDIR/verify.sh" ]; then
  debug "- Module files are corrupted, please re-download" 0.2 "sar"
  exit 1
fi

# Check integrity
debug " ✦ Checking Module Integrity..."
sh "$TMPDIR/verify.sh" || exit 1

echo " "
echo " "
echo " ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣄⣠⣄⠀"
echo " ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⠏⠀"
echo " ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀"
echo " ⠀⠀⠀⠀⣀⡤⣤⠶⠛⠉⠉⠀⠀⠉⠉⠛⠲⣤⣤⣄⠀⠀⠀⠀⠀"
echo " ⠀⠀⠀⡼⠃⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠁⠈⢧⠀⠀⠀⠀"
echo " ⠀⠀⡼⢁⡆⠀⢀⡀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡄⠀⢰⡈⢧⠀⠀⠀"
echo " ⢀⡞⠁⣸⠁⠀⢠⠬⠓⠀⣀⠀⠀⢀⠀⠛⠥⣄⠀⠀⡇⠈⢳⡀⠀"
echo " ⡞⠀⠀⠹⣆⢰⣒⠆⠀⠀⠓⠊⠙⠚⠁⠀⠸⠭⠇⣰⠇⠀⠀⢻⠀"
echo " ⣇⠀⠀⠀⠈⣹⠶⠦⠤⠤⣤⣤⣤⡤⠤⠤⠴⠶⣏⠁⠀⠀⠀⣸⠁"
echo " ⠈⠓⠲⠖⠚⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠓⠲⠶⠚⠁⠀"
echo " "
echo " "
sleep 3

# Delete hash folder
rm -rf /data/adb/QuiteKill_verify

echo " ✦ Redirecting to Release Source..."
sleep 1.5
nohup am start -a android.intent.action.VIEW -d https://t.me/MeowDump >/dev/null 2>&1 &
exit 0
