How to Root ZTE Nubia Z9 Mini: Full Guide
Rooting your ZTE Nubia Z9 Mini gives you full administrative control over the Android system, allowing you to remove bloatware, install custom ROMs, use root-only apps, and fine-tune performance. This guide walks you through the entire process safely, from unlocking the bootloader to verifying root access. Before you begin, back up all important data, as the process will wipe your phone, and ensure your device is charged to at least 70%.
What You’ll Need
- A Windows PC (or a virtual machine with USB passthrough)
- ZTE Nubia Z9 Mini (model NX511J) with USB debugging enabled
- Original USB cable
- ADB and Fastboot tools installed on your PC (download from Android developer site)
- Unlock code for the bootloader (obtained from ZTE’s official unlock website – you’ll need your device’s IMEI)
- Custom recovery image (like TWRP) for NX511J
- Magisk ZIP file (latest stable version) – for rooting
- Backup of your personal data (photos, contacts, etc.)
Step-by-Step
- Enable Developer Options: Go to Settings > About phone and tap Build number 7 times until you see “You are now a developer!�
- Enable USB Debugging and OEM Unlock: In Settings > Developer options, turn on USB debugging and OEM unlocking (if available).
- Install ADB and Fastboot on PC: Download the platform-tools zip from the Android developer site, extract it to a folder like
C:\adb, and add that folder to your system PATH or open a command prompt there. - Connect Phone to PC: Connect your Nubia Z9 Mini via USB. On the phone, accept the RSA fingerprint prompt for debugging.
- Verify ADB Connection: Open a command prompt (Shift+Right-click in the adb folder > “Open command window here�) and type
adb devices. You should see your device listed as “deviceâ€�. If not, reinstall drivers. - Get Bootloader Unlock Code: Go to ZTE’s official bootloader unlock website, enter your device’s IMEI (dial *#06# to get it), and follow their instructions to receive an unlock code. This may take a few days.
- Reboot to Bootloader: In the command prompt, type
adb reboot bootloader. The phone will restart into fastboot mode (a black screen with Android logo). - Unlock Bootloader: Type
fastboot oem unlockand press Enter. When prompted on the phone, use the volume keys to select “Yes� and press power to confirm. This erases all data. Wait for the process to complete. - Reboot and Re-enable USB Debugging: After unlocking, the phone will reboot automatically. Set up your phone quickly (skip sign-in if possible), then re-enable USB debugging in Developer options.
- Download TWRP and Magisk: On your PC, download the TWRP image (twrp-3.x.x-nx511j.img) and the Magisk ZIP (Magisk-vXX.X.zip). Place both in your adb folder.
- Flash TWRP Recovery: Reboot to bootloader again (
adb reboot bootloader). Then typefastboot flash recovery twrp-3.x.x-nx511j.img. After flashing, typefastboot reboot. - Boot into TWRP: As the phone reboots, press and hold Volume Up + Power simultaneously until the TWRP logo appears. (If you miss it, you can also use
adb reboot recoveryfrom the booted system). - Copy Magisk to Phone: In TWRP, go to Mount and ensure Data is checked. Then on your PC, use
adb push Magisk-vXX.X.zip /sdcard/to transfer the Magisk ZIP to the phone’s internal storage. - Install Magisk: In TWRP, tap Install, navigate to the Magisk ZIP, select it, and swipe to confirm the flash. Wait for the installation to finish.
- Wipe Cache/Dalvik: After flashing, tap Wipe > Advanced and select Dalvik/ART Cache and Cache, then swipe to wipe. This prevents boot loops.
- Reboot System: Go back to the main TWRP menu and tap Reboot > System. The first boot may take several minutes – be patient.
- Verify Root: Once booted, install the Magisk Manager app (APK from Magisk’s official GitHub) if not already installed. Open it – it should show “Magisk installedâ€� and “SafetyNetâ€� status. You can also use a root checker app from the Play Store.
Common Mistakes
- Skipping the bootloader unlock: Flashing TWRP without unlocking the bootloader will fail or cause a brick. Always unlock first.
- Using wrong TWRP image: The Nubia Z9 Mini has several variants. Ensure you download the TWRP specifically for the NX511J model. A mismatched image can cause a hard brick.
- Not backing up data: Unlocking the bootloader wipes everything. If you skip backup, you lose all personal files.
- Incorrect fastboot commands: Typing
fastboot flash recoveryinstead offastboot flash recovery(with the correct filename) is a common typo. Double-check the filename and path. - Forgetting to re-enable USB debugging after unlock: After the factory reset, USB debugging is off. You must enable it again before proceeding.
- Interrupting the flash process: Unplugging the cable or closing the command window mid-flash can brick the device. Let all commands finish.
Tips
- Use a stable USB port (preferably USB 2.0) and avoid hubs.
- Keep your PC’s battery plugged in – a power loss during flashing is disastrous.
- After rooting, avoid using OTA system updates – they may break root. Instead, update via TWRP with a custom ROM or manually flash the update.
- Install a firewall app (like AFWall+) to control which apps get root access.
- If you ever need to unroot, you can flash the stock boot.img via fastboot or use Magisk’s “Uninstallâ€� option.
Troubleshooting
Device not detected by ADB: Install the correct USB drivers for the Nubia Z9 Mini (from ZTE’s support page) and try a different USB port. Also, ensure USB debugging is enabled.
Bootloader unlock fails: Double-check that you entered the correct unlock code. Some carriers lock the bootloader permanently; in that case, you may need to use a paid unlocking service (proceed at your own risk).
TWRP not sticking: Some devices revert to stock recovery on boot. After flashing TWRP, immediately boot into recovery (don’t let the system boot first). Use the button combo or adb reboot recovery.
Boot loop after flashing Magisk: This usually happens due to a corrupted download or incompatible Magisk version. Re-download the Magisk ZIP, then boot into TWRP, wipe cache/dalvik, and reflash. If still stuck, flash the stock boot image to restore.
Magisk Manager shows “Not installed�: The Magisk ZIP may not have flashed correctly. Reboot to TWRP and flash it again, ensuring you see “Success� in the log.
SafetyNet fails: If you need Google Pay or banking apps, enable MagiskHide (in Magisk settings) and hide the Magisk Manager app. If it still fails, consider using a custom ROM that passes SafetyNet by default.
Frequently Asked Questions
Will rooting void my warranty?
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 (if the hardware is still intact).
Can I still receive OTA updates after rooting?
No, OTA updates will fail because the system partition is modified. You’ll need to manually flash updates via TWRP or revert to stock recovery and firmware.
Is it possible to unroot later?
Yes. You can unroot by opening Magisk Manager and tapping “Uninstall� (which restores the stock boot image), or by flashing the stock boot.img via fastboot.
Will rooting erase my data again?
Only the bootloader unlocking step wipes data. Flashing TWRP and Magisk does not wipe data, but it’s always wise to have a backup just in case.
What if I brick my phone?
If the device still turns on, you can usually recover by flashing the stock firmware via the Nubia Flash Tool (available on ZTE’s site). If it’s completely dead (no response), you may need professional repair.
Does rooting improve battery life?
Rooting itself doesn’t change battery life, but it allows you to install apps like Greenify or custom kernels that can reduce background activity and improve battery performance.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.