yashsingh1/xdaforums huggingface dataset:
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Godwave00:
Random reboots

Brother, I need help. I've been facing this problem since buying the phone & it's been around 8 months. My phone is a K20pro Chinese variant, 6/128gb. From the very beginning, it was in Chinese rom v10.3.5.0 & I never could update it, whenever I tried to update after 1% the whole thing crashed & rebooted. Then came the sudden crashes & reboots, my device auto crashed & reboots even without any load. I thought it was software issues so I used fastboot method to update to v10.3.8.0 but the issues still persist. So I unlocked bootloader & went to Xiaomi.eu & after a few stable days, it again started to crash & reboot. It's been like that for months, no matter what rom I go to the random reboots & crashes always follow & even now while I'm in Xiaomi.eu miui 11 beta it still crashes. In fact sometimes it auto factory resets after crashing multiple times or bootloops by itself :( . Now I'm completely lost & feeling hopeless. Around 7 of my friends bought the same device all Chinese but none of them faces this problem. Now I think it's a hardware issue but what kind of issue? I was busy with my varsity but even now I have a warranty but because of COVID-19, I can't send it to service. What should I do?

And also apps like Facebook, messenger, google play services, etc. crashes a lot, like a LOT.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Ahightechtyler:
Stuck In Orange Fox Recovery

Followed the instructions, tried to install Evolution X and Pixel Experience, but both times the phone would only boot into the custom recovery.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] rookoo22:
Having possibly the same issue as the above poster, trying to install Lineage and when I get to this step:

Now, TWRP usage.

Now press and hold power key + volume up to enter TWRP.

it simply reboots into fastboot when I hold the buttons.

The CMD looks like this:

"C:\Users\G\Desktop\MIUI UNLOCK tools\platform-tools>fastboot devices

cf794f7b fastboot

C:\Users\G\Desktop\MIUI UNLOCK tools\platform-tools>fastboot flash recovery twrp-3.3.1-0-raphael.img

Sending 'recovery' (65536 KB) OKAY [ 1.479s]

Writing 'recovery' OKAY [ 0.341s]

Finished. Total time: 1.908s"

am I using the wrong version?

If twrp-3.3.1-0-raphael.img is the wrong one to use, is there a link to the version that works? My device is miui 11.0.3.0(PFJCNXM) as I purchased it from china. Am I supposed to switch it to a global rom first or something?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Robbo.5000:
Use v 3.3.1-32 from here

https://xdaforums.com/k20-pro/devel...icial-twrp-xiaomi-redmi-t3944363/post79823568

After installing do the power and vol+ and keep holding both until the phone vibrates. Release power but keep holding vol+.

Alternatively type fastboot reboot in the PC and after hitting enter quickly press and hold vol+ on the phone and keep holding until TWRP loads.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] rookoo22:
No dice, CMD shows:

"C:\Users\G\Desktop\MIUI UNLOCK tools\platform-tools>fastboot devices

cf794f7b fastboot

C:\Users\G\Desktop\MIUI UNLOCK tools\platform-tools>fastboot flash recovery twrp-3.3.1-32-raphael-raphaelin-mauronofrio.img

Sending 'recovery' (65536 KB) OKAY [ 1.482s]

Writing 'recovery' OKAY [ 0.334s]

Finished. Total time: 1.904s "

Doing what you recommend just throws me back into the fastboot splash screen. I'm really at a loss as to where I'm going wrong here. Should I see any visual confirmation on the fastboot splashscreen when the .img has been installed? I just have the text on the CMD to go by.

Is there something I should check to see if my device is somehow not in a state to install TWRP properly? Or should it be fine going by the CMD/the fact that it's in fastboot in the first place?

Also I assume it'd be a bad idea to skip this step and just go ahead to installing a custom rom? Or is the TWRP step mandatory?

