How to Root the Huawei Mate: Full Guide
Rooting your Huawei Mate 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 that are otherwise locked. This guide walks you through the entire process—from unlocking the bootloader to installing Magisk—using general steps that apply to most Huawei Mate models (Mate 8, 9, 10, 20, and similar). Before you begin, understand that rooting voids your warranty and carries a small risk of bricking your device. You’ll need a Windows PC, a USB cable, and about 30 minutes of uninterrupted time.
What You’ll Need
- A Windows PC (Windows 7 or newer)
- A USB cable that supports data transfer
- Huawei Mate device with at least 50% battery
- Huawei USB drivers installed on your PC
- ADB and Fastboot tools (platform-tools)
- Huawei Multi-Tool or similar bootloader unlock tool (if your model requires it)
- Magisk APK and the stock boot image for your exact model and build number
- Backup of all personal data (photos, contacts, etc.)
Step-by-Step
- Back up your device. Rooting wipes your phone. Use Huawei’s built-in backup or a third-party app to save photos, contacts, and app data to your PC or SD card.
- Enable Developer Options. Go to Settings > About phone and tap Build number seven times until you see “You are now a developer.”
- Enable OEM unlock and USB debugging. In Settings > Developer options, turn on OEM unlock and USB debugging. If OEM unlock is grayed out, your device may be carrier-locked or the option is hidden—check your model’s forums.
- Install USB drivers and ADB tools. Download and install the latest Huawei USB drivers. Extract the platform-tools zip to a folder like
C:\adb. - Unlock the bootloader. Open a command prompt in the platform-tools folder (Shift+right-click > “Open command window here”). Connect your phone via USB. Type
adb reboot bootloaderto enter fastboot mode. Then typefastboot oem unlock(orfastboot flashing unlockon newer models). Confirm the unlock on the phone screen. This erases all data. - Reboot and re-enable USB debugging. After unlocking, the phone restarts. Set it up quickly, then re-enable Developer options and USB debugging as in steps 2–3.
- Get the stock boot image. Find the exact firmware build number (Settings > About phone > Build number) and download the matching stock boot image (boot.img) from a trusted source like the Huawei firmware database or XDA-Developers. Do not skip this—using the wrong boot image can brick your device.
- Patch the boot image with Magisk. Install the Magisk APK on your phone. Copy the boot.img to your phone’s internal storage. Open Magisk, tap Install > Install > Select and Patch a File, and choose the boot.img. Magisk will create a patched file in Download.
- Transfer the patched boot image to your PC. Copy the patched file (usually named
magisk_patched-*.img) to the platform-tools folder on your PC. - Flash the patched boot image. Reboot to bootloader again (
adb reboot bootloader). Then typefastboot flash boot magisk_patched-*.img(replace with the actual filename). Wait for it to finish. - Reboot and verify root. Type
fastboot reboot. Once booted, open the Magisk app. If it shows “Magisk is installed” and the version number, you’re rooted. You can also install a root checker app from the Play Store to confirm.
Common Mistakes
- Skipping the backup. Unlocking the bootloader wipes your phone. Always back up first.
- Using the wrong boot image. A boot image from a different model or build number can cause boot loops or a brick. Always match the exact build number.
- Not enabling OEM unlock. If this toggle is off, fastboot commands will fail with “FAILED (remote: oem unlock is not allowed)”.
- Using outdated ADB tools. Old versions may not support your device. Always use the latest platform-tools.
- Interrupting the flash. Unplugging the cable during flashing can permanently damage the boot partition.
Tips
- Keep the stock boot image in a safe place—you’ll need it to unroot later.
- After rooting, install a root manager like Magisk’s built-in Superuser to control which apps get root access.
- If you plan to install custom ROMs, research the specific ROM’s requirements for your Mate model first.
- Use a high-quality USB cable and a direct USB port on your PC (not a hub) to avoid connection drops.
- Write down your unlock code if your device requires one—you may need it again.
Troubleshooting
- fastboot not recognizing device: Install the correct USB drivers, try a different USB port, or run the command as administrator.
- OEM unlock option missing: Some carriers disable it. Check if your device is carrier-locked; you may need to request an unlock code from the carrier or use a third-party tool.
- Boot loop after flashing: Re-flash the original stock boot image you saved earlier, then repeat the Magisk patching process. If that fails, restore your device via Huawei’s eRecovery or HiSuite.
- Magisk app shows “Not installed”: The patched boot image may not have flashed correctly. Reboot to bootloader and flash again, ensuring the filename is correct.
- Wi-Fi or Bluetooth not working after root: This usually indicates a mismatched boot image. Re-download the correct one for your exact build.
- Device stuck on Huawei logo: Hold the power button for 10 seconds to force restart. If it persists, boot into recovery (Volume Up + Power) and factory reset—this will wipe data but may fix the boot loop.
Frequently Asked Questions
Does rooting void my warranty?
Yes, in most cases unlocking the bootloader and rooting voids the manufacturer warranty. Some regions have laws that protect consumers, but Huawei’s official policy treats rooted devices as out of warranty.
Can I unroot later?
Yes. To unroot, simply flash the original stock boot image back via fastboot (the same command as step 10 but with the unpatched boot.img). You can also relock the bootloader with fastboot oem lock, but this erases data again.
Will rooting affect OTA updates?
Generally, yes. Rooted devices often fail to receive over-the-air updates because the system partition is modified. You’ll need to unroot and restore the stock boot image to get OTA updates.
Is it safe to root my Huawei Mate?
Rooting is safe if you follow instructions carefully and use the correct files. The main risks are bricking the device due to wrong files or interrupted flashing, and security risks from granting root access to malicious apps.
What is the best root method for Huawei Mate?
Magisk is the most popular and reliable method because it allows systemless rooting, which passes SafetyNet checks more often and makes unrooting easier. Other methods like SuperSU are outdated.
Do I need to unlock the bootloader before rooting?
Yes, unlocking the bootloader is mandatory for all Huawei Mate devices. Without it, fastboot will reject any flashing commands.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.