Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Not Working on Api30 x86 #18

Closed
djkcyl opened this issue Dec 27, 2021 · 7 comments
Closed

Not Working on Api30 x86 #18

djkcyl opened this issue Dec 27, 2021 · 7 comments

Comments

@djkcyl
Copy link

djkcyl commented Dec 27, 2021

❯ .\rootAVD.bat C:\Users\cyl\AppData\Local\Android\Sdk\system-images\android-30\google_apis\x86\ramdisk.img
[*] Set Directorys
[-] Test if ADB SHELL is working
[-] ADB connectoin possible
[-] In any AVD via ADB, you can execute code without root in /data/data/com.android.shell
[*] looking for Magisk installer Zip
[*] Cleaning up the ADB working space
[*] Creating the ADB working space
[*] Push Magisk.zip into /data/data/com.android.shell/Magisk
[-] D:\下载\rootAVD-master\Magisk.zip: 1 file pushed, 0 skipped. 233.0 MB/s (6874374 bytes in 0.028s)
[*] create Backup File
[*] Push ramdisk.img into /data/data/com.android.shell/Magisk
[-] C:\Users\cyl\AppData\Local\Android\Sdk\system-images\android-30\google_apis\x86\ramdisk.img: 1 file pushed, 0 skipped. 285.0 MB/s (1520108 bytes in 0.005s)
[-] Copy rootAVD Script into Magisk DIR
rootAVD.sh: 1 file pushed, 0 skipped. 126.4 MB/s (7826127 bytes in 0.059s)
[-] run the actually Boot/Ramdisk/Kernel Image Patch Script
[*] from Magisk by topjohnwu and modded by NewBit XDA
[!] We are in an emulator shell
[-] Api Level Arch Detect
[-] Device Platform is x86 only
[-] Device SDK API: 30
[-] First API Level: 30
[-] Switch to the location of the script file
[*] Extracting busybox and Magisk.zip ...
unzip: couldn't open /data/data/com.android.shell/Magisk/Magisk.zip: I/O error
chmod: /data/data/com.android.shell/Magisk/lib: No such file or directory
[*] Extracting busybox from script ...
[!] There is no busybox behind the script
[*] Trying to Download the Up-To-Date Script Version
[!] Temporarily installing Magisk
cp: bad '/lib': No such file or directory
chmod: /data/data/com.android.shell/Magisk/lib: No such file or directory
[-] Checking AVDs Internet connection...
[!] AVD is offline

image
image
image

@newbit1
Copy link
Owner

newbit1 commented Dec 27, 2021

unzip: couldn't open /data/data/com.android.shell/Magisk/Magisk.zip: I/O error

Something is wrong with your Magisk.zip

@djkcyl
Copy link
Author

djkcyl commented Dec 27, 2021

unzip: couldn't open /data/data/com.android.shell/Magisk/Magisk.zip: I/O error

Something is wrong with your Magisk.zip

so, how to download it? this url?

@newbit1
Copy link
Owner

newbit1 commented Dec 27, 2021

Try to redownload the whole rootAVD package. If your AVD is online, it should offer you a download option as well.

@djkcyl
Copy link
Author

djkcyl commented Dec 27, 2021

image
avd is indeed online

@djkcyl
Copy link
Author

djkcyl commented Dec 27, 2021

If I enter the install command, the installed magisk app will be uninstalled

@djkcyl
Copy link
Author

djkcyl commented Dec 27, 2021

image
I re-downloaded rootAVD.zip

@djkcyl
Copy link
Author

djkcyl commented Dec 27, 2021

I found the reason, because I used the Chinese directory name

@djkcyl djkcyl closed this as completed Dec 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants