This commit is contained in:
5ec1cff
2024-07-18 12:48:45 +08:00
parent f14f79e90c
commit 979c51009c
3 changed files with 12 additions and 11 deletions

View File

@@ -60,7 +60,6 @@ fi
. "$TMPDIR/verify.sh"
extract "$ZIPFILE" 'customize.sh' "$TMPDIR/.vunzip"
extract "$ZIPFILE" 'verify.sh' "$TMPDIR/.vunzip"
extract "$ZIPFILE" 'target.txt' "$TMPDIR"
ui_print "- Extracting module files"
extract "$ZIPFILE" 'module.prop' "$MODPATH"
@@ -68,7 +67,8 @@ extract "$ZIPFILE" 'post-fs-data.sh' "$MODPATH"
extract "$ZIPFILE" 'service.sh' "$MODPATH"
extract "$ZIPFILE" 'service.apk' "$MODPATH"
extract "$ZIPFILE" 'sepolicy.rule' "$MODPATH"
chmod +x "$MODPATH/daemon"
extract "$ZIPFILE" 'daemon' "$MODPATH"
chmod 755 "$MODPATH/daemon"
mkdir "$MODPATH/zygisk"
@@ -90,12 +90,12 @@ mv "$MODPATH/libinject.so" "$MODPATH/inject"
chmod 755 "$MODPATH/inject"
CONFIG_DIR=/data/adb/tricky_store
if [ ! -d $CONFIG_DIR ]; then
if [ ! -d "$CONFIG_DIR" ]; then
ui_print "- Creating configuration directory"
mkdir -p $CONFIG_DIR
if [ ! -f $CONFIG_DIR/target.txt ]; then
mkdir -p "$CONFIG_DIR"
if [ ! -f "$CONFIG_DIR/target.txt" ]; then
ui_print "- Adding default scope"
extract "$ZIPFILE" 'daemon' "$MODPATH"
mv "$TMPDIR/target.txt"
extract "$ZIPFILE" 'target.txt' "$TMPDIR"
mv "$TMPDIR/target.txt" "$CONFIG_DIR/target.txt"
fi
fi