Skip to content

Commit c27f44d

Browse files
committed
feat: hot install support
related: backslashxx/mountify@5bdfb8f
1 parent f174730 commit c27f44d

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

module/customize.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ CONFIG_DIR="/data/adb/tricky_store"
44
MODID=`grep_prop id $TMPDIR/module.prop`
55
NEW_MODID=".TA_utl"
66

7+
# Hot install
8+
export MODULE_HOT_INSTALL_REQUEST="true"
9+
export MODULE_HOT_RUN_SCRIPT="hotinstall.sh"
10+
711
MIN_KERNELSU_VERSION=32234
812
MIN_APATCH_VERSION=11159
913

module/hostinstall.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
MODPATH=${0%/*}
4+
5+
sh "$MODPATH/post-fs-data.sh" > /dev/null 2>&1
6+
sh "$MODPATH/service.sh" > /dev/null 2>&1

module/prop.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,5 @@ empty_reset_prop "ro.boot.vbmeta.invalidate_on_error" "yes"
6363
empty_reset_prop "ro.boot.vbmeta.avb_version" "1.0"
6464
empty_reset_prop "ro.boot.vbmeta.hash_alg" "sha256"
6565
empty_reset_prop "ro.boot.vbmeta.size" "4096"
66+
67+
resetprop -c || true

0 commit comments

Comments
 (0)