Is the Stuck at Fastboot Fix part appropriate here? I can still boot into the stock unlocked OS if that matters.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] srvoleti:
[MENTION=10511047]rookoo22[/MENTION] I think you have a K20 not K20 Pro, from your above post "My device is miui 11.0.3.0(PFJCNXM)", please check once again. If that's so, you should flash ' davinci' twrp not Raphael.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] rookoo22:
Urggh yeah, what a stupid mistake to make. That explains it then I guess. I'll go look in the other forum, cheers.

Edit: Just out of interest, with the regular K20, are the steps in the guide the same, except replace any raphael builds with davinci builds, and using the custom rom on the K20 forum?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Sorry for the late reply, Everyone else seemed to have answered, and you've fixed it. glad to hear that. (but my urge to reply to every message is too strong!)

If moving from miui to aosp you have to format the data partition. check the MIUI-AOSP part. Make sure you have the right vendor flashed.

oof, you seemed to have forgotten to flash a vendor before restarting. (you must've wiped the vendor, and restarted) you need to have a vendor installed before restarting. use the STUCK IN FASTBOOT FIX guide

If you are using the debloat tool attached, It has a install button, just use that. If you are using titanium, same thing. or jus freeze them next time. If you are using the root uninstaller app from playstore. It gives a warning to keep the deleted files it did in its folder. use that (if you haven't deleted it)

I have no clue here. sorry mate, perhaps hardware? idk? talk to customer service, screenshot their answer and the date to talk to the service center with proof of purchase and where you started to get this problem after covid is eradicated. fastboot flash stock rom has the same problem? flash stock, remove all mods, lock bootloader and go to service center and say you don't know why its happening and play dumb

are you using the correct vendor? are you moving from miui to aosp? have you tried formatting the data partition by typing yes? is the build correct? is it being flashed successfully?

oh, lols. I'd assume it is the same procedure. But I honestly don't really know. you should join their telegram group for more info
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Godwave00:
Okay man thx anyway
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Bigbang077:
Any develper here I need help..

I rooted my k20 pro on miui and downloaded some gpu tweak tool I changed frequncy randomly and my phone turned off.. So I flashed fastboot recovery and now when I'm playing pubg I'm my frame drops for 2 seconds it stucks for 2 seconds every 10 seconds...

I don't know wht to do plz post a reply...
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] hedayat7:
Just wipe your phone.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Bigbang077:
Done everything phone started overheating
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] bdwilk:
Format device. Type yes and wipe it all gone. Never use GPU tweaks again.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Pablo_padilla5:
Hi, has anyone tried the fastboot method to go back to stock miui and lock bootloader that could give me proper steps? Thanks in advance
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Amar 721:
Bro i am new here so please dont bash me,

but whenever i try to install a k20 pro rom it says its for raphael not for raphaelin

indian and chinese are different but i tried updating the updater script too but dosent seem to work

help me
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Robbo.5000:
Here's the flashing guide from the official MIUI forums

https://c.mi.com/oc/miuidownload/detail?guide=2

You will need to view the page in desktop mode if viewing on a phone. Make sure you the flash option in step 5 is 'clean all and lock'.

However, make sure you are OK to lock the bootloader with your phone and the ROM you are flashing. You will be fine if you are restoring a ROM that is for the original region of your phone. You need to take care if cross flashing.

Here's some detail from the official forums on when you can and can't lock the bootloader when cross flashing.

https://c.mi.com/thread-2584760-1-0.html

Global here means all versions that are not China.

---------- Post added at 09:37 AM ---------- Previous post was at 09:35 AM ----------

Are your using the latest TWRP from mauronofrio? If not, install it and try again.

https://xdaforums.com/k20-pro/devel...icial-twrp-xiaomi-redmi-t3944363/post79823568
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Check How Get Back To My Stock ROM and/or Lock Bootloader? part of the guide in post 3

Check ERROR 7 fix and how to modify UpdaterScript in post 2
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] imunisasi:
i try k20 pro motor it wont stay on popup

https://www.youtube.com/watch?v=BZYn5VM0YgM

this one wont stay on popup

before this it's always popup

