yashsingh1/xdaforums huggingface dataset:
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
Hi everyone, I just want to share this tutorial for someone like me (NEWBIE, NOOB, BEGINNER, ZERO KNOWLEDGE).

ALL CREDITS TO THE RIGHTFUL OWNER.

PRE-REQUISITES

- Laptop

- Applications, .img files (https://mega.nz/file/igphSCTD#OybJo9t1zwvJ0bdbAcN2BCqxWXAfHdhk3JFB4_5xkVc)

- Your Nubia Phone

ENSURE THAT:

- You installed the application and driver (Minimal ADB and Fastboot & the driver from your Nubia phone).

- 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 RM5G

NUBIA RED MAGIC 5G UNLOCK BOOTLOADER

1. Connect your Nubia in laptop, in your laptop, open Minimal ADB and Fastboot and type the following:

a.	adb reboot bootloader

b.	fastboot oem nubia_unlock NUBIA_NX659J

c.	fastboot flash recovery recovery-TWRP-3.4.1B-0324-NUBIA_REDMAGIC_5G-CN-wzsx150.img

d.	fastboot flash vbmeta vbmeta_BL_skip.img

e.	fastboot flash modem NON-HLOS.bin

f.	fastboot flash parameter parameter.img

2. Go to your RM5G, select reboot to recovery

3. 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.

4. Go to WIPE option, then select FORMAT DATA, type yes

5. Press home button, then go to REBOOT, select REBOOT to RECOVERY

NUBIA RED MAGIC 5G ROOTING PROCEDURE

6. Go to ADVANCED, below there are list, select INSTALL ROOT.

7. Reboot your RM5G.

At first, my RM5G restart twice, I was afraid that it was bootloop, the 3rd boots, it booted up and its rooted already.

Also, when I first registered my Finger Print, it’s malfunctioning, so I just deleted the OLD FP , register NEW FP and it works like a charm.

Now, I managed to flash the wonderful kernel of [MENTION=7920168]mslezak[/MENTION].

Credits:

[MENTION=7920168]mslezak[/MENTION] - for his tutorial,

files we used in this thread https://xdaforums.com/nubia-red-magic-5g/how-to/how-to-unlock-bootloader-redmagic-5g-t4081743

And kernel in this thread: https://xdaforums.com/nubia-red-magic-5g/development/mod-kernel-red-magic-5g-simply-source-t4112811

Ibr ALnaQbi - for his video tutorial

And to all who made it successful.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] lanoblesse:
Great job bro !
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] mslezak:
Note for those that don't know how to enable developer options - go to settings, about phone, click build number 7x. It should take you right to the Developer Options menu. Nice clear concise guide by the way! Glad someone wrote a simpler one than the one I wrote initially, only so many hours in the day.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
Thanks for mentioning the dev. option. All credit to all of you guys who made this possible.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] luis7654:
I've been trying for days to download the MEGA zip, but no matter what I do it always stays on 0% and gives me an error. I tried on different browsers, on different computers, and using the desktop app, I even tried with the mobile app with no luck. Could someone please share a mirror or another link, please? :(
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] luis7654:
Nevermind, I was finally able to download the file, my solution was to use chrome instead of firefox and close every window except the mega one... I left it like that for a couple of hours and it finally downloaded it.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] samussamus1:
Possibly a stupid question, but are there any downsides to this other than the risk of bricking?
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
If you follow the tutorial, there will be no problem even soft brick.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
Its a normal troubleshooting, if its not working to other browser, try another one, great to hear that you managed, happy rooting.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] samussamus1:
Thanks but this isn't what I meant, I was thinking more so of apps not working due to root detection. Banking apps or others?

-

Sam
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
You can hide the Magisk (setting/select the apps/then hide magisk) so it will not detect that you are rooted.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] samussamus1:
Brilliant, thank you!

-

Sam
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] Noahesbjerg:
Hi,

2 questions. First of all, does this method work for all of the 5G phones? As in the European version etc. And second of all, will the phone brick if you update it via OTA, or do we need to do this method every time?
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
Hi,

