[Nubia Red Magic 5G / 5S  Questions & Answers] TopoX84:
i could tell you what i did to root my device, most likely differs from everyone else's ¯\_(ツ)_/¯ the only thing i can surely tell you never ever fully unlock bootloader or you will have a nightmare with the fingerprint scanner calibration... like i am having

this is the code you should avoid to prevent the break of your fingerprint scanner

fastboot flashing unlock

disclaimer - I'm NOT responsible for anything that happens to your device, proceed with caution

PRE-REQUISITES

backup all your data, the steps below will erase your data

Link #1 - Applications, .img files (https://mega.nz/file/igphSCTD#OybJo9...dhk3JFB4_5xkVc)

source: https://xdaforums.com/nubia-red-magic-5g/how-to/beginner-tutorial-unlock-bootloader-t4131585/

Link #2 - Unbrick Tool for Nubia Red Magic 5S (https://mega.nz/file/rEc2kIDC#FExxIiuqTcMPpn0Ji_pAtVqH4CBiSWvJPUkDYjR-4cc)

source: https://xdaforums.com/nubia-red-magic-5s/how-to/unbrick-tool-nubia-red-magic-5smade-t4166861

ENSURE THAT:

- You installed the application and driver (Minimal ADB and Fastboot, USB drivers and Qualcomm)

- Minimal ADB and Fastboot can be found on link #1

- USB drivers and Qualcomm can be found on MiFlash2020-3-14-0\Source\ThirdParty\ folder location Link #2 after is extracted

- You updated your OS in the latest version.

- You UNLOCK the developer option (setting>>about phone>>tap 7x the build number) and you switch ON the OEM unlocking & USB Debugging.

- You approved the RSA request in your red Magic 5s

Red magic 5s how to unlock bootloader

Connect the phone to computer, open cmd and go to where you have Minimal ADB and Fastboot then do the following steps

adb devices #make sure you see a device ex: 0123456789ABCDEF device

adb reboot bootloader

fastboot devices #make sure you see a device ex: 2e45f69f fastboot
a- if you do not see a device you will need to go into device manager and install the usb drivers

fastboot oem nubia_unlock NUBIA_NX659J

PREP YOUR FILES:

once you downloads and extract Link #2 you will have 2 folders (images and MiFlash2020-3-14-0) make a folder called images1 and all the files that are found on images copy them to images1

by the end of these step you will have 3 folders (images, images1, MiFlash2020-3-14-0), images and images1 are exact copies of each other

from what you extract from Link #1

- you will find Magisk-v20.4.zip copy and paste it inside your adb folder

- you will find recovery-TWRP-3.4.1B-0324-NUBIA_REDMAGIC_5G-CN-wzsx150.img and vbmeta_BL_skip.img, copy and paste them to the location where you have (image, image1 and MiFlash2020-3-14-0)

rename recovery-TWRP-3.4.1B-0324-NUBIA_REDMAGIC_5G-CN-wzsx150.img to recovery.img

rename vbmeta_BL_skip.img to vbmeta.img

move the recently renamed recovery.img and vbmeta.img into images1 and replace the files.

HOW TO GET TWRP AND ROOT:

open the folder MiFlash2020-3-14-0 and then the application called XiaoMiFlash.exe in admin #ignore message "couldn't find flash script"

where it says select this is where you going to look for the image1 folder which contains the modded TWRP files #ignore message "couldn't find flash script " again

on you mobile device you should be on the bootloader, select the option Boot to edload #the screen will be black on the phone

back to the computer on the application XiaoMiFlash.exe, click refresh and you will see you device connected #if you don't see it make sure you have installed the Qualcomm drivers

click on flash and allow the system to process until you see a flash done！sucess! #the beauty of these step is that you also learn how to unbrick your device, you just will need to select image folder instead of image1

disconnect the mobile from the computer and on the mobile press the power button and hold it until you see a green notification light come up then let go the power button.

once the mobile boots up You UNLOCK the developer option (setting>>about phone>>tap 7x the build number) and you switch ON the OEM unlocking & USB Debugging.

open your cmd window and type:

adb devices
adb reboot bootloader
fastboot devices
fastboot oem nubia_unlock NUBIA_NX659J

select option to reboot into recovery mode

since it is the first time you are running TWRP

It will reboot in TWRP twice, in the 2nd reboot it will stay in TWRP, change the language to English and select the keep read only.

Go to Wipe -> Format Data - type yes and click the check -> once that is done, click the back button until you are back into the main page

go into Advance -> ADB Sideload -> check Wipe Dalvik Cache and Wipe Cache -> then type

adb sideload Magisk-v20.4.zip #watch the magic happen, once done reboot System

you are done