From 9dc6d9afce786ca83060da4e2640ff455a5059be Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 7 Jun 2022 01:06:27 -0700 Subject: [PATCH] Restore AVD after testing --- scripts/avd_test.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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