Root via KernelSU - yashaswee-exe/AndroidGuides GitHub Wiki
- Make sure your bootloader is unlocked.
- If you are facing issues while executing adb/fastboot commands, try updating the respective drivers.
- Download & install KernelSU apk from here.
-
Get the boot.img or init_boot.img of your current custom/stock ROM.
-
Patch the boot.img using KSU app by clicking on "Click to install" and select the boot/init_boot.img.
- Move the patched boot.img from
Downloads
folder to PC and flash the patched it from fastboot, using the following commands:
fastboot flash boot patched_boot.img
OR
fastboot flash init_boot patched_init_boot.img
- To boot back to the system:
fastboot reboot
You should be rooted now 😎