Restore AVD after testing

This commit is contained in:
topjohnwu 2022-06-07 01:06:27 -07:00
parent d6a5354bff
commit 9dc6d9afce

View File

@ -64,6 +64,14 @@ test_api() {
adb shell magisk -v adb shell magisk -v
kill -INT $pid kill -INT $pid
wait $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 # Build our executables