Skip to content

Commit

Permalink
Extract post-install.example.sh to /data/adb/sui
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed Aug 19, 2023
1 parent cae3e8b commit de69053
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions template/magisk_module/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ ui_print "- Fetching information for SystemUI and Settings"

ui_print "- Extracting files for rish"
extract "$ZIPFILE" 'rish' "$MODPATH"
extract "$ZIPFILE" 'post-install.example.sh' "$MODPATH"
extract "$ZIPFILE" 'post-install.example.sh' "$ROOT_PATH"
set_perm "$MODPATH/rish" 0 2000 0770
set_perm "$MODPATH/post-install.example.sh" 0 0 0600
set_perm "$ROOT_PATH/post-install.example.sh" 0 0 0600

if [ -f $ROOT_PATH/post-install.sh ]; then
cat "$ROOT_PATH/post-install.sh" | grep -q "SCRIPT_VERSION=2"
Expand All @@ -115,7 +115,6 @@ rm -rf /data/adb/sui/res
rm -rf /data/adb/sui/res.new
rm -f /data/adb/sui/z
rm -f /data/adb/sui/com.android.systemui
rm -f /data/adb/sui/post-install.example.sh
rm -f /data/adb/sui/starter
rm -f /data/adb/sui/sui.dex
rm -f /data/adb/sui/sui.dex.new
Expand Down

0 comments on commit de69053

Please sign in to comment.