You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
But module will still removed automatically if tricky store module not found to keep the convenient for user to remove webui when uninstalling tricky store.
47 lines
1.1 KiB
Bash
47 lines
1.1 KiB
Bash
SKIPUNZIP=0
|
|
DEBUG=false
|
|
COMPATH="$MODPATH/common"
|
|
TS="/data/adb/modules/tricky_store"
|
|
SCRIPT_DIR="/data/adb/tricky_store"
|
|
CONFIG_DIR="$SCRIPT_DIR/target_list_config"
|
|
MODID=`grep_prop id $TMPDIR/module.prop`
|
|
NEW_MODID=".TA_utl"
|
|
kb="$COMPATH/.default"
|
|
|
|
ui_print " ";
|
|
if [ "$APATCH" ]; then
|
|
ui_print "- APatch:$APATCH_VER│$APATCH_VER_CODE"
|
|
ACTION=false
|
|
elif [ "$KSU" ]; then
|
|
ui_print "- KSU:$KSU_KERNEL_VER_CODE│$KSU_VER_CODE"
|
|
ACTION=false
|
|
elif [ "$MAGISK_VER_CODE" ]; then
|
|
ui_print "- Magisk:$MAGISK_VER│$MAGISK_VER_CODE"
|
|
else
|
|
ui_print " ";
|
|
ui_print "! recovery is not supported";
|
|
abort " ";
|
|
fi
|
|
|
|
[ -d "$TS" ] || ui_print "! Warning: Tricky store module not found"
|
|
|
|
. "$MODPATH/install_func.sh"
|
|
|
|
ui_print "- Installing..."
|
|
initialize
|
|
|
|
ui_print "- Finalizing..."
|
|
find_config
|
|
migrate_old_boot_hash
|
|
|
|
rm -f "$MODPATH/install_func.sh"
|
|
|
|
ui_print " "
|
|
ui_print "! This module is not a part of the Tricky Store module. DO NOT report any issues to Tricky Store if encountered."
|
|
ui_print " "
|
|
|
|
sleep 1
|
|
|
|
ui_print "- Installation completed successfully! "
|
|
ui_print " "
|