shakalaca/MagiskOnEmulator

Rooting Google Play system image

mirfatif opened this issue · 1 comments

Trying to root Android-11 emulator with Google Play APIs (user build which contains Play Store app), when booting from patched ramdisk:

...
[    6.279465] EXT4-fs (vdd1): recovery complete
[    6.280826] EXT4-fs (vdd1): mounted filesystem with ordered data mode. Opts: 
[    6.287730] EXT4-fs (dm-0): mounted filesystem without journal. Opts: barrier=1
[    6.292128] EXT4-fs (dm-3): mounted filesystem without journal. Opts: barrier=1
[    6.296592] EXT4-fs (dm-2): mounted filesystem without journal. Opts: barrier=1
[    6.302913] EXT4-fs (dm-1): mounted filesystem without journal. Opts: barrier=1
[    6.305871] printk: init: 75 output lines suppressed due to ratelimiting
[    6.309238] magiskinit: Switch root to /system_root
[    6.312007] magiskinit: Mount /sbin tmpfs overlay
[    6.313770] magiskinit: mount tmpfs->/sbin failed with 2: No such file or directory
[    6.316868] magiskinit: mkdir /sbin/.magisk 493 failed with 2: No such file or directory
[    6.319620] magiskinit: mkdir /sbin/.magisk/mirror 0 failed with 2: No such file or directory
[    6.322194] magiskinit: mkdir /sbin/.magisk/block 0 failed with 2: No such file or directory
[    6.443211] magiskinit: mkdir /sbin/.magisk 493 failed with 2: No such file or directory
[    6.445684] magiskinit: open: /sbin/.magisk/config failed with 2: No such file or directory
[    6.448211] magiskinit: write failed with 9: Bad file number
[    6.449895] magiskinit: open: /sbin/magiskinit failed with 2: No such file or directory
[    6.452511] init[1]: segfault at ffffffff ip 0000000008082cca sp 00000000ffcb8b98 error 4 in init (deleted)[8048000+94000]
[    6.455761] Code: 8b 48 d3 8b 5a d3 39 d9 0f 85 02 02 00 00 8b 48 d7 8b 5a d7 39 d9 0f 85 f4 01 00 00 8b 48 db 8b 5a db 39 d9 0f 85 e6 01 00 00 <8b> 48 df 8b 5a df 39 d9 0f 85 d8 01 00 00 8b 48 e3 8b 5a e3 39 d9
[    6.461863] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    6.464190] CPU: 0 PID: 1 Comm: init Tainted: G           O      5.4.61-android11-0-00791-gbad091cc4bf3-ab6833933 #1
[    6.468038] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.11.1-0-g0551a4be2c-prebuilt.qemu-project.org 04/01/2014
[    6.471601] Call Trace:
...
[    6.511450] Rebooting in 5 seconds..

Can we fix this /sbin missing issue?

Sorry it's been fixed in the latest release. Long live Magisk!