How to Root the Huawei Nexus 6P
Rooting your Huawei Nexus 6P gives you full administrative control over the Android operating system, allowing you to remove bloatware, install custom ROMs, use root-only apps, and tweak system settings for better performance or battery life. This guide walks you through unlocking the bootloader, installing a custom recovery, and flashing Magisk to root the device. Before starting, back up all important data because unlocking the bootloader wipes the phone completely.
What You’ll Need
- A Windows, macOS, or Linux computer
- A USB cable (preferably the original or a high-quality one)
- Huawei Nexus 6P with at least 50% battery charge
- Enable Developer Options and USB debugging on the phone (Settings > About phone > tap Build number 7 times, then Settings > Developer options > USB debugging)
- ADB and Fastboot tools installed on your computer (download from the official Android developer site or a trusted mirror)
- Latest TWRP recovery image for angler (the Nexus 6P codename) from the official TWRP site
- Latest Magisk ZIP (stable version) from the official Magisk GitHub repository
- Unlock code (if your device is carrier-locked; most Nexus 6P are unlocked, but check with your carrier)
Step-by-Step
- Back up your data. Unlocking the bootloader erases everything on the phone. Use Google backup, a local backup, or manually copy files to your computer.
- Install ADB and Fastboot. Download the platform-tools ZIP from the Android developer site, extract it to a folder (e.g., C:\adb), and note the path. On Windows, you may need to install proper USB drivers for the Nexus 6P.
- Enable Developer options and USB debugging. On your phone, go to Settings > About phone and tap “Build number� seven times. Then go to Settings > Developer options and enable “USB debugging� and “OEM unlocking� (if available).
- Connect your phone to the computer. Use a USB cable and set the phone to “File Transfer� mode (when prompted). Verify the connection by opening a command prompt/terminal in the platform-tools folder and typing
adb devices. You should see your device listed with “device� status. If not, reinstall drivers or try a different USB port. - Unlock the bootloader. In the command prompt, type
adb reboot bootloader. The phone will reboot into fastboot mode (a screen with an android robot). Then typefastboot flashing unlock(orfastboot oem unlockon older builds). On the phone, use the volume keys to select “Unlock the bootloader� and press power to confirm. This wipes the device and reboots it. After reboot, set up the phone again (skip through the setup wizard) and re-enable USB debugging. - Install TWRP recovery. Download the TWRP image file (twrp-3.x.x-x-angler.img) and place it in the platform-tools folder. Reboot to bootloader again (
adb reboot bootloader). In fastboot mode, typefastboot flash recovery twrp-3.x.x-x-angler.img. Wait for the “OKAY� message, then typefastboot reboot. - Boot into TWRP. Immediately after the phone reboots, hold Volume Down + Power until the TWRP menu appears. Alternatively, you can boot into recovery from the bootloader by selecting “Recovery mode� with volume keys and pressing power.
- Transfer Magisk ZIP to the phone. While in TWRP, tap “Advanced� > “ADB Sideload�. On your computer, type
adb sideload magisk-vXX.X.zip(replace with the actual file name). The transfer will begin automatically. Alternatively, you can push the file usingadb push magisk-vXX.X.zip /sdcard/before booting into recovery, then flash it from the “Install� menu. - Flash Magisk. In TWRP, tap “Install�, navigate to the Magisk ZIP (in /sdcard or /tmp), select it, and swipe to confirm the flash. Wait for the process to complete.
- Reboot and verify root. Tap “Reboot System�. The first boot may take longer than usual. After booting, install a root checker app from the Play Store (like “Root Checker�) or use a terminal app and type
su. If you get a superuser prompt, you are rooted.
Common Mistakes
- Skipping the backup. Unlocking the bootloader wipes all data. Many users lose photos and files because they forgot to back up.
- Using the wrong TWRP image. The Nexus 6P has a specific TWRP build (angler). Using a different model’s image can brick the device.
- Not enabling OEM unlocking. On some Android versions, you must enable “OEM unlocking� in Developer options before the
fastboot flashing unlockcommand works. If you skip this, the command may fail. - Flashing Magisk before TWRP is installed. Magisk must be flashed from a custom recovery like TWRP. Trying to flash it from stock recovery will fail.
- Using an outdated Magisk version. Older Magisk versions may not support newer Android security patches. Always download the latest stable release.
Tips
- Keep your bootloader unlocked. If you plan to flash custom ROMs or kernels, leave the bootloader unlocked. Locking it can cause boot loops if you have custom software.
- Use Magisk modules sparingly. Only install modules from trusted sources, as they can cause instability or boot loops.
- Take a Nandroid backup. In TWRP, go to “Backup� and create a full system backup before making major changes. This lets you restore if something goes wrong.
- Update Magisk via the app. The Magisk Manager app can update the root solution directly, but you need to re-flash it after a system update (OTA).
Troubleshooting
- Fastboot not recognizing device. Ensure you have the correct USB drivers installed. On Windows, try a different USB port (preferably USB 2.0). Reboot your computer and phone.
- Boot loop after rooting. Boot into TWRP (Volume Down + Power while rebooting), then wipe cache/dalvik. If that doesn’t work, restore your Nandroid backup or reflash the stock factory image (from Google’s developer site) and start over.
- Magisk app says “not installed�. This usually means the Magisk ZIP didn’t flash correctly. Reboot into TWRP and reflash the ZIP. Ensure you have the correct version for your Android version.
- Phone stuck on Google logo. This can happen if the bootloader is locked with custom recovery. Unlock the bootloader again (fastboot flashing unlock) and reflash TWRP.
- No root access in apps. Open the Magisk app and check if “Superuser� is enabled. If not, grant permission manually. Also, some apps (like banking apps) detect root and refuse to run; you may need to use Magisk Hide (now called DenyList) to hide root from those apps.
Frequently Asked Questions
Q: Will rooting void my warranty?
A: Yes, unlocking the bootloader and rooting typically voids the manufacturer warranty. However, you can often restore the stock firmware and relock the bootloader to regain warranty (though some manufacturers track this).
Q: Can I still receive OTA updates after rooting?
A: Usually no, because OTA updates check for system integrity. You can manually flash the updated factory image and re-root, or use Magisk’s “Install to inactive slot� feature after an OTA (if you have a custom recovery).
Q: What is the difference between rooting and unlocking the bootloader?
A: Unlocking the bootloader allows you to flash custom images and is a prerequisite for rooting. Rooting gives you superuser access within the Android OS, allowing you to modify system files.
Q: Is it safe to root my Nexus 6P?
A: Rooting itself is safe if you follow instructions carefully. The main risks are data loss and the possibility of bricking if you flash incompatible files. Always use official or trusted sources.
Q: How do I unroot my device?
A: The easiest way is to open the Magisk app and tap “Uninstall� then “Complete Uninstall�. This restores the stock boot image and removes root. Alternatively, flash the stock factory image and relock the bootloader.
Q: Can I use Google Pay after rooting?
A: Google Pay may not work because it detects root. You can use Magisk’s DenyList to hide root from Google Pay, but it’s not guaranteed to work on all devices and Android versions.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.