Instant reboot to fastboot mode after flashing Magisk-patched ramdisk images
Hey,
I'm currently trying to install Magisk on my Nothing Phone (3) - model number A024 - with the Nothing OS stock ROM and am facing some issues with the patching of its boot.img. I'd be really glad if you could help me figure this one out.
Device: Nothing Phone (3) Android version: 15 (Kernel: 6.6.57-android15-8-g8f666e70c848-ab13394517-4k@1 Tue Apr 22) Magisk version name: https://github.com/topjohnwu/Magisk/commit/78f7fa348eec53bbe154afb3026e75595b6d662e Magisk version code: 30100
wasn't sure if main is stable enough
I've tried to root the device based on the instructions available in the wiki > patching image for a ramdisk-enabled device.
Here, I tried the method mentioned in the wiki (fastboot flash boot <magisk_patched.img>) - as well as the one recommended in various instructions for older Nothing devices (fastboot boot <magisk_patched.img>.
There doesn't seem to be a vbmeta.img partition - at least the previous Nothing phones didn't have one and the log following log point in a different direction.
There were no errors on boot, but the app doesn't detected Magisk.
Magisk Ramdisk Patching Log
- Device platform: arm64-v8a
- Installing: 78f7fa34 (30100)
- Copying image to cache
Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]
HEADER_VER [4]
KERNEL_SZ [36313600]
RAMDISK_SZ [0]
PAGESIZE [4096]
CMDLINE []
- Unpacking boot image
KERNEL_FMT [raw]
[boot/sign.rs:273] unexpected ASN.1 DER tag: expected SEQUENCE, got APPLICATION [1] (primitive)
VBMETA
- Checking ramdisk status
- Stock boot image detected
- Patching ramdisk
resetprop: get prop [ro.crypto.state]: [encrypted]
resetprop: get prop [ro.crypto.type]: [file]
resetprop: get prop [ro.crypto.metadata.enabled]: [true]
- Pre-init storage partition: sda12
Add file [init] (100750)
Create directory [overlay.d] (0750)
Create directory [overlay.d/sbin] (0750)
Add file [overlay.d/sbin/magisk.xz] (100644)
Add file [overlay.d/sbin/stub.xz] (100644)
Add file [overlay.d/sbin/init-ld.xz] (100644)
Patch with flag KEEPVERITY=[true] KEEPFORCEENCRYPT=[true]
Create directory [.backup] (0000)
Add file [.backup/.magisk] (100000)
Dumping cpio: [ramdisk.cpio]
- Repacking boot image
Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]
HEADER_VER [4]
KERNEL_SZ [36313600]
RAMDISK_SZ [0]
PAGESIZE [4096]
CMDLINE []
KERNEL_FMT [raw]
[boot/sign.rs:273] unexpected ASN.1 DER tag: expected SEQUENCE, got APPLICATION [1] (primitive)
VBMETA
Repack to boot image: [new-boot.img]
RAMDISK_FMT: [raw] -> [lz4_legacy]
HEADER_VER [4]
KERNEL_SZ [36313600]
RAMDISK_SZ [391758]
PAGESIZE [4096]
CMDLINE []
****************************
Output file is written to
/storage/emulated/0/Download/magisk_patched-30100_JkHIl.img
****************************
cp: can't preserve ownership of 'busybox': Operation not permitted
cp: can't preserve ownership of 'init-ld': Operation not permitted
cp: can't preserve ownership of 'magisk': Operation not permitted
cp: can't preserve ownership of 'magiskboot': Operation not permitted
cp: can't preserve ownership of 'magiskinit': Operation not permitted
cp: can't preserve ownership of 'magiskpolicy': Operation not permitted
- All done!
Thank you in advance!