Skip to content

Android Rooting Guide

Master Android rooting with comprehensive tutorials covering bootloader unlocking, root installation, and advanced customization techniques.

Quick Navigation โ€‹

TIP

New to rooting? Start with Understanding Root Access

Steps

Ready to begin? Choose your path:

NOTE

Need help? Visit Troubleshooting or FAQ


Understanding Root Access โ€‹

Root access grants superuser (administrator) privileges on Android, providing complete control over your device's operating system and hardware.

What Root Enables โ€‹

  • System-level control over files, processes, and hardware
  • Bypass manufacturer restrictions on any Android version
  • Install powerful apps requiring deep system integration (see Root Apps)
  • Modify core system files and customize every aspect via Magic Mount, OverlayFS, or KPM
  • Access hidden hardware features and advanced kernel-level configurations
  • Kernel-level code injection via APatch KPM (inline-hook, syscall-table-hook)
  • Fine-grained root access control via KernelSU App Profiles (uid, gid, capabilities, SELinux)

Benefits vs Risks โ€‹

BenefitsRisks
Complete device controlWarranty void (usually permanent)
System-wide ad blockingReduced security if misconfigured
Performance tuningBanking apps require active hiding (solutions)
Privacy enhancements (firewall, permission control)OTA updates require manual re-patching
Bloatware removalPotential for device bricking
Full app + data backups (Swift Backup, Neo Backup)Play Integrity may break unpredictably
Kernel-level tweaks (CPU, GPU, scheduler)Strong Integrity generally unachievable on unlocked devices
Custom ROM installation freedomBootloader unlock wipes ALL data

Is Rooting Right for You? โ€‹

โœ… Root If:โŒ Don't Root If:
Want complete control over your deviceRely solely on banking/finance apps
System-wide ad blocking is priorityUncomfortable with terminal/command-line
Enjoy deep customization & themingNeed 100% warranty coverage
Privacy & anti-tracking mattersWant seamless automatic OTA updates
Willing to learn & troubleshootNew to Android and risk-averse
Use device as daily driver with backupsPrefer stock, zero-maintenance experience

Prerequisites and Safety โ€‹

Critical Warnings โ€‹

โš ๏ธ PERMANENT CONSEQUENCES

Data Loss - Unlocking bootloader completely erases all device data. Backup everything before proceeding.

Warranty Void - Bootloader unlocking permanently voids manufacturer warranty on most devices.

Samsung Knox - Bootloader unlock permanently trips Knox eFuse. Samsung Pay, Secure Folder, Samsung Pass are lost forever - even if you re-lock the bootloader.

Security Risks - Root access can expose your device to malware if misused. Only grant root to trusted apps. With great power comes great responsibility.

Banking & Finance Apps - Many financial apps actively detect root. Play Integrity bypass is a continuous cat-and-mouse game requiring ongoing maintenance.

Bricking Risk - Incorrect procedures can permanently damage your device. Follow instructions exactly and have a recovery plan ready.

Essential Requirements โ€‹

Hardware:

  • Android device with unlockable bootloader (verify before starting - some carrier-locked variants cannot be unlocked)
  • 50% or higher battery charge (a dead battery during flashing = brick)
  • Quality data-capable USB cable (not charge-only cables)
  • Computer (Windows, macOS, or Linux - Linux is often the most reliable)

Software:

  • Android Platform Tools (ADB/Fastboot) - keep these updated!
  • Device-specific USB drivers (Windows only - see OEM driver list)
  • Stock firmware for your device (essential for recovery)
  • Backup solution for your data (Swift Backup, Neo Backup, or manual copy)

