From 3f4f4598e8a4c68949fcf3839c4ebbdb6d0c8365 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 31 Mar 2023 17:20:32 -0700 Subject: [PATCH] Better AVD support --- scripts/avd_magisk.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/avd_magisk.sh b/scripts/avd_magisk.sh index 910483510..359d9b1dc 100755 --- a/scripts/avd_magisk.sh +++ b/scripts/avd_magisk.sh @@ -145,9 +145,12 @@ ln -s ./magiskpolicy $MAGISKTMP/supolicy mkdir -p $MAGISKTMP/.magisk/mirror mkdir $MAGISKTMP/.magisk/block +mkdir $MAGISKTMP/.magisk/worker touch $MAGISKTMP/.magisk/config # Boot up +export MAGISKTMP +$MAGISKTMP/magisk --preinit-device $MAGISKTMP/magisk --post-fs-data start $MAGISKTMP/magisk --service