Skip to content

Zero-kernel 0.6.4 + Magisk bootloop on OnePlus 5T / LineageOS 22.2 (Android 15) - Need help! #32

@termuxman555

Description

@termuxman555

Hello zero-kernel developer,

I'm completely stuck and need your help. I've tried everything to get Magisk working with your kernel on my OnePlus 5T (dumpling) running LineageOS 22.2 (Android 15), but I always end up in a bootloop. Let me explain exactly what I tried:

My Setup:

  • Device: OnePlus 5T (A5010, dumpling)
  • ROM: LineageOS 22.2 (20260106 nightly) - Android 15
  • Recovery: TWRP 3.7.1_12-2
  • Kernel: zero-0.6.4-dumplinger-los-4.4.zip
  • Magisk: v30.7

What I tried:

Attempt #1 (zero kernel FIRST, then Magisk patch):

  1. Clean flash in TWRP:
    • Flashed zero-0.6.4-dumplinger-los-4.4.zip
    • Flashed lineage-22.2-20260106-nightly-dumpling-signed.zip
    • Flashed Disable_Dm-Verity_ForceEncrypt.zip
  2. Booted system once (everything worked fine with zero kernel)
  3. Back to TWRP, dumped current boot partition:
    dd if=/dev/block/by-name/boot of=/sdcard/zero_boot.img
  4. Patched zero_boot.img with Magisk Manager ("Select and Patch a File")
  5. Flashed the patched image back via TWRP (Install Image -> Boot)
  6. Result: Bootloop (phone stuck at boot animation or black screen)

Attempt #2 (Magisk patch FIRST, then zero kernel):

  1. Clean flash in TWRP (without zero kernel this time):
  • Flashed lineage-22.2-20260106-nightly-dumpling-signed.zip
  • Flashed Disable_Dm-Verity_ForceEncrypt.zip
  1. Booted system once (stock kernel, no zero yet)

  2. Back to TWRP, dumped stock boot.img:
    dd if=/dev/block/by-name/boot of=/sdcard/stock_boot.img

  3. Patched stock_boot.img with Magisk Manager

  4. Flashed patched image via TWRP

  5. Booted system to verify Magisk works (it did - stock kernel + Magisk was fine)

  6. Back to TWRP, flashed zero-0.6.4-dumplinger-los-4.4.zip (thinking AnyKernel3 would preserve the Magisk patch)

  7. Result: Bootloop again

The confusion:

  • I understand zero kernel uses AnyKernel3 (I see the tools/ folder and magiskboot binary inside the zip)
  • I know AnyKernel3 is supposed to modify the existing boot partition while preserving modifications (like Magisk)
  • But in both scenarios, after zero kernel is installed (whether before or after Magisk), the result is always bootloop
  • I've recovered each time by restoring boot from backup, so the device is fine

My questions:

  1. Is zero-kernel 0.6.4 compatible with Magisk v30.7 on Android 15 at all?
  2. Does zero kernel modify the ramdisk in a way that breaks Magisk?
  3. Does zero kernel have built-in KernelSU? (I checked /sys/fs/ksu - no such directory)
  4. What is the CORRECT sequence to get root on your kernel? Any official method?

I'm not a kernel developer, just an advanced user trying to get Kali NetHunter working (I have the NetHunter zip but that's a separate issue). Any guidance would save my sanity.

Thank you for your work on zero kernel!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions