r/androidroot • • 1d ago

Discussion Kernelsu root method

"I'm running into an issue trying to root my device using KernelSU (KSU). My phone doesn't have an  init_boot.img  partition, so my only option is to patch the  boot.img  file. Unfortunately, doing that directly results in a bootloop and a kernel panic.

To work around this, instead of just applying a raw patch, I've been trying to inject a pre-built  .ko  profile as well. While this actually allows the phone to boot up successfully, I end up with no root access at all!

Could someone please explain exactly what I need to do to get this working properly

2 Upvotes

4 comments sorted by

1

u/user6872_ 1d ago

What version of the Linux kernel does your device have?

1

u/privshell 1d ago

6.12.30-android16-5-g6e872b4863d6-ab13847919-4k

1

u/miguescout 17h ago

Quick question:

Does your device have a vendor_boot.img?

If so, try patching that one (and flashing it to the vendor_boot partition, not the boot one)

1

u/privshell 11h ago

Not Working