From 60caa56e95fe7ed3bf0c808d70c2a6f0e1463b7e Mon Sep 17 00:00:00 2001 From: newbit1 Date: Mon, 18 Jan 2021 00:05:09 +0100 Subject: [PATCH] changed unzip to tar extraction for Magisk.zip --- rootAVD.bat | 210 ++++++++++++++++++++++++++-------------------------- 1 file changed, 106 insertions(+), 104 deletions(-) diff --git a/rootAVD.bat b/rootAVD.bat index 353b83b..da25ec6 100644 --- a/rootAVD.bat +++ b/rootAVD.bat @@ -1,104 +1,106 @@ -@echo off -SetLocal EnableDelayedExpansion -REM ########################################################################################## -REM # -REM # Magisk Boot Image Patcher - original created by topjohnwu and modded by shakalaca's -REM # modded by NewBit XDA for Android Studio AVD -REM # Successfully tested on Android API: -REM # [Dec. 2019] - 29 Google Apis Play Store x86_64 Production Build -REM # [Jan. 2021] - 30 Google Apis Play Store x86_64 Production Build -REM # -REM ########################################################################################## - -if "%1" == "" ( - echo "rootAVD needs a path with file to an AVD ramdisk" - echo "rootAVD will backup your ramdisk.img and replace it when finished" - echo "rootAVD.bat %LOCALAPPDATA%\Android\Sdk\system-images\android-30\google_apis_playstore\x86_64\ramdisk.img" - exit /B 0 -) - -set RAMDISKFILE=%1 -set BACKUPFILE=%RAMDISKFILE%.bak -set ROOTAVD="%cd%" - -IF NOT EXIST %RAMDISKFILE% ( - echo "[!] %RAMDISKFILE% doesn't exist" - exit /B 0 -) - -IF NOT EXIST %BACKUPFILE% ( - echo "[*] create Backup File" - copy %RAMDISKFILE% %BACKUPFILE% -) ELSE ( - echo "[-] Backup exists already" -) -set ADBWORKS= -adb shell -n echo true > tmpFile -set /P ADBWORKS= tmpFile +set /P ADBWORKS=