Rooting has changed dramatically over the past few years. The days of one-click root apps like KingoRoot or SuperSU are long gone. In modern Android (Android 11, 12, 13, 14, 15, and 16), rooting is executed at the boot image or kernel level using modern systemless solutions like Magisk, KernelSU, or APatch.
Whether you want full control over your hardware, need root-level ad-blocking with AdAway, want to customize your UI via Substratum/Iconify, or run powerful automation scripts, this complete guide walks you through rooting your Android phone or tablet safely and passing modern Google Play Integrity checks.
- Data Wipe Warning: Unlocking your bootloader will completely erase all user data on your device. Back up your photos, contacts, and personal files before starting.
- OEM Specifics: Bootloader unlocking is supported on Google Pixel, Motorola, OnePlus, Xiaomi, and Sony devices. Samsung devices utilize Knox which permanently trips upon rooting (disabling Samsung Pay and Secure Folder). North American carrier-locked models (AT&T, Verizon) typically have permanently locked bootloaders.
- Required Tools: A computer (Windows, macOS, or Linux), a reliable USB-C cable (read our Android USB OTG Guide for cable specs), and the official Android SDK Platform-Tools.
Method 1: Rooting via Magisk (Universal Systemless Root)
Magisk is the gold standard for Android rooting. It modifies the boot image without altering the read-only system partitions (systemless root), allowing you to install modules and hide root from sensitive apps.
Step 1: Enable Developer Options & OEM Unlocking
- Open Settings > About phone.
- Scroll down to Build number and tap it 7 times until you see “You are now a developer!”.
- Go back to Settings > System > Developer options.
- Enable OEM unlocking and USB debugging.
Step 2: Unlock the Bootloader via Fastboot
- Connect your Android device to your computer via USB.
- Download the latest official Android SDK Platform-Tools and extract the folder.
- Open a terminal (macOS/Linux) or PowerShell/Command Prompt (Windows) inside the platform-tools folder.
- Reboot into Fastboot (Bootloader) mode by running:
adb reboot bootloader - Verify device detection:
fastboot devices - Execute the unlock command (Note: this will wipe your device):
fastboot flashing unlock(For older devices, use
fastboot oem unlock). - Use the hardware volume buttons on your device to confirm and select Unlock the bootloader. The device will reboot and factory reset.
Step 3: Extract and Patch the Boot Image
- Download the exact official factory firmware/ROM currently running on your device (read our Stock ROM Guide if you need help finding OEM firmware).
- Extract the firmware archive and locate the
boot.img(or on Android 13+ devices, theinit_boot.img). - Transfer the
boot.imgorinit_boot.imgto your phone’s Internal Storage or Downloads folder. - Download and install the official Magisk App (v27+) APK on your phone.
- Open Magisk, tap Install next to Magisk, choose Select and Patch a File, and pick your transferred image file.
- Tap Let’s Go. Magisk will patch the file and output
magisk_patched_[random_strings].imginto your device’sDownloaddirectory.
Step 4: Flash the Patched Boot Image
- Transfer the
magisk_patched.imgback to your computer inside theplatform-toolsfolder. - Reboot your phone into Fastboot mode again:
adb reboot bootloader - Flash the patched image:
- If you patched
boot.img:fastboot flash boot magisk_patched.img - If your device has an
init_bootpartition (Pixel 7/8/9, Galaxy S23/S24, etc.):fastboot flash init_boot magisk_patched.img
- If you patched
- Reboot your device:
fastboot reboot - Open the Magisk app. You will see Installed: v27.x. Your device is now successfully rooted!
Method 2: Rooting via KernelSU (Kernel-Level Root)
KernelSU is a next-generation root solution that operates directly within the Linux Kernel space (requiring GKI – Generic Kernel Image 5.10+). Unlike traditional root solutions, non-root apps cannot detect KernelSU because su access is completely hidden unless explicitly granted in the KernelSU manager app.
- Verify your kernel version under Settings > About Phone > Android version > Kernel version. KernelSU supports devices running GKI kernel version
5.10.x,5.15.x,6.1.xor newer. - Install the official KernelSU Manager APK from GitHub.
- If your device kernel supports KernelSU out of the box (or via a custom kernel), open KernelSU and manage superuser permissions per-app without needing Zygisk injection.
How to Pass Play Integrity (Fix Banking Apps & Google Wallet)
Google uses the Play Integrity API (MEETS_DEVICE_INTEGRITY) to verify bootloader status. To ensure banking applications, Netflix, and Google Wallet work smoothly on a rooted device:
- Open Magisk settings and enable Zygisk.
- Enable Enforce DenyList and tap Configure DenyList. Select all banking apps, Google Play Services, and wallet apps.
- Download and flash the latest community Play Integrity Fix module (by chiteroman) via the Magisk Modules tab.
- Reboot your phone and clear cache for Google Play Store and Google Play Services.
How to Safely Unroot & Return to 100% Stock
If you ever want to sell your phone, install an OTA update cleanly, or return to stock:
- Open the Magisk app, tap Uninstall Magisk, and select Complete Uninstall.
- Alternatively, flash your phone’s original, untouched
boot.imgvia fastboot:fastboot flash boot stock_boot.img - To re-lock your bootloader (ensure device is fully stock first to avoid bricking):
fastboot flashing lock






