From 4d39cc4ac6e1dfe1352ab8a6594bf43b0bc0f753 Mon Sep 17 00:00:00 2001 From: newbit1 Date: Tue, 19 Jan 2021 13:47:30 +0100 Subject: [PATCH] changed unzipping process --- rootAVD.bat | 59 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 33 insertions(+), 26 deletions(-) diff --git a/rootAVD.bat b/rootAVD.bat index da25ec6..d7c7ff4 100644 --- a/rootAVD.bat +++ b/rootAVD.bat @@ -21,8 +21,17 @@ set RAMDISKFILE=%1 set BACKUPFILE=%RAMDISKFILE%.bak set ROOTAVD="%cd%" set MAGISKZIP=%ROOTAVD%\Magisk.zip +set BUSYBOXINSTLR=%ROOTAVD%\update-binary + + +CD %RAMDISKFILE% +IF "%ERRORLEVEL%"=="0" ( + echo "[*] Please give a PATH to a file, not just a Directory" + exit /B 0 +) + IF NOT EXIST %RAMDISKFILE% ( - echo "[!] %RAMDISKFILE% doesn't exist" + echo "[*] %RAMDISKFILE% doesn't exist" exit /B 0 ) @@ -32,11 +41,14 @@ IF NOT EXIST %BACKUPFILE% ( ) ELSE ( echo "[-] Backup exists already" ) + +echo "[-] In any AVD via ADB, you can execute code without root in /data/data/com.android.shell" +set ADBWORKDIR=/data/data/com.android.shell +set ADBBASEDIR=%ADBWORKDIR%/Magisk set ADBWORKS= adb shell -n echo true > tmpFile set /P ADBWORKS=