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

mac m1 run rootAVD error #22

Closed
zhaozhiming opened this issue Feb 14, 2022 · 6 comments
Closed

mac m1 run rootAVD error #22

zhaozhiming opened this issue Feb 14, 2022 · 6 comments

Comments

@zhaozhiming
Copy link

Hi, I use rootAVD run on my android virtual devices, and found the error as follow, I'm use mac m1, the avd is arm64, please help.
Thanks.

./rootAVD.sh ~/Library/Android/sdk/system-images/android-32/google_apis_playstore/arm64-v8a/ramdisk.img
[!] and we are NOT in an emulator shell
[*] Set Directorys
[-] Test if ADB SHELL is working
[-] In any AVD via ADB, you can execute code without root in /data/data/com.android.shell
[-] Magisk installer Zip exists already
[*] Cleaning up the ADB working space
[*] Creating the ADB working space
[*] Push Magisk.zip into /data/data/com.android.shell/Magisk
[-] ./Magisk.zip: 1 file pushed, 0 skipped. 184.5 MB/s (6874374 bytes in 0.036s)
[-] ramdisk.img Backup exists already
[*] Push ramdisk.img into /data/data/com.android.shell/Magisk
[-] /Users/zhaozhiming/Library/Android/sdk/system-images/android-32/google_apis_playstore/arm64-v8a/ramdisk.img: 1 file pushed, 0 skipped. 191.3 MB/s (4068420 bytes in 0.020s)
[*] Push rootAVD.sh into /data/data/com.android.shell/Magisk
[-] rootAVD.sh: 1 file pushed, 0 skipped. 248.7 MB/s (7826127 bytes in 0.030s)
[-] 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 arm64 only
[-] Device SDK API: 32
[-] First API Level: 31
[-] Switch to the location of the script file
[*] Extracting busybox and Magisk.zip ...
[*] Extracting busybox from script ...
[!] Found a working busybox Binary:
[!] BusyBox v1.33.1-Magisk (2021-05-08 15:20:41 PDT) multi-call binary.
[-] Checking AVDs Internet connection...
[!] AVD is online
[!] Checking available Magisk Versions
[?] Choose a Magisk Version to install and make it local
[1] Local '23.0' (ENTER)
[2] Canary 1a1b346c(24102)
[3] Stable 24.1
[4] Alpha d021bca6-alpha(24102)
[1] You choose Magisk Local Version '23.0'
[*] Re-Run rootAVD in Magisk Busybox STANDALONE (D)ASH
[!] We are in an emulator shell
[-] We are now in Magisk Busybox STANDALONE (D)ASH
[*] rootAVD with Magisk '23.0' Installer
[-] Get Flags
[*] System-as-root, keep dm/avb-verity
[-] Encrypted data, keep forceencrypt
[*] RECOVERYMODE=false
[-] KEEPVERITY=true
[*] KEEPFORCEENCRYPT=true
[*] No 64-Bit Binarys found, please consider Magisk Alpha
[-] copy all armeabi-v7a files from /data/data/com.android.shell/Magisk/lib/armeabi-v7a to /data/data/com.android.shell/Magisk
[*] Detecting ramdisk.img compression
[!] Ramdisk.img uses lz4_legacy compression
[-] taken from shakalaca's MagiskOnEmulator/process.sh
[*] executing ramdisk splitting / extraction / repacking
[-] API level greater then 30
[*] Check if we need to repack ramdisk before patching ..
[-] Multiple cpio archives detected
[*] Unpacking ramdisk ..
[*] Searching for the real End of the 1st Archive
[-] Dumping from 0 to 1379130 ..
/data/data/com.android.shell/Magisk/magiskboot: line 1: syntax error: unexpected word (expecting ")")
[-] Dumping from 1379130 to 4068401 ..
/data/data/com.android.shell/Magisk/magiskboot: line 1: syntax error: unexpected word (expecting ")")
[*] Repacking ramdisk ..
[-] Deleting system ramdisk build.prop
[-] Test patch status and do restore
[-] Checking ramdisk status
[-] STATUS=2
[!] Boot image patched by unsupported programs
[!] Please restore back to stock boot image
[!] aborting the script
@newbit1
Copy link
Owner

newbit1 commented Feb 14, 2022

Hi, choose [3] Stable 24.1

@zhaozhiming
Copy link
Author

How to choose the stable 24.1? The script did not make me choose

@newbit1
Copy link
Owner

newbit1 commented Feb 14, 2022

The scripts pauses for 5s, then you can choose by typing a number. If not it keeps going.

@Andromeda606
Copy link

Same problem

@newbit1
Copy link
Owner

newbit1 commented Feb 16, 2022

Please provide logs with the new stable version.

@zhaozhiming
Copy link
Author

The scripts pauses for 5s, then you can choose by typing a number. If not it keeps going.

It works. Thanks.

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

3 participants