[Nubia Red Magic 5G / 5S Guides, News, & Discussion] Patrick Morgan:
TWRP - ROOT for Android 10 and 11

Read notes to be fully clear on steps.

_________________________________________________________________________________________

NOTES.

- Android 11 steps are below the Android 10 steps.

- Steps are for Windows operating systems only.

- Run steps in a new folder made on the C.drive. You may get errors running from downloads or desktop.

- if on stock, you will need to wipe your data. BACKUP all your data.

- Files required are on my Mirror linked on the First post.

- All these steps must be performed on a clean system. you need to wipe data and cache to complete setup

- OEM Unlocking in the Developer options is only required for Android 11 this is temporary

- Android 10 steps where performed on a clean unbricked Locked device.

- Android 11 steps where performed on a clean unbricked Locked device and locally updated to 8.70 data formatted after update.

___________________________________________________________________________________

Android 10 Steps.

1. Backup all your data.

2. Find the ADB-Fastboot installer bat file in my mirror and run it (as Administrator) in a new folder on the C drive

3. open CMD prompt with admin privileges

4. CD to the ADB folder you made. (CD = Change Directory)

5. Connect your device in Fastboot mode

- power off. hold volume down button while the phone boots

6. Once in fastboot mode, with cable connected to the computer run these commands

7. fastboot oem nubia_unlock NUBIA_NX659J (this allows you to flash the device partitions)

8. fastboot flash recovery TWRP-xxx.img (xxx being the version number of the TWRP image you choose to install)

9. fastboot flash vbmeta vbmeta_skip.img

10. reboot to recovery (from the fastboot menu) it should load TWRP

11. if TWRP does not ask you to keep recovery from being over written, go to advanced and choose disable replace TWRP. to keep TWRP as your recovery, and stop the system from re writing the stock recovery.

12. Reboot to system for the first time and complete the initial setup. this is to create the user space partitions data/media ( preferably do not make a pin or pattern at this stage)

13. once in the rom, you can download the Magisk zip found here rename the apk to zip to flash in recovery

14. once back into TWRP (if you created a pin during setup TWRP will ask you for your pin to access data) go into install and flash the Magisk.zip you moved in step 13 then reboot. once back into the rom, you will see a Magisk app, tap it and allow to update, the APK will install latest version of the manager.

_______________________________________________________________________________

******************************************************************************

________________________________________________________________________________

Android 11 Steps.

Android 11 removed the ability to install vbmeta skip on the locked bootloader. so these steps will require opening the bootloader during the process of rooting and installing a custom recovery.

* Following these step exactly as written will not wipe your fingerprint sensor data.

These step will assume you have installed the fastboot and ADB files for rooting Android 10 already.

1. Download the correct files you will need for the process (found in my mirror in first post)

- vbmeta skip / twrp for A11 / magisk apk from latest releases on github

2. BACKUP ALLLL your data. you will wipe your data during these steps

3. Move the files required to the ADB folder you created on your Cdrive.

4. go to Settings / About Phone / tap 7 times on the Build number field to become a developer.

5. back to settings and choose advanced settings / developer options

6. enable the option OEM unlock (accept the agreement)

7. you can reboot your phone to fastboot. power off. then while powering on hold volume down button

8. when fastboot loads run these commands in CMD (with admin privilages)

- fastboot flashing unlock (accept the process on your phone to wipe all data)

9. the phone will reboot hold volume down button to load fastboot again

10. CD to your folder in the Cdrive and Run these commands once fastboot is loaded again

- fastboot flash recovery (TWRP for A11) choose the correct TWRP image in my mirror

- fastboot flash vbmeta vbmeta_skip.img

- fastboot flashing lock

11. phone will reboot hold volume up to allow recovery to load

- TWRP will do some first time setup and reboot (hold volume up button again while it reboots)

12. in TWRP wipe user data

13. go to mount and mount userdata

14. move / copy magisk.zip to the phone (rename the apk you download from github to zip to flash in TWRP)

15. unmount userdata once you've copied the magisk file.

16. go to flash and flash the magisk.zip you copied earlier

17. reboot to system

18. SKIP everything on initial setup.

19. you can connect to wifi / mobile data to download the magisk APK (the app does not get installed on first setup)

20. entering magisk will demand to update install through the magisk app, reboot and continue to setup magisk. (Hide app, Deny list etc)

21. once you've added all stock apps to deny list you can start setting up your device as before, restore your data.

- just note you should add any new app to the deny list that you don't want ot see root. regardless of what it is. any app can report to google that your device is rooted, that will mess up your detection.

Some troubleshooting I've experienced.

- Magisk app will not be installed at first boot. download apk form githib and install

- Magisk will ask to update by rebooting, this wont work, and requires you to update in the app

- magisk app sometimes fails to open (black screen with magisk symbol) go into app data and force close and clear cache of magisk to open the app again.

Big thanks to Dr.Brown for helping with these steps and testing over months to make sure they're perfect.

Thanks to those that created all these great tools.

Dr. Brown and Doc714 - for TWRP

John Wu - for Magisk

mslezak for the original vbmeta_skip

If i've helped you root your device, please hit thanks.