How to root - falendra-sahu/rooting GitHub Wiki
📌 Prerequisites for All Methods
- Unlocked Bootloader: Essential for modifying system partitions.
- Device Backup: Always back up your data to prevent loss.
- USB Debugging Enabled: Navigate to
Settings > Developer Options
to enable. - ADB & Fastboot Tools: Install on your PC for command-line operations.([kernelsu.org][1], [magiskmodule.gitlab.io][2])
1. Root with APatch
A kernel-level root solution compatible with Android 13+ devices.([kernelsu.org][3])
✅ Requirements
- Android 13 or higher
- Unlocked bootloader
- APatch Manager APK
- Stock
boot.img
orinit_boot.img
([reddit.com][4], [youtube.com][5], [reddit.com][6])
🔄 Steps
-
Verify Kernel Compatibility:
-
Run the following command to check for required kernel configurations:
zcat /proc/config.gz | grep CONFIG_KALLSYMS
-
-
Extract Boot Image:
- Use tools like
fastboot
orpayload-dumper
to extractboot.img
orinit_boot.img
from your firmware.([kernelsu.org][1])
- Use tools like
-
Install APatch Manager:
- Download and install the latest [APatch Manager](https://[apatch.dev](https://apatch.dev/install.html?utm_source=chatgpt.com)/install.html).([apatch.dev][7])
-
Patch Boot Image:
- Open APatch Manager, select "Install," choose the extracted boot image, and enter an 8-digit key of your choice.([xdaforums.com][8])
-
Flash Patched Image:
-
Reboot into fastboot mode and flash the patched image:
fastboot flash boot patched_boot.img
-
-
Reboot Device:
- Restart your device to complete the rooting process.([magiskmodule.gitlab.io][2])
2. Root with KernelSU
A kernel-based root solution offering deep system access.([privacyportal.co.uk][9])
✅ Requirements
- Custom kernel with KernelSU support
- KernelSU Manager APK
- Stock
boot.img
orinit_boot.img
([digitbin.com][10], [reddit.com][6])
🔄 Steps
-
Install KernelSU Manager:
-
Extract Boot Image:
- Obtain
boot.img
orinit_boot.img
from your device's firmware.
- Obtain
-
Patch Boot Image:
- Open KernelSU Manager, tap "Install," select the extracted image, and let the app patch it.
-
Flash Patched Image:
-
Reboot into fastboot mode and flash the patched image:
fastboot flash boot patched_boot.img
-
-
Reboot Device:
- Restart your device.([magiskmodule.gitlab.io][2])
-
Verify Root Access:
- Open KernelSU Manager to confirm root status.
3. Root with KernelSU Next
An advanced version of KernelSU with enhanced features.
✅ Requirements
- Kernel with KernelSU Next integration
- KernelSU Next Manager APK
- Stock
boot.img
orinit_boot.img
([reddit.com][6])
🔄 Steps
-
Install KernelSU Next Manager:
- Download and install the KernelSU Next Manager.
-
Extract Boot Image:
- Obtain
boot.img
orinit_boot.img
from your device's firmware.
- Obtain
-
Patch Boot Image:
- Use the manager to patch the extracted image.
-
Flash Patched Image:
-
Reboot into fastboot mode and flash the patched image:
fastboot flash boot patched_boot.img
-
-
Reboot Device:
- Restart your device.
-
Verify Root Access:
- Open KernelSU Next Manager to confirm root status.
4. Root with Magisk
A systemless root method compatible with a wide range of devices.
✅ Requirements
- Unlocked bootloader
- Magisk APK
- Stock
boot.img
([reddit.com][4], [privacyportal.co.uk][11])
🔄 Steps
-
Install Magisk App:
-
Extract Boot Image:
- Obtain
boot.img
from your device's firmware.
- Obtain
-
Patch Boot Image:
- Open Magisk, tap "Install," select "Select and Patch a File," and choose the extracted
boot.img
.
- Open Magisk, tap "Install," select "Select and Patch a File," and choose the extracted
-
Flash Patched Image:
-
Transfer the patched image to your PC, reboot into fastboot mode, and flash it:
fastboot flash boot magisk_patched.img
-
-
Reboot Device:
- Restart your device.([magiskmodule.gitlab.io][2])
-
Verify Root Access:
- Open Magisk to confirm root status.
5. Root with Kitsune Mask
A fork of Magisk with enhanced root hiding capabilities.([biplobsd.me][13])
✅ Requirements
- Unlocked bootloader
- Custom recovery (e.g., TWRP)
- Kitsune Mask ZIP and Manager APK([medium.com][14], [topjohnwu.github.io][12])
🔄 Steps
-
Install Custom Recovery:
- Flash TWRP or another custom recovery suitable for your device.([magiskmodule.gitlab.io][2])
-
Flash Kitsune Mask:
- Boot into recovery, select "Install," and flash the Kitsune Mask ZIP.
-
Install Kitsune Manager:
- After rebooting, install the Kitsune Manager APK.
-
Verify Root Access:
- Open Kitsune Manager to confirm root status.
⚠️ Disclaimer
Rooting your device can void warranties and may lead to data loss or bricking. Proceed with caution and ensure you understand the risks involved.