newbit1 / rootAVD

Script to root AVDs running with QEMU Emulator from Android Studio
GNU General Public License v3.0
1.43k stars 186 forks source link

mac m1 run rootAVD error #23

Closed GeT1t closed 2 years ago

GeT1t commented 2 years ago

https://github.com/newbit1/rootAVD/issues/22

[!] 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. 204.3 MB/s (6874374 bytes in 0.032s)
[*] create Backup File of ramdisk.img
cp: ramdisk.img/ramdisk.img.backup: Not a directory
[*] Push ramdisk.img into /data/data/com.android.shell/Magisk
[-] ramdisk.img: 1 file pushed, 0 skipped. 218.8 MB/s (4206334 bytes in 0.018s)
[*] Push rootAVD.sh into /data/data/com.android.shell/Magisk
[-] rootAVD.sh: 1 file pushed, 0 skipped. 194.9 MB/s (7826127 bytes in 0.038s)
[-] 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: 31
[-] 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 e7c82f20-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 1568182 ..
/data/data/com.android.shell/Magisk/magiskboot: line 1: syntax error: unexpected word (expecting ")")
[-] Dumping from 1568182 to 4206315 ..
/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

l find this issues, but i want to use 23.0(because of magisk hide), can i find any way to use it.

newbit1 commented 2 years ago

only mixed architecure ia supported by 23.x But there is thill a magisk hide option in 24.x: Settings- Denylist