Let magic mount optional

This commit is contained in:
vvb2060
2024-01-05 18:39:59 +08:00
committed by John Wu
parent 5de597f079
commit ecc74d45d1
3 changed files with 37 additions and 30 deletions

View File

@ -138,7 +138,7 @@ test_emu() {
emu_pid=$!
wait_emu wait_for_boot
adb shell magisk -v
adb shell 'PATH=$PATH:/debug_ramdisk magisk -v'
# Install the Magisk app
adb install -r -g out/app-${variant}.apk
@ -149,7 +149,7 @@ test_emu() {
# Install LSPosed
if [ $api -ge $lsposed_min_api -a $api -le $atd_max_api ]; then
adb push out/lsposed.zip /data/local/tmp/lsposed.zip
adb shell echo 'magisk --install-module /data/local/tmp/lsposed.zip' \| /system/xbin/su
adb shell echo 'PATH=$PATH:/debug_ramdisk magisk --install-module /data/local/tmp/lsposed.zip' \| /system/xbin/su
fi
adb reboot