diff --git a/scripts/avd_test.sh b/scripts/avd_test.sh index 6f6452b01..4c2b1c132 100755 --- a/scripts/avd_test.sh +++ b/scripts/avd_test.sh @@ -64,6 +64,14 @@ test_api() { adb shell magisk -v kill -INT $pid wait $pid + + # Restore patches + if [ -f "${ramdisk}.bak" ]; then + cp "${ramdisk}.bak" "$ramdisk" + fi + if [ -f "${features}.bak" ]; then + cp "${features}.bak" "$features" + fi } # Build our executables