i force close with hand but it wont complete close

i close it using k20 motor apk, it can close

now it's won't open

is this hardware problem ?

-------------

done by fastboot stock mui, then calibrate camera

thanks
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] md sabuj:
Is there any way to bypass AntiRollback Protection?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Sorry for taking so long to reply back. I was dealing with my exam, assignment and project deadlines. Glad it's fixed

This device doesn't have Anti-Rollback Protection. But it breaks sensors for only the Indian variant (aka Raphaelin - Rin)
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Shrekious:
Hi, I have a costum rom for android 9 (PE) what do I have to do if I want to install android 10 roms? :confused:
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] bdwilk:
Same exact procedure you did for PE.

Remove pin/password in settings

Make a backup (optional but recommended)

Wipe dalvik, data, system and cache

Flash latest firmware/vendor

Flash ROM

Flash gapps (if chosen ROM doesn't bundle them)

Flash magisk (if you want root access)

Flash DFE (disable force encryption - if you are unencrypted)
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] rachit011:
Why are we supposed to format data(with yes) while interchanging between aosp and miui?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] bdwilk:
Well if you don't use DFE to be unencrypted then I'm pretty sure MIUI encryption and custom encryption aren't very compatible. The only way to clear encrypted data is with a full format. This is one of the many reasons most of us remain unencrypted.

If you are unencrypted then formatting isn't necessary. I've done it a whole lot of times without issues.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] NE0HP:
Nicely covered up almost everything and how things can be sorted out with fixes...Thank you. Brought the device just two days back and now on latest AOSiP .
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] IoIam:
Can't you just remove your password?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
"Almost." If you find anything I haven't covered. I'll update it asap.

(contacting me on telegram would be faster)
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] NE0HP:
lol.. didn't found out anything yet in two days.. still playing with device but will surely ping you if at all I find anything that is not cover but looking at your confidence level the way you write "Amost" to begin your reply I'm sure I will hardly find one! :p:laugh:
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] bdwilk:
That's file based encryption (FBE). The encryption I'm speaking of is full-disk encryption (FDE) and is done without a password and forced by all ROMs upon first boot. You can find zips around XDA that prevent ROMs from forcing encryption. If you're a flashaholic or like to switch often between stock ROMs and custom ROMs without formating data then one of these zips is necessary.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Siaght:
Hi. I want to test a custom rom after spending almost a year with my K20 Pro and I'm looking for help. I already bought with the bootloader unlocked and Indian ROM, but now I'm having doubts about which vendor I need to use, even with the given info. Regarding the box, I have a chinese box (black and purple with chinese characters on one side).

When I use the code

getprop ro.product.device

in Orange Fox Recovery terminal it displays Raphael. Although, when I use AIDA64 or terminal in system it says Raphaelin. In which should I believe and which vendor should I use to proper install a custom rom?

Also, what are the consequences of a wrong vendor installed? Is it easily recoverable by just installing the correct vendor in recovery?

Thank you all in advance!

PS: I can provide pictures of system info, the apps and the box later if needed.

EDIT: Xiaomi authentication shows this, can I assume it is a chinese version device, flashed with an indian ROM through fastboot then? https://imgur.com/DCIK4Xo
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] IoIam:
why can I only boot into fastboot after data format and vendor flash? Even flashing recovery from fastboot does nothing
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] mikica023:
Mi 9t Pro EEA and Global have the same packaging, no difference in labels either. I own both, purchased in a vacuum pack.

Послато са Mi 9T Pro помоћу Тапатока
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] ntmalol:
[edited]
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
I haven't covered FBE, that weird warning in TWRP. Haven't covered fde ai from https://xdaforums.com/k20-pro/how-to/warning-fde-ai-module-k20-k20-pro-t3960537

how to remove miui ads, v4a fix, pubg problems. rooted bank app fixes and enable volte.

You're talking about DFE file? attached in post 1 and comment 3 I think. (haven't added dfe+magisk file.) I'll add that soon and remove one of the two files

