shakalaca / MagiskOnEmulator

Install Magisk on Official Android Emulator
Apache License 2.0
670 stars 113 forks source link

Android Studio - S #33

Open Cesku97 opened 3 years ago

Cesku97 commented 3 years ago

Hello!

I've been using your project for a while on Android 11.0 (Api 30) and it worked great but I cannot make it work for Android S

After I patch ramdisk and reboot AVD - Magisk is not installed. Only the Manager its installed but not the actual root.

Here are the logs when patching Magisk:

ramdisk.img: 1 file pushed, 0 skipped. 93.4 MB/s (2322258 bytes in 0.024s) magisk.zip: 1 file pushed, 0 skipped. 346.1 MB/s (13984961 bytes in 0.039s) busybox: 1 file pushed, 0 skipped. 96.7 MB/s (2074240 bytes in 0.020s) process.sh: 1 file pushed, 0 skipped. 48.6 MB/s (11359 bytes in 0.000s) [] Checking Android version [] Unzipping Magisk .. [*] New Magisk packaging format detected .. Connecting to raw.githubusercontent.com (185.199.111.133:443) wget: note: TLS certificate validation not implemented saving to '/data/local/tmp/tmp/lib/x86/busybox' busybox 100% |****| 2162k 0:00:00 ETA '/data/local/tmp/tmp/lib/x86/busybox' saved wget: short read, have only 30 gzip: invalid magic [-] Failed to unzip ramdisk, just use it .. [-] API level greater then 30 [] Check if we need to repack ramdisk before patching .. [-] Multiple cpio archives detected [] Unpacking ramdisk .. [-] Dumping from 0 to 1418438 .. Detected format: [lz4_legacy] [-] Dumping from 1418329 to 2322367 .. Detected format: [lz4_legacy] [] Repacking ramdisk .. [] Checking ramdisk status .. [-] Stock boot image detected [*] Patching ramdisk ..

Loading cpio: [/data/local/tmp/ramdisk.img] Add entry [init] (0750) Create directory [overlay.d] (0750) Create directory [overlay.d/sbin] (0750) Add entry [overlay.d/sbin/magisk32.xz] (0644) Add entry [overlay.d/sbin/magisk64.xz] (0644) Patch with flag KEEPVERITY=[false] KEEPFORCEENCRYPT=[true] Found fstab file [first_stage_ramdisk/fstab.ranchu] Remove pattern [,avb=vbmeta] Found fstab file [fstab.ranchu] Remove pattern [,avb=vbmeta] Loading cpio: [/data/local/tmp/ramdisk.img.orig] Backup mismatch entry: [first_stage_ramdisk/fstab.ranchu] -> [.backup/first_stage_ramdisk/fstab.ranchu] Backup mismatch entry: [fstab.ranchu] -> [.backup/fstab.ranchu] Backup mismatch entry: [init] -> [.backup/init] Record new entry: [overlay.d] -> [.backup/.rmlist] Record new entry: [overlay.d/sbin] -> [.backup/.rmlist] Record new entry: [overlay.d/sbin/magisk32.xz] -> [.backup/.rmlist] Record new entry: [overlay.d/sbin/magisk64.xz] -> [.backup/.rmlist] Create directory [.backup] (0000) Add entry [.backup/.magisk] (0000) Dump cpio: [/data/local/tmp/ramdisk.img] [] Done patching, compressing ramdisk .. [] Installing MagiskManager .. /data/local/tmp/process.sh[331]: /system/xbin/su: inaccessible or not found /data/local/tmp/process.sh[331]: /system/xbin/su: inaccessible or not found [] Try to fix missing x86 libraries .. [-] We need root to do this .. :( [] Installing su binaries .. total 4748 -rwxr-xr-x 1 u0_a177 u0_a177 3507 2021-04-13 23:59 addon.d.sh -rwxr-xr-x 1 u0_a177 u0_a177 5398 2021-04-13 23:59 boot_patch.sh -rwxr-xr-x 1 u0_a177 u0_a177 2214216 2021-04-13 23:59 busybox drwxr-xr-x 2 u0_a177 u0_a177 4096 2021-04-13 23:59 chromeos -rwxr-xr-x 1 u0_a177 u0_a177 313144 2021-04-13 23:59 magisk32 -rw-rw-rw- 1 u0_a177 u0_a177 108752 2021-04-13 23:59 magisk32.xz -rwxr-xr-x 1 u0_a177 u0_a177 342592 2021-04-13 23:59 magisk64 -rw-rw-rw- 1 u0_a177 u0_a177 110200 2021-04-13 23:59 magisk64.xz -rwxr-xr-x 1 u0_a177 u0_a177 803860 2021-04-13 23:59 magiskboot -rwxr-xr-x 1 u0_a177 u0_a177 858612 2021-04-13 23:59 magiskinit -rwxr-xr-x 1 u0_a177 u0_a177 4753 2021-04-13 23:59 uninstaller.sh -rwxr-xr-x 1 u0_a177 u0_a177 21962 2021-04-13 23:59 util_functions.sh [*] Clean up /data/local/tmp/ramdisk.img: 1 file pulled, 0 skipped. 308.5 MB/s (2601042 bytes in 0.008s) Press any key to continue . . .

Using patch.bat canary returns "Error to parse package"

image

shakalaca commented 3 years ago

For manager to work correctly , do not use AVD with Play services.

Mohsents commented 2 years ago

I've also had the same problem with API 31 (S) and what I've done just used patch.sh canary. finally it installed correctly.