Files You'll Need:

  • Stock boot.img or init_boot.img (extract from your device's firmware - Android 13+ devices typically use init_boot.img)
  • Latest root solution APK/ZIP (Magisk, KernelSU, or APatch)
  • Custom recovery image (optional but recommended)

Knowledge:

  • Basic command line / terminal familiarity
  • Understanding of your exact device model and variant
  • Ability to research and follow instructions carefully
  • Emergency recovery plan (know how to flash stock firmware)

Pre-Rooting Checklist โ€‹

  1. โœ… Backup all data - Photos, contacts, messages, app data (see Backup Apps)
  2. โœ… Charge device - Minimum 50% battery
  3. โœ… Verify bootloader unlockability - Check OEM Unlocking toggle in Developer Options (greyed out = likely carrier-locked)
  4. โœ… Download necessary files - Stock firmware, root solution (APK+ZIP), recovery image
  5. โœ… Research your device - Read XDA forums and device-specific guides thoroughly
  6. โœ… Prepare recovery plan - Know how to restore stock firmware via fastboot/recovery
  7. โœ… Identify correct partition - Determine if your device uses boot.img or init_boot.img (Android 13+ typically = init_boot.img)

Choosing a Root Method โ€‹

Three primary rooting solutions exist, each with distinct advantages and trade-offs. Magisk offers the broadest compatibility and largest ecosystem, KernelSU provides kernel-level root with granular app control, and APatch combines kernel patching with module support.

Quick Comparison โ€‹

FeatureMagiskKernelSUAPatch
GuideMagisk GuideKernelSU GuideAPatch Guide
Target UsersBeginners, most usersGKI devices, privacy-focusedDevelopers, edge cases
ArchitectureSystemless (boot/init_boot/vendor_boot)Kernel-level (GKI/LKM)Kernel patching (KernelPatch)
Android SupportAndroid 6.0+GKI 2.0 (kernel 5.10+)ARM64, kernel 3.18+
InstallationEasy (patch & flash)Moderate (needs compatible kernel)Moderate (ARM64 only)
Module Ecosystem1000+ Magisk modulesModified Magisk modules via metamoduleAPModule + KPM (kernel-level)
Module MountingBuilt-in Magic MountMetamodule requiredMagic Mount default; OverlayFS optional
Root HidingGood (DenyList + Shamiko + PIF)Excellent (app profiles, uid/gid/selinux control)Good (SuperKey credential system)
CommunityLargestGrowingSmall
DevelopmentActiveVery activeActive
Unique StrengthEcosystem & broad compatibilityKernel space, only permitted apps see suKPM kernel code injection without source
OTA HandlingRe-patch after OTASome OTA flows survive via LKMInitial A/B OTA support

Decision Guide โ€‹

Choose Magisk if:

  • You are new to rooting and want the easiest path
  • You need maximum module compatibility
  • You want universal device support across Android versions
  • You prefer in-app updates and the largest community

Choose KernelSU if:

  • Your device runs a GKI kernel (5.10+) and you want kernel-level security
  • Fine-grained app profiles (uid, gid, groups, capabilities, SELinux) matter to you
  • You want the best root concealment (only permitted apps can see su)
  • You're comfortable with metamodule setup for module support

Choose APatch if:

  • Magisk/KernelSU are blocked on your specific firmware
  • You need kernel-level code injection (KPM) without kernel source
  • Your device is ARM64 with a compatible kernel
  • You want both Magisk-like modules AND kernel patching

IMPORTANT

For detailed comparison including migration guides, see Root Framework Comparison


Universal Rooting Process โ€‹

All Android devices follow this four-step rooting process, regardless of manufacturer or root method. Modern devices (Android 13+) often use init_boot.img instead of boot.img for root patching - check your device specifics.

Step 1: Unlock Bootloader โ€‹

Unlocking the bootloader is the essential first step that enables all subsequent modifications.

Quick Steps:

  1. Enable Developer Options (Settings > About > Tap Build Number 7 times)
  2. Enable OEM Unlocking (Developer Options > OEM Unlocking)
  3. Enable USB Debugging (Developer Options > USB Debugging)
  4. Boot to fastboot mode (Power + Volume Down or adb reboot bootloader)
  5. Execute unlock command (fastboot flashing unlock or fastboot oem unlock)

CAUTION

โš ๏ธ This step erases ALL data. Backup everything first. On Samsung devices, this also permanently trips Knox (Samsung Pay, Secure Folder, Samsung Pass lost forever).

๐Ÿ“– Complete Bootloader Unlocking Guide

Custom recovery provides advanced features and safer modification workflows. While not strictly required for all modern root methods, it's invaluable for backups and emergency recovery.

Popular Options:

  • TWRP - Most widely supported, active development
  • OrangeFox - Modern UI, frequent updates, EROFS support
  • SKYHAWK - Feature-rich recovery project
  • PitchBlack - Based on TWRP with enhanced features

Process:

  1. Download device-specific recovery image
  2. Boot to fastboot mode
  3. Flash recovery image - fastboot flash recovery recovery.img
  4. Boot to recovery - Test functionality before proceeding

NOTE

Some modern devices (especially A/B partition schemes) may not have a dedicated recovery partition. In these cases, you can fastboot boot recovery.img to temporarily boot recovery without flashing.

๐Ÿ“– Custom Recovery Installation Guide

Step 3: Install Root Solution โ€‹

Choose and install your preferred root method. The modern approach uses boot image patching.

  1. Download latest Magisk APK from official GitHub
  2. Extract the correct image from your device's stock firmware:
    • Android 13+ (most devices): init_boot.img
    • Android 12 and older: boot.img
    • Some Samsung devices: boot.img + vendor_boot.img (Magisk v30.3+)
  3. Transfer image to device, patch it using the Magisk app
  4. Flash patched image via fastboot (fastboot flash init_boot magisk_patched...img)
  5. Reboot and complete Magisk app setup

TIP

Magisk now supports XZ-compressed modules and 16k page size devices. Use the latest stable release from GitHub.

๐Ÿ“– Complete Magisk Guide

Option B: KernelSU โ€‹

  1. Verify your device has a GKI-compatible kernel (kernel 5.10+ with GKI 2.0)
  2. Download KernelSU-supported kernel for your device or use LKM (Loadable Kernel Module) mode
  3. Flash kernel via fastboot or KernelSU app
  4. Install KernelSU Manager app
  5. Install a metamodule (meta-overlayfs or Meta-Hybrid Mount) - required for modules to work
  6. Configure App Profiles for fine-grained root access control

WARNING

KernelSU no longer has built-in module mounting. Fresh installations require a metamodule for modules to function. See the KernelSU Guide for details.

๐Ÿ“– Complete KernelSU Guide

Option C: APatch โ€‹

  1. Verify device compatibility (ARM64, kernel 3.18โ€“6.12)
  2. Download APatch Manager and prepare your stock boot.img
  3. Patch boot image via APatch app (set a strong SuperKey)
  4. Flash patched image via fastboot
  5. Configure APatch Manager and install APModule/KPM as needed

NOTE

APatch combines Magisk's convenient boot.img install with KernelSU's kernel patching power. KPM allows kernel function inline-hook and syscall-table-hook without kernel source.

๐Ÿ“– Complete APatch Guide

Step 4: Post-Root Configuration โ€‹

After successful root installation, complete these essential steps:

  1. Verify Root Access - Use a root checker app to confirm superuser access works
  2. Install Essential Apps - Visit Starter Kit: Must-Have Apps
  3. Configure Root Hiding (critical for banking apps):
    • Magisk: Enable Zygisk + DenyList, install any Play Integrity Fix module + Tricky Store + Shamiko (or open-source Zygisk Assistant)
    • KernelSU: Use App Profiles, install Zygisk Next + PIF + Tricky Store
    • APatch: Use SuperKey credential system + PIF modules
  4. Create Full Backup - Use Swift Backup, Neo Backup, or recovery nandroid

Recommended Next Steps:


Device-Specific Guides โ€‹

Detailed rooting instructions tailored for specific manufacturers and models.

๐Ÿ“ฑ Google Pixel Series โ€‹

๐Ÿ“ฑ Samsung Galaxy Series โ€‹

๐Ÿ“ฑ Xiaomi Devices โ€‹

๐Ÿ“ฑ OnePlus Devices โ€‹

๐Ÿ“ฑ Motorola Devices โ€‹

๐Ÿ“ฑ Nothing Phone Series โ€‹

TIP

Can't find your device? Check XDA Developers Forums or search device-specific Telegram groups. Most devices with unlockable bootloaders follow the universal process above.

NOTE

ASUS (ROG/Zenfone), Realme/OPPO, ASUS: Check the Root Framework Comparison for device-specific root method recommendations.


Troubleshooting โ€‹

Common Issues and Solutions โ€‹

Device Won't Boot (Bootloop)

Symptoms: Device stuck on boot logo, constantly rebooting

Solutions:

  1. Boot to recovery mode (Power + Volume Up, varies by device)
  2. Wipe cache partition from recovery
  3. Restore from backup if available
  4. Flash stock boot.img / init_boot.img via fastboot to undo root
  5. Flash full stock firmware via fastboot/recovery
  6. Seek help on your device-specific XDA forum

Root Not Detected

Symptoms: Root checker shows no root, apps can't get superuser access

Solutions:

  1. Verify root manager app is installed and running
  2. Check if Zygisk is enabled (Magisk settings)
  3. Grant root permission when prompted by apps
  4. Re-patch and re-flash boot image
  5. Verify the patched image wasn't overwritten by an OTA

Banking Apps Not Working (Play Integrity)

Symptoms: Apps detect root and refuse to run, Play Integrity check fails

WARNING

Play Integrity bypass is a cat-and-mouse game - Google continuously updates detection. No solution is permanent.

Solutions (2026 best practices):

  1. Magisk: Enable Zygisk โ†’ Configure DenyList (add banking app) โ†’ Enforce DenyList
  2. Install Play Integrity Fix module (provides working device fingerprint)
  3. Install Tricky Store for advanced key attestation spoofing
  4. Install Shamiko (closed-source) or Zygisk Assistant (open-source) for better root hiding
  5. Hide the Magisk app (Settings โ†’ Hide the Magisk app โ†’ repackage with random name)
  6. Use Zygisk Next (alternative Zygisk implementation, works on KernelSU too)
  7. Clear banking app data after setting up hiding
  8. See detailed Play Integrity troubleshooting

NOTE

Strong Integrity (required by some wallet/payment apps) is generally not achievable on unlocked bootloaders. Even with all fixes, some apps may refuse to run. Consider using a secondary unrooted device for critical banking.

OTA Updates Failing

Symptoms: System updates fail to install or cause bootloop

Solutions:

  1. Magisk: Use "Restore Images" in Magisk app before OTA, then "Install to Inactive Slot" after OTA
  2. Flash full OTA package manually, then re-patch and re-flash root
  3. KernelSU: Some OTA flows survive via LKM mode, but verify after each update
  4. APatch: Initial A/B OTA support available (experimental)
  5. Consider switching to a custom ROM with built-in OTA + root support

Fastboot Not Recognized

Symptoms: Computer doesn't detect device in fastboot mode

Solutions:

  1. Install proper USB drivers (Windows)
  2. Try a USB 2.0 port (USB 3.0 often causes issues with fastboot)
  3. Use a high-quality data-capable USB cable (not charge-only)
  4. On Linux: add udev rules, run fastboot as root or configure permissions
  5. Try fastboot devices on a different computer

Emergency Recovery โ€‹

Safe Mode (Disable All Modules)

If a rogue module causes bootloop:

  1. Hold Power + Volume Down (or your device's Safe Mode key combo) during boot
  2. This disables all Magisk modules temporarily
  3. Uninstall the problematic module and reboot

Factory Reset Protection (FRP)

If locked out after factory reset:

  1. Use previously synced Google account credentials
  2. Follow manufacturer-specific FRP bypass methods
  3. Flash stock firmware with all partitions
  4. Contact manufacturer support if purchased legitimately

Complete Brick Recovery (EDL/9008 Mode)

If device won't power on or enter any mode:

  1. Try Emergency Download Mode (EDL/9008) - varies by device
  2. Use manufacturer-specific unbrick tools (MSM Tool for OnePlus, Odin for Samsung, etc.)
  3. Search XDA for device-specific unbrick guides
  4. Professional repair may be necessary for hardware-level bricks

Prevention Tips:

  • ๐Ÿ“ฅ Always keep stock firmware downloaded before starting
  • ๐Ÿ’พ Create regular backups (Swift Backup, Neo Backup, recovery nandroid)
  • ๐Ÿ“– Read your device's XDA forum thoroughly before attempting anything
  • ๐Ÿ”‘ Keep a copy of your stock boot.img and init_boot.img
  • ๐Ÿงช Test one module at a time, reboot between installations
  • ๐Ÿ“‹ Join device-specific Telegram/Discord communities for real-time help

If locked out after factory reset:

  1. Use previously synced Google account
  2. Follow manufacturer FRP bypass methods
  3. Flash stock firmware with all partitions
  4. Contact manufacturer support if purchased legitimately

Complete Brick Recovery

If device won't power on or enter any mode:

  1. Try emergency download mode (EDL/9008)
  2. Use manufacturer-specific unbrick tools
  3. Search XDA for device-specific unbrick guides
  4. Professional repair may be necessary

Prevention Tips:

  • Always keep stock firmware downloaded
  • Create regular backups
  • Understand your device's emergency modes
  • Join device-specific communities for support

Additional Resources โ€‹

Framework and Advanced Guides โ€‹

Vector / LSPosed Framework

Advanced app modification framework for rooted devices. The ecosystem has evolved: the original LSPosed was archived in January 2024, and current builds are either closed-source (lsposed.zip) or the fully open-source Vector fork.

  • Vector (Recommended): GitHub - Fully open-source (GPLv3), actively maintained, supports Android 8.1โ€“17 Beta
  • LSPosed (Closed-Source): lsposed.zip - Original team's builds, API 101 stable
  • Requires Zygisk (Magisk) or Zygisk Next/NeoZygisk (KernelSU)
  • Enables Xposed modules for per-app customization, privacy, and UI tweaks
  • API 101 is the current standard; Vector CI builds already support it

IMPORTANT

See our Complete Vector/LSPosed Guide for the full breakdown on choosing between Vector (open-source) and lsposed.zip (closed-source), installation, and module management.

Custom ROM Installation

Replace stock Android with privacy-focused custom ROMs:

  • Requires unlocked bootloader and typically custom recovery
  • Popular options: LineageOS, PixelOS, crDroid, GrapheneOS (now supports Zygisk Next)
  • Reduces telemetry, removes bloatware, extends device lifespan

๐Ÿ“– Custom ROM Installation Guide

Root Hiding & Play Integrity Resources โ€‹

Play Integrity bypass is essential for banking apps in 2026. Key tools:

ToolPurposeStatus
Tricky StoreAdvanced key attestation spoofingActive
ShamikoSystemlessly hides Zygisk/modules from detectionClosed-source
Zygisk AssistantOpen-source alternative to ShamikoActive (FOSS)
Zygisk NextStandalone Zygisk implementation for Magisk/KernelSUActive
Play Integrity ForkCommunity-maintained PIF scriptActive

TIP

For complete and up-to-date list, check our Root Hiding section โ†—


Community and Support โ€‹

Official Resources โ€‹

External Communities โ€‹

  • XDA Developers - Device-specific forums (largest Android modding community)
  • r/AndroidRoot - Rooting help and discussion
  • r/Magisk - Magisk-specific support
  • r/KernelSU - KernelSU community
  • Telegram Groups - Device-specific and framework-specific groups (search for your device)

When Asking for Help โ€‹

Include this information for faster troubleshooting:

  • Device model and exact variant (e.g., Pixel 8 Pro husky, not just "Pixel 8")
  • Android version and build number (e.g., Android 16 QPR2, build BP1A)
  • Root method and version (e.g., Magisk v30.7, KernelSU v3.2)
  • Modules installed (list all active Magisk/KernelSU/APatch modules)
  • Exact error messages (screenshots or copy-pasted text)
  • Steps already tried (so helpers don't suggest things you've done)
  • Screenshots of error states if applicable

Next Steps โ€‹

Your Path Forward โ€‹

  1. Unlock Bootloader - The essential first step
  2. Install Recovery - Optional but recommended
  3. Choose Your Root Method - Magisk, KernelSU, or APatch
  4. Follow Device-Specific Guide - Tailored for your phone
  5. Set Up Root Hiding - Essential for banking apps
  6. Install Vector/LSPosed - Unlock app customization

IMPORTANT


๐ŸŽ‰ Welcome to the World of Android Freedom!

Your journey to unlimited Android possibilities begins now! The rooting community is stronger than ever in 2026