Welcome to k20p. It's a known thing that some sellers buy the china variant, unlock bootloader and flash the Indian rom to evade blocks, no ads and so forth. I'm assuming that's what you got/did (90% sure)

A good surefire way is to use your NFC chip. (most apps will say nfc not enabled cause Indian rom has it disabled, i.e wrong info due to rom simply not having it.)

Assuming you have china variant, (cause box and terminal) flashing stock china rom would fix.

(or.... just flashing a custom miui? works on all devices, no-hassle, upgrade to miui12 since you can?)

(you can use EU rom from xiaomi .eu website. or you can use MortalOS from https://xdaforums.com/k20-pro/development/memeui-12-rc5-09-05-2020-t4097469 ) made by raaj52 (has a few known bugs, but it's amazing overall)

Fashing vendors isn't advised, china using global/Indian doesn't cause many problems. However global - Indian / Indian - global does. But global to ru/eea doesn't. You seem to have china, you can confirm this if you can actively use NFC somewhere, cause the Indian model doesn't have NFC hardware chip

The wrong vendor might just bring you back to recovery. So yes, it is recoverable.

Your assumption is what I am confirming as well (the authenticity concerns me though, so idk there.)

(I saw your post moments after you posted it, I just don't hope onto my laptop as often. I'm usually on my phone on telegram)

I'm assuming cause you didn't flash a rom? and you're encrypted? or wrong vendor? (lack of info here man)
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] IoIam:
I was formatting data because I was encrypted, so I needed to do that before flashing. After formatting obviously I had no files and my recovery wouldn't allow to add rom files before rebooting into recovery. Rebooting in recovery resulted every time in going into fastboot so I had to use miflash to even boot anything
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Oh. That's just cause you wiped vendor. And rebooted recovery. Don't do that. Follow "stuck in fastboot" to get out. Explains how you got into the mess as well.

Enable mtp too. I'm assuming you did that as well?

Don't reboot recovery without a vendor. Format data is not the same as wipe data option (two completely different things.)

Flashing dfe after you flash rom will have you decrypted always.

-sandeep (answering via phone for the first time ever!)
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] IoIam:
That must be it, I eventually fixed it myself by using miflash enough times to succeed in flashing aicp
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] mandarjoshiin:
Hey dude nice thread! I need one advice here. I was on Android 9 Indian version with Root access and TWRP. I got OTA for Android 10 and my TWRP is gone. Now the case is, I still have magisk but it says unable to load module/no root found but many of my bank apps don't work saying rooted phone not supported..

Now I m on MIUI11.0.6.0 QFKINXM and now can't find how can I get root access again and will I be able to keep the access when we will have. MIUI12 ota? Please help me out. Thanks!
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Just re-flash twrp.img, re-flash magisk.

For magisk, update to latest version, hide magisk in settings, rename magisk. Re-flash all modules.

Clear data in all banking apps and re-login.

Same procedure when you ota update to miui12

(Also, don't revert back to pie now)
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] picturpoet:
I'm getting an Error 1 when I flash Magisk. Same situation as above. Can you suggest what I can do yo resolve?

TIA
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] mandarjoshiin:
Thanks for your reply bro. One question will Flashing TWRP wipe my data? And also which TWRP currently supports MIUI11 latest build? If you can help me out it will be great because I don't want to format the phone and start again.. ??
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
I'd reccomend orangefox latest or orangefox 10.6 as in the guide.

No, twrp won't erase data. You flash the .img file with terminal.

Use twrp from mouronofroi.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] sofir786:
Thanks for the guide mate worked a treat, one thing though I'd ask to be updated on it is the bit where you are flashing twrp, in the guide it states fastboot flash recovery twrp, I had to enter twrp.img.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Checked it out.

It says press TAB key cause some people initially don't rename the file. (under how to unlock bootloader)

It says twrp.img already (under stuck in fastboot).
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Tarif.tk:
I have not backup the persist file now my gyro sensor is not working where to get the persist file please help
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] mandarjoshiin:
Thanks for the help.. It worked like charm. My only concern is, the orange fox recovery is not permanent as I didn't flash the zip file again because in instructions it said format data after flashing the zip.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] billamin:
The lockscreen is extremely laggy for all custom roms. I am using evolution X now, the same issue. Any solution?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] adianasiewicz:
Hey, i have a question. Which Rom choose? custom Rom on miui like miroom or aosp? Could you tell me which one will be the best? Ps. I'm using exposed, gravitybox, magisk and some modules. Best regards :)
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sjhingan:
hi all, bit of a noob here. so i have some specific questions regarding havoc os 3.6. Current setup op3t running 9.0.6 rooted with magisk and latest twrp. Do i need to flash any vendor/firmware/region specific files? if so from where? the havoc download site has two options, one is official rom other is Gapps. Ifi flash the opne with gapps then do i not need to flash gapps separately? should there be a preference one way or another? I will also take a nandroid backup, if i need to restore stock rom will i need to flash the os firmware again? Thanks in advance!
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Havoc has two files. One is vanilla (without gapps) and one is gapps (with gapps). Here obviously, gapps variant is bigger in file size.

If you flash gapps, you get core gapps, like playstore and such. (I prefer vanilla variant btw)

Yes you need to flash the latest vendor before flashing havoc for both, and if you move to miui again (nand will have its vendor inbuilt, so don't worry about it.) and come back to havoc, you need to flash the vendor again (assuming stock miui isn't using the latest vendor released.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] rachit011:
So basically, we just need to flash dfe once and then we can switch between miui(including stock) and aosp without formatting?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] bdwilk:
You'll need to flash DFE every time you flash a ROM zip including MIUI. Every ROM zip includes the script to force encryption upon first boot.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sjhingan:
noob here, just flashed the ROM BUT CANT SEEM TO FIND ADVANCED REBOOT IN DEV OPTIONS. what am i doing wrong? thx
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] NE0HP:
Look at under Havoc settings.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sjhingan:
could you please be more specific?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] NE0HP:
I'm not on havoc so dunno where exactly the option is but usually most of roms place this under thier own rom name specific settings..and it's now no longer available under dev options afaik..so you can explore all settings and see if you find something like power menu options somewhere... i.e settings -> havoc settings -> buttons -> power menu or may be in different settings...or post your query on havoc device specific thread so you will get more precise answer.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] cesargrios:
It's not in dev options. You have to go to Configuration center > Buttons > Power menu > Advanced reboot.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] mandarjoshiin:
Hi all, can we flash MIUI 12 eu rom on indian k20 pro? I see many additional features in that as compared to Indian build...

Update - I Flashed the latest stable EU rom and did flash DFE on top of that but didn't reboot and immediately flashed OFR and magisk and when I restarted my phone got stuck on MIUI screen. When I rebooted in recovery I found that my data was encrypted and there was no clue which folder had what? :silly:

Then I formatted the data partition and flashed the rom again with DFE,flashed magisk and rebooted successfully in Rom.

But everytime I tried to install Titanium Backup, it used to crash. I had taken already taken apps backup as Update.zip from TB. But when I tried to install the zip, I got error as Zip is corrupted. :eek:

After trying all these things till 2 am, I slept. After getting up I decided to give another shot.

1. I formatted everything

2. Flashed rom

3. Mounted Vendor and flashed DFE

4. Rebooted into recovery again and flashed magisk

5. Rebooted into system and updated Magisk

6. Installed Titanium Backup successfully and restored the apps.. .. :angel:
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Glad for the share!

These are the reasons I recommend ofox recovery and migrate backup (idky but migrate may have problems with miui)

dfe is always needed for miui these days. (and a few users face rom not booting if they used the dfe+magisk combined file on miui. idky)

Glad to hear everything worked. Glad you took a backup too!
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] HSgod:
Good guide, but update rom links, few roms have changed maintainer :)