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

🔄 Steps

  1. Verify Kernel Compatibility:

    • Run the following command to check for required kernel configurations:

      zcat /proc/config.gz | grep CONFIG_KALLSYMS
      
  2. Extract Boot Image:

    • Use tools like fastboot or payload-dumper to extract boot.img or init_boot.img from your firmware.([kernelsu.org][1])
  3. Install APatch Manager:

  4. 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])
  5. Flash Patched Image:

    • Reboot into fastboot mode and flash the patched image:

      fastboot flash boot patched_boot.img
      
  6. Reboot Device:


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 or init_boot.img([digitbin.com][10], [reddit.com][6])

🔄 Steps

  1. Install KernelSU Manager:

  2. Extract Boot Image:

    • Obtain boot.img or init_boot.img from your device's firmware.
  3. Patch Boot Image:

    • Open KernelSU Manager, tap "Install," select the extracted image, and let the app patch it.
  4. Flash Patched Image:

    • Reboot into fastboot mode and flash the patched image:

      fastboot flash boot patched_boot.img
      
  5. Reboot Device:

  6. 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 or init_boot.img([reddit.com][6])

🔄 Steps

  1. Install KernelSU Next Manager:

    • Download and install the KernelSU Next Manager.
  2. Extract Boot Image:

    • Obtain boot.img or init_boot.img from your device's firmware.
  3. Patch Boot Image:

    • Use the manager to patch the extracted image.
  4. Flash Patched Image:

    • Reboot into fastboot mode and flash the patched image:

      fastboot flash boot patched_boot.img
      
  5. Reboot Device:

    • Restart your device.
  6. 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

🔄 Steps

  1. Install Magisk App:

  2. Extract Boot Image:

    • Obtain boot.img from your device's firmware.
  3. Patch Boot Image:

    • Open Magisk, tap "Install," select "Select and Patch a File," and choose the extracted boot.img.
  4. Flash Patched Image:

    • Transfer the patched image to your PC, reboot into fastboot mode, and flash it:

      fastboot flash boot magisk_patched.img
      
  5. Reboot Device:

  6. 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

🔄 Steps

  1. Install Custom Recovery:

  2. Flash Kitsune Mask:

    • Boot into recovery, select "Install," and flash the Kitsune Mask ZIP.
  3. Install Kitsune Manager:

    • After rebooting, install the Kitsune Manager APK.
  4. 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.