1. Yes its applicable for all version.

2. Yes it will brick your phone when updating via OTA
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] cyberpunkfw1983:
you can take a screen for hide magisk for app (Root) because I can't find it.

and still no solution to recover the fingerprint reader? thank you
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
Hi, see attached. You have to rename the Magisk after selecting in pic. # 1.

You can find the FP calibration procedure here in XDA.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] cyberpunkfw1983:
Ty ?
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] Zigi86:
Hi Guys, first of all thanks for awesome tutorial. Got it rooted and enjoying the perks. However, some issues do exist. 1. The phone has detected a new update v4.09. Will the root be deactivated if I update the system? Second question, my banking app is detecting the root and does not want to start. I did set magisk manager to hide it from the app and restarted the phone even, but no luck the app still sees the root. Any solution for it? Thanks all
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] cyberpunkfw1983:
hello I would like to know how to put it back original? bootloader, Root ... thank you
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
1. If you updated your RM5G before rooting, its bug, ignore it.

2. Mine is working as i showed in the photo above (ANB)
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
Hi,

Download the original OS in Nubia website, extract it and take the boot.img & recovery.img and fastboot flash it, flash also the param.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] trongkhoi132:
how to delete old FP

how to delete old FP
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] cyberpunkfw1983:
---------- Post added at 06:21 PM ---------- Previous post was at 06:20 PM ----------

excuse me again but even after i get the bootloader, root and recovery i still can't add a fingerprint (error). thank you (param?)
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] cyberpunkfw1983:
adb reboot fastboot

fastboot oem nubia_unlock NUBIA_NX659J

fastboot flashing lock (screen will prompt to relock BL, choose to Relock)

The phone should reboot and install the original software. BUT...

You'll have to reflash the stock recovery.img, reboot to stock recovery, wipe data, wipe cache, and flash the CN update.zip rom to a flash drive FORMATTED TO FAT32
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] cyberpunkfw1983:
i have this after reboot when starting up during configuration... help plz :(
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
Hi, can you please clarify more your issue? I remember you want only to return back to stock right? Did you follow what i mentioned?
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] cyberpunkfw1983:
with which rom cn? Thanks for your help :)

!!!!I can no longer install a cn rom ...
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
What is your main issue? Go back to stock right?
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] cyberpunkfw1983:
my red magic is a chinese version with a basic cn rom. i switched it to global eu version few months ago. So I reinstalled the global eu, reset ... but it hangs during the configuration with a code that I am asked. And I can not reinstall the rom cn, it hangs at + - 24%. Thank you

---------- Post added at 10:30 AM ---------- Previous post was at 09:47 AM ----------

install package failure with rom cn :(
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] Byte Burner:
Is flashing the bootloader unlocker required? There is already and option in the Developer Options to unlock it for OEM. Thank you.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
1. No, just run the command

2. The option you mentioned in the Developer Option is only for you to be able to run the command in item 1.b.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] Xerophy:
Wifi calling

Does this rom have the wifi feature included? I'm thinking about rooting my phone and flashing a different OS but only if it has WiFi calling
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] Ahmed alzadiali:
Hi bro I unlocked the bootluder how can louck it again?!
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] lionhealth:
Thank for ur work here. I have some questions

1. Is it just root? Is it effect anything like kernel, system, rom...

2. Can I use this trick to root my red magic 5S ? Plan to purchase the 5S but neet root work.

Thank again :)
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
What do you mean wifi feature?
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
Did you really unlock your bootloader? because this procedure will not unlock your bootloader, its Nubia flaws. If you have this big sign <i> in booting, then you are really have unlock bootloader.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
Hi,

1. This is root + TWRP, it will not affect anything unless you do the procedure wrong

2. Some people in telegram claim its working also in 5s, i didnt try because my device is 5g. It might work because they have same hardware and software. Only difference is the modem.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] thmthoom:
worked for me without any issues ...

Thanks a lot brother :)
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] zam666:
Mobile data loss.

Hi and thank you so much. Everyrhing was simple to attempt, and now I have a rooted phone. Excellent.

But one thing went wrong for me- I can't get mobile data to work. Neither manage APN settings. Can it depend on flashed modem in the package? I use global ROM.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] vagenrider:
guys how to make the system partition writable? i want run some scripts
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] outlaw1985:
Thanks for such good information.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] Pororo:
If you download the latest update from nubia website and apply it. root will be removed..

Is there a way to remove the unable to update thing because of the root?
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] Nabilghali55:
Hi my red magic 5g is Chinese with global rom when I tried to root it it is not detected by pc when I try to unlock bootloader
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] luissierra:
excuse me brother between each line should I give enter? or do I write all the commands and at the last press enter on my PC? thanks for answering
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] luissierra:
hello guys between each command click enter or write all the commands and at the end enter?
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] Patrick Morgan:
You should follow my directions for the 5S, they have been confirmed working for the 5G you dont lose locked bootloader or your fingerprint sensor using my directions.

https://xdaforums.com/showpost.php?p=83531083&postcount=2
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
Press enter every command
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
this tutorial wont break anything
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] Patrick Morgan:
If you have not unlocked your bootloader yet, then no. This will allow you to install TWRP recovery. And put magisk root on your phone, without unlocking your bootloader, and without losing your fingerprint sensor.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] luissierra:
It is a good alternative, I am not interested in losing my fingerprint I want root and twrp to install the kernel with 900hz gpu overclock, is it possible with this method or if I need to unlock the bootloader?
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] Patrick Morgan:
the small tutorial I have on my Thread should work on both 5G and 5S models.

it will not unlock your bootloader.

it will install TWRP as a recovery

it can (if you want root) install magisk as a root controller.

you won't lose your finger print. and you can use root and TWRP to install LOS or other region Stock roms.

https://xdaforums.com/nubia-red-magic-5s/how-to/official-5s-roms-t4164861
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] luissierra:
brother without unlocking the bootloader can you install the kernel with overclock to 900hz gpu? or do I need to unlock yes or yes?
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] Patrick Morgan:
Yes.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] luissierra:
They will say that as annoying haha ​​but I am new to this team previously I had only had one plus ,,, I bought the red magic 5g version with global rom .. I guess there will be no problem with that firmware
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
no problem
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] luissierra:
[QUOTE = "CaLix25, publicación: 84079003, miembro: 5289530"]

No hay problema

[/CITAR]and so it was brother, everything worked and the first
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] giannis008:
If I root my phone using this guide will I lose my data?
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
Yes
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] Nagata_San21:
Hi! i just recieved a new update from Nubia. V8.57 Android 11 Global rom. will i be able to root it as the same with previous version? cuz i unroot mine and updated. my twrp got wiped
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] DD890:
Hi I got red magic 5g androide11 globle room but I try to install twrp on it but it's devices corrupt helpe out rgardes
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] DD890:
OK I locked my phone an android 10 on it so my question I can update to v. 57 and install twrp regardes.
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] JerichoJaf:
hi thanks for this tutorial however i encountered a problem, after the command "fastboot oem nubia_unlock NUBIA_NX659J" the reply was < waiting for any device > it seems like it cannot recognize my nubia rm5g i already put my device to edload mode what can i do here? thanks
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] 3Danger:
Files from mega.nz isn't avialble...
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
Three reasons:

1. Maybe driver or

2. Port or cable

3. Try other computer
[Nubia Red Magic 5G / 5S Guides, News, & Discussion] CaLix25:
Pls use Patrick thread, thats more updated than mine.
[Xiaomi Mi A3 Questions & Answers] legaldexter:
I have seen that mi A3 with stock Android has a Always on Display feature like Samsung does. My question is can we change it's theme or colors like we do in Samsung devices?
[Xiaomi Mi A3 Questions & Answers] _mysiak_:
Nope, only one AOD design is available.
[Xiaomi Mi A3 Questions & Answers] legaldexter:
Can't we tweak or change it via root or any Magisk Module?
[Xiaomi Mi A3 Questions & Answers] _mysiak_:
If you're familiar with decompiling, modifying and recompiling of system apps, then you certainly can try. :) Otherwise no, currently there is no known method to change it.
[Touch Diamond, MDA Compact IV General] Royael:
Is there a software to change the textcolor, on the clock, calenderevents and callhistory?
[Samsung Galaxy A3, A5, A7 (2017) Questions & Answe] Denversmartphone:
Hello dear, i have a problem with a Samsung a7 2018 from my friend..so i explane the problem..the phone doesnt work with any sim card..my friend give a mobile to a Person that i do know WTF do block the phone and appears a Red write on boot where Say that smartphone Will not work without originale firmare..so i try to repair with Odin..i flash thousan of Rom Italian on the beginning all still working but not the Sim..It recognize inside but i can select the network so i can only make emergency call..i try to flash with different rom with custom rom with twrp but nothing Always the same problem..i try different rom all firmware flash correct with Odin but now i face a new problem..when i flash with all firmware i use It flash correctly i can go in download mode rescue mode but i cant procede with smartphone configuration..Is still Always lock on Samsung logo..and stay like this for ever..any help for fix It please? The latest rom installed Is android 10 firmware itv..model Is sm-750fn..if i go to download mode It happears avoid waranty 1 and carrier_id omn..now i cant install in any Way twrp again..Always file and Say that only original bootloader Will work
[Moto G7 Play Questions & Answers] didymus:
What exactly is the purpose of having a `logo_a` and a `logo_b`? If I have the same `logo.bin` at both locations how do I remove it without replacing it with another one?

When I flash a ROM and it comes with a `logo.bin` do I have to flash it to `logo_a` *and* `logo_b`? The instructions that I read only have `logo` I believe.

Thank you.
[Moto G7 Play Questions & Answers] Spaceminer:
AB devices are essentially dual boot. Your phone holds 2 operating systems. So you have one logo for each OS. You don't remove logos or their partitions. You replace it by flashing a new logo and overwriting the old one.
[HTC One E8] tarkzim:
* Your warranty is now void.
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/

Introduction

LineageOS is a free, community built, aftermarket firmware distribution of Android 10 (Q), which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

Bugs

What's working:

Boot

Audio Playback

Camera/Camcorder

DT2W

RIL (LTE/CALL/SMS)

FM Radio

WiFi

Hotspot

Bluetooth

GNSS GPS

NFC (Tested on single sim E8 with PN547 chip, Please let me know if it's working on yours)

USB (ADB)

Sensors

Touch

Hardware Encryption

SELinux is Enforcing

What's not working:

You tell me.

Installation instructions

Download the zip(s).

Install a compatible Recovery

Perform a NANDroid backup of your current ROM (Optional)

Wipe data & cache partitions of your device (required when coming from stock!).

Flash ROM.

Optional: Install the Google Apps addon package.

Supported models:

Single SIM : htc_mecwhl,htc_mectl,htc_mecul,htc_mecul_emea

Dual SIM : htc_mecdug,htc_mecdugl,htc_mecdwg,htc_mecdwgl

Downloads

Recovery : Unofficial E8 TWRP (Support decryption, MTP: broken)

Gapps : Open Gapps Arm 10.0

Rom :

Single SIM Variants

Dual SIM Variants

Sources

Device Trees

Kernel Trees

Vendor Trees

Donate

DONATE To Me

Big Thanks

LineageOS Team.

[MENTION=9102872]RavnPW[/MENTION] for his contribution on E8 sources, especially vendor blobs and kernel change.

All M8/MSM8974 contributors.

I don't have this device, just build it with my latest changes for E8 users
[HTC One E8] tarkzim:
Changelogs

2020/09/14

Updated with September security patches.

Upstream updates and fixes.

2020/08/08

Updated to Android 10.0.0_r41 with August security patches.

Upstream updates and fixes.

Optimized adaptive brightness.

Added MEMCG kernel patches, switched to LMKD for better performances.

Fixed NFC for more variants (htc_mecul_emea, htc_mecdwgl)

2020/07/13

Updated to Android 10.0.0_r40 with July security patches.

Upstream updates and fixes.

Removed bootloader version restrictions.

Removed IR Blaster HAL, as we don't have the hardware support.

2020/07/13

TWRP 3.4.0-0 released for E8 all variants, Please test it and let me know.

2020/07/10

Initial LOS17 build for E8/E8D.

With Android 10.0.0_r37 with June security patches.

With latest MSM8974 LOS kernel changes.

With SELinux Enforcing.

With USB Trust HAL.

NFC works on single sim variant with pn547, should also works for dual sim variant with pn544.
[HTC One E8] tarkzim:
Screenshots

here!
[HTC One E8] tom7647:
my htc e8 model in bootloader is ... MEC_UL_EMEA (M8SN)singel sim

whay error installing lineg os 14 / 15 / 16 / 17 ????? error say E3004: this pakage is for device: htc_e8.htc_mecwhl. htc_mectl htc mecul_emea: this device is . updater process ended with error: 7
[HTC One E8] tarkzim:
Send me your recovery.log after trying to flash the ROM, also use adb from TWRP to type the command:

adb shell

getprop | grep mid

and what's your TWRP version?

is the latest M8 official TWRP from my link above?
[HTC One E8] tom7647:
my twrp version 3.1.0.0 and my device just running this version //after install twrp-3.4.0-1-m8.img .device not run in to recovery and jump to bootloader
[HTC One E8] tarkzim:
Then just try with your previous working TWRP and commands above to get info for me.
[HTC One E8] tarkzim:
TWRP decryption support

Alright, guys

As far as i know the M8 version of TWRP are not working for this device, so i decided to build an unofficial TWRP for E8,

HERE

Please try it to flash the ROM and let me know if decryption and MTP is working, thanks!
[HTC One E8] SWEVEX:
taking too long to clear the cache, system, but the installation is fast, boot fast and ROM runs smoothly
[HTC One E8] tarkzim:
Is dual sim working for you?

And just curious, what's your variant?
[HTC One E8] SWEVEX:
I only use 1 Sim, my phone model m8sd, but after restarting my microsd corrupted
[HTC One E8] tarkzim:
new build released

Updated to Android 10.0.0_r40 with July security patches.

Upstream updates and fixes.

Removed bootloader version restrictions.

Removed IR Blaster HAL, as we don't have the hardware support.

[MENTION=10950289]tom7647[/MENTION] please test it.
[HTC One E8] tarkzim:
Not sure about the SD card problem, what's the filesystem format of your card?

BTW, is NFC working for your phone?
[HTC One E8] tom7647:
yessssssssss instally magic e8

you are my hero thanks for every think:good:
[HTC One E8] tarkzim:
Don't forget to test nfc features and let me know if it's working, if not please grab logs and send me your stock rom backup would be great.
[HTC One E8] tom7647:
install in recovery successful reboot and install step 2 successful .but stay in htc logo

when its on htc''s logo i had call from my friend and my phone was ringing !!!

when click power bottom. i listen lock sound!!!

also on htc's logo didn't continue ..............
[HTC One E8] tarkzim:
Send me your last_kmsg after reboot to twrp, Google it for tutorial.

Edit: Also, have you ever update your stock rom to latest firmware like 6.0.1? Before flashing custom roms.
[HTC One E8] tom7647:
yes i had marshmallow firmware before flashing custom rom . try install 0PAJIMG_M8_ACE_UL_L50_SENSE60_EMEA_MR_HTC_Europe_2.34.401.5_Radio_1.23.30336021.10G_30.69.336021.00_F_release_431395_signed// maybe install:good:

---------- Post added at 07:45 PM ---------- Previous post was at 07:39 PM ----------

it is my problem :( you are great :highfive: