yashsingh1/xdaforums huggingface dataset:
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Tigernmas:
So I think it is fine to use either (if they live in Europe), from the research I did - my handset came with the EEA version installed (in the UK), so I wanted to keep things the same. There's a good reddit discussion on the particulars - it's mainly GDPR compliance stuff for European customers. If people want to be sure what they are on, they should, go to Settings-> About phone-> MIUI Version [code in the brackets]

• PFJMIXM = International/Global

• PFJEUXM = European

If it has 'MI' stick with the global one.

https://i.imgur.com/Wrvfbg7.jpg <-example here has a global stock rom installed

Anyways, thanks again for taking the time to compile this guide as I think it is the best one I have found anywhere, and is a great start for those not used to flashing!

Further info:

https://old.reddit.com/r/Xiaomi/comments/bt6z7b/miui_global_rom_vs_eea_rom/
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] rookoo22:
I've linked my account in the process of unlocking the bootloader but can't see anything about a 7+ day waiting time. Has it been removed or something? It just says "Don't disconnect from the network, sign out of mi account" etc.

The phone was billed as having a global rom installed but the miui version PFJCNXM which I'm guessing indicates it's not a proper global rom. Dunno if that's got anything to do with it.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
the waiting time thing shows in the mi-flash tool when you attempt to unlock by clicking the unlock button in the mi-flash tool.

you can just wait it out. I just did what you did, got the same message, waited 2 months, cause I didn't care about unlocking the bootloader. But when I did want to, I didn't have to wait. (aka, I future planned)

Global ROM huh? your vendor is Chinese though. and you are running android PIE.

1. check 3rd comment to find out what phone you actually have.

2. download the proper vendor

3. download the proper rom you like.

4. oh and most importantly, make sure you are upgrading properly, I didn't include this in the guide, all I said was upgrade to android 10 via the system itself. but you seem to have mismatched things. (common for some random retailers to do. they unlock, the change rom, then lock and sell....)

5. Xiaomi is an online company, get it from their store or aliexpress or Flipkart or something next time.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] cpc71783:
Hello, I'm about to purchase the Xiaomi Mi 9T Pro ("US & Global 4G LTE International Version" M1903F11G model number) and am looking through the various ROM's here (glad to see so much support for this device). I'm coming from using Shamu (Nexus 6) over the last 5 years, with NitrogenOS (Android 7.*) and am wondering which ROM you all think would be the best choice for me.

I'm looking for something stable and without a lot of bugs, but I like to be able to customize the UI and status bar, and have a dark theme across the menus. I also tend to use a launcher, but not sure which one yet.

Based on this, what do you all recommend?

Also, I'm still a /bit/ on the fence about what phone to get, but still leaning toward the Mi 9T Pro. If you all had the choice between the Mi 9T Pro and a OnePlus 7 GM1900, what would you pick? I just don't like the idea of being stuck with a bunch of ads for 7-15 days while I wait to unlock the bootloader, and with OnePlus I think you can just jump right into it. Plus it has 8GB RAM and 256GB storage, but the camera doesn't seem to be as good. So I'm a little torn.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Sorry for the super late reply. I've been sick all week and I've just started my final semester.

anyways, Mi9tp (or raphael, or rgl) is a great phone, It's the better variant amongst all 4 variants imo.

The phone comes with miui PIE, 2 days later you can update it to miui 11 (aka android 10) within the settings as a normal user would.

once done, unlock your phone as my guide.

As for ads, that's only in k20p china variant, no other country 'allows' it. Also, rgl comes with google apps and less Xiaomi stock (use debloater tool to remove if you want to)

As for the ROM, Xiaomi never released the fingerprint unlock code, and google doesn't allow face unlock. (dumb companies, FOSS FTW!!!!!!!)

However, we have made great strides in fingerprint unlocking in all AOSP ROMs.

TOP AOSP (popular): EvoX, derpfest, aosip.

TOP MIUI (popular): EU-LS, masik, miroom.

all popular ROMs work smoothly, really intelligent devs.

As for the camera, both op7 and k20p has literally the same hardware piece, what's different is the software that makes it run.

If it's on op7, we can get it to k20p.

finally, between k20p vs op7.

I'd say op7 for an average user.

I'd say k20p for a power user, or a user who wants great ROM development.

I chose k20p cause I wanted a full-screen camera, and a pop-up selfie to flex on my friends, and be involved in a huge community and get support for at least 8+ years cause I'm a poor ol' chap.

Else if you use your phone like any other person on the planet, and don't mind the notch, and plan to get a new phone after 3years, then get the op7.

I'm a huge ricer ( a user who customizes a lot.). I use nova launcher, with a great build, you can also try lawnchair or hyperion.

For dark theme (its amoled, so you get black bleed, so will op7) use an ALMOST BLACK color. All ROMs support this, contact me on telegram for more ways to rice your phone.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] sfairmm:
Hi guys,

Did anyone try Disable Force encrypt.zip on eu.rom 20.1.16xx? I'm trying several, but none work.

Thanks!
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
did you try the one I attached in the first comment?

It works for me.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] sfairmm:
Hi,

Thanks a lot for the help [MENTION=8675715]sandeeep[/MENTION]. This thread is the most complete one I found on some customisations, congratulations on help.

The only script I didn't test was the one on this thread, after trying with some that worked on Miui 10 (Android 9), when testing on Miui 11 (Android 10) I had a job to restore the system again, so I didn't test any more .

As you said, this OP's is working, so I'm going to test it. If possible, which version of eu.rom worked for you? I'll apply anyway.

When I test it, I want to share my experience here to strengthen this thread, as I believe that many go through the same difficulty that I am going through.

Thanks a lot for the help.

Have nice!!!
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Glad to have helped. Took me a decent amount of time to make this. Apparently everyone has different answers or incomplete answers which caused everyone to face problems. So I saw a requirement that needed to be filled.

Hopefully, I'll make a ROM too, if someone taught me and if I had the internet to download stuff

I currently use EU-LS (xiaomi.eu latest stable rom.) It has a few problems, but nearly everything works without a hitch.

I wanna move to aosp, but I dislike certain stuff. (i'm super picky)

As long as comments/replies are posted here, It'll bump the guide, and more people can be helped.

Hopes to make admin in the telegram group one day. woot woot.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Mystic X:
Help

Hi Sandeeep,

First of all, thank you very much for this guide. It is the most easy guide for newbies like me and you also answered the most frequently asked questions.:highfive:

I have another question which is been bothering me for quite a few days. I tried searching on Google, but I could not find an answer.

Now some information first:

I have an European Mi 9T Pro with a Mi 9T Pro EEA ROM. I want to install the Pixel Experience ROM, so I can be as close as possible to an AOSP ROM.

1st question:

Do I have to worry about the Anti Rollback feature when flashing a custom ROM?

2nd question:

Some people online are talking about boot-loops that can occur when not flashing the disable dm-verity. Do I have to worry about this when flashing a custom ROM like the Pixel Experience ROM? What is the exact use-case for the disable dm-verity tool?

Keep up the good work. I am looking forward to your answer. :D:D

Thanks in advance.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
According to xiaomi.eu website. They stated our k20p aka mi9tp DOES NOT have the anti-rollback protection. They are pros wrt Xiaomi phones, so I'd trust that.

However, prior to making my guide, some did face massive problems with rolling back. Hence some say the protection exists. However, some have rolled back with no problems.

As for me, I haven't rolled back, so I haven't tested. I can just ASSUME that those that faced problems, didn't do the procedure right.

disable dm-verity zip file (there's a few apparently. I just use the one I attached in the first post/comment. Works for me. It includes, dfe and disable dm-verity.)

USE CASE: The dfe file (that includes disable dm-verity) works to disable decryption. When booting a ROM for the first time. The ROM runs a part of code that encrypts the device (so hackers and thieves don't steal your data). The file simply STOPs that part of the code from running.

We want this cause we want to access our files via recovery.

Someone made an updated file (attached in comment 3) that works for all phones perfectly. I haven't tried this yet cause I don't rom hop often. But I've heard it works as intended.

As for bootloop, those that face it are doing the procedure of flashing a rom wrong (usually not flashing vendor, corrupt rom file, bad download, tampering with the zip file incorrectly, or just moving from miui to aosp without formating the data partition -> common mistakes.)

Simply following HOW TO FLASH A ROM part of the guide will make flashing everything smooth.

(If you are talking about some bootloop lots of people are facing when flashing latest PE, then idk. maybe ROM problem? I haven't heard such an issue yet.)

PE comes with gapps inbuilt, so don't flash a gapps file.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Mystic X:
Thank you for the information.

I still have 5 days left before I can unlock my bootloader. I am trying to suck up us much information as possible before I start my journey. :p

One more question:

Do we have to go back every once in a while and flash MIUI, so that we can get the latest vendor firmware. Or can we just update for example Pixel Experience and that is enough for the security updates?

Thanks:D
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] sfairmm:
Hi guys,

I did rollback the eu.rom 20.1.16 (Android 10) to eu.rom 9.8.1 (Android 9) and no problem, that's fine.

Only knowlegment, when I did flash the TWRP, I also flashed vbmeta.img, I believe that vbmeta prevent to lose TWRP. In the past i every lost TWRP.

Have nice!!!
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Updating PE won't update your vendor.

We have 5 variants of the device. So AOSP devs just don't include it.

To update your vendor (if a new one releases)

Go to twrp/ofox > wipe vendor > flash new vendor > reboot

(have a backup of everything just incase. common good practice.. or just don't update anything. I mean, if it works, why change?)
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Colossus96:
What problem's are you facing in eu ls?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
google play services takes forever to load sometimes. very old outdated games have problems on first boot.

fod is slower than whats on aosp fod videos they've been sharing on telegram (not by much, just 1 sec extra)

playstore downloads sometimes take longer than usual.

jio sim (internet provider) sometimes is super super slow.

honestly, fod isn't a big deal, neither is the playstore downloads.

and for the internet, its the internet provider's fault. the same problem on my mom's phone (j7 prime) during the same time period the 'slowness starts'.

finally, the google play services thing is probably my fault when I didn't flash eu rom the first time properly. I barely use the play services thing. maybe once a week. but it works after a while.

BTW, I call xiaomi.eu EU's latest stable ROM as EU-LS and latest beta as EU-LB
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Colossus96:
Thanks. I am thinking of switching to eu roms. Currently on global stock rom. So when you said there was problem i was alarmed.

Btw miui stock & eu roms are basically the same thing so why fod would be slower?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
It isn't slower per se.

it's just, AOSP devs like utsav and abhisheik optimized the fod to work better (especially on aosp.)

I'm comparing the fod speed of miui to (videos sent in telegram of) AOSP
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] zadock:
Hi Sandeeep! First of all thanks for your nice guide!

I'm new on MIUI and I've a question about flashing process on this phone. Actually, I'm on MIUI Global 11.0.3 and I want to flash the EU rom.

After unlocking my bootloader:

1) Is necessary to flash de Orange Fox recovery? In my others phones I'd always use TWRP. This TWRP is not permanent unless you flash Magiks, right? Or is there any way to do it permanent without Magisk?

2) It's mandatory to decrypt the phone?

Thanks in advance :)
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] shiwik:
I have never had the FOD work well on any of the custom ROMs. I am on Raphelin with the India vendor. Tried flashing other vendors/firmwares but that makes FOD completely un-usable. Keep coming back to EU
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Colossus96:
hey man how to backup persist?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] zadock:
Ok, this is the thing now...

I unlocked bootloader ok, I flashed TWRP ok, then I flashed EU Rom ok, but when I try to boot system it's booting into TWRP again... Do I need to wipe data, system, and dalvik before flash the first rom?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
You can use twrp as well, I recommend mouronfroi's cause it's official.

EU flashing process. the method is in comment 2 Xiaomi.eu and other Custom MIUI ROMs

I usually say ofox, cause it has a better UI and more features. I just love how ofox works.

The recovery is permanent. If it isn't you might have to format data partition. 3rd comment Choosing Best Recovery and Stuck in Stock Recovery on Reboot Fix

Don't flash some other variant's vendor zip file. Especially for the Indian Raphaelin device. Our phone as a few other stuff altered.

fod might be a problem for AOSP ROMs? but they've become better these days. (DAMN XIAOMI FOR NOT RELEASING CODES)

All custom MIUI ROMs should have good fod. For AOSP, always always use only your vendor.

It's in comment 1. but anyways, here's a copypasta of it.

You can backup persist by having root then downloading a terminal app from Playstore. then typing these two commands.

you will find the file in your internal storage

su

dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img

nah you good, the EU rom once finished flashing, will flash mouronofroi's official twrp. its included in their rom zip file.

just reboot to recovery and fash ofox. If you want to that is. Hope you remembered to flash dfe.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Colossus96:
Wish I knew this before flashing. That's why I wondered why my ofx keep getting replaced. Who in their right mind would bundle a tarp with their Rom!
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] shiwik:
Thanks for the quick revert. I did not flash other variant's vendor. India vendor is a little better comparatively but FOD is way more irresponsive. With other variant's vendor nothing works. I am flashing Indian fastboot to check if that solves
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] zadock:
DFE is completely neccesary? What will be the problem if I don't flash it?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Robbo.5000:
It is not necessary.

Downsides to not flashing it are that you may need to format data from time to time, so you'll need to backup and restore personal data sometimes. Flashing custom ROMs, you may find that you bootloop to recovery afterwards and need to format data to fix this. When this happens TWRP or OF will not recognise the phone is encrypted and so won't give the option to enter the PIN. If you haven't backed up personal data, then it will be lost as your only fix is to format data.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] shiwik:
FOD works very well now after i fastbooted the stock Indian ROM and without wiping the vendor, flashed the custom ROM
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Colossus96:
Hi can anyone help me with these two

1. I want to replace some system app with updated app. I don't want to install update from playstore as that will just waste space. I made a script that will recursively delete those folder & extract new folder. The scripts run successfully but it doesn't work. The script used to work with my kenzo.

2. I tried uninstalling system apps with " system app remover (root)" from ps but after reboot phone went to fastboot mode & won't boot into os.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Colossus96:
Where can i get the lastest masik rom? Google didn't give me any answer.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] bdwilk:
What's a masik ROM?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Colossus96:
it's a custom miui rom with lots of feature added.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] jcdr12:
The latest its Masik 9.4

https://mega.nz/#!rpElFSLZ!nZOcTaGmHhAdMWn_kMny1iq_y19rkc7oSSipB6t9dQs
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Colossus96:
what's the base for this version? also do you have link to miroom? which one is better?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Kolio_xda:
Thanks a lot for this guide. It saved me from being stuck in fastboot. Keep up the good work!
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] tugas2khas:
Want to install first custom rom

Hi,

I just downloaded Titanium OS. I am currently on MIUI Global 11.0.3.0 (QFKMIXM). Rooted with TWRP. Has disabled all password..

The install desc is as below:

CLEAN FLASH :

Download the latest build

Reboot to recovery

Make backup (Not Necessary)

Wipe System, Data, Cache, Dalvik

Flash the latest build

Reboot
​

Question:

1. In your instruction, said

Only If you are coming from miui and flashing AOSP, go to orangefox settings > manage partitions > data > format > type yes

Do i need to do this? because in Titanium instruction doesn't say so. Or..is this a one time thing because i'm coming from miui?

2. Do i need vendor files to flash Titanium OS?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] mauam:
Yeah it's one time thing if you're on miui. After format data & type yes, copy ROM, gapps, dfe zip through MTP in recovery. Flash Rom, flash dfe, flash gapps if necessary. Forget vendor, you're already in the latest global.

Notes: Always flash dfe after flash a rom. Always flash dfe after update/install a new vendor. Always make backups without any pass, pattern, etc.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] tugas2khas:
Thanks... Need to redo my twrp full backup :)

Anyway, is AOSP better in general compared to MIUI? I've stayed long enough on MIUI and now itching to try AOSP.

Is it possible that i lose some functionality of MIUI if I use AOSP based rom?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] mauam:
For me yes. I only stay on miui a week because it's the rule before unlocking the bootloader. Of course that something that it's exclusive of miui roms you'll not find on aosp. You'll have better battery on aosp for sure.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Apologizes for the last response. I'm more active on telegram.

Exactly as Muarom said.

It's a one-time thing when going from miui to AOSP. Since you aren't wiping vendor (miui is using the proper one anyways) You don't need a vendor file.

But always have it downloaded cause you might accidentally wipe it, or flash an oss vendor based aosp, upon which you need the stock vendor file.

(guide updated to reflect oss vendor)

formating data partition from aosp to miui isn't required. But I still urge people to do so. Some add so many mods. It might be necessary, and the guide is made to help newbs primarily.

If you don't wanna keep flashing dfe, just get akhil's modified vendor.

Yes AOSP does not have some features MIUI has: THE UI, Expanded volume like MIUI, face-unlock (coming soon), in-built dual apps, Game booster (I miss this), obv miui bloat (some like it idky), lockscreen swipe right and get quick apps (EU feature), stock camera > every other camera quality, Charging led light, Screen-off fod (coming soon), and a few more.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Aryamehr1366:
I got these result when i ran "fastboot oem device-info"

...

(bootloader) Verity mode: true

(bootloader) Device unlocked: true

(bootloader) Device critical unlocked: true

(bootloader) Charger screen enabled: false

can anyone please tell me what those status are meaning? and what is the difference between device unlock and device critical unlock?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] tugas2khas:
Thanks for your reply.

Currently jumping around various AOSP based rom. :)

I've already have Akhil Narang Vendor, DFE and magisk and gapps 10 nano ready...

Still didn't decide my daily driver.

hmm... what are you using?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] farhad666:
Hi everyone

I have problem installing any rom except miui global, I 'v downloaded many ROMs.

here's my instruction:

1- full wipe

2- installing fw

3- rom via TWRP

then it loops to Bootloader.

Help plz.

thanx
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] bdwilk:
You have to format data going from MIUI to a custom ROM. Not just wipe but format where you type "yes" and it wipes the entire device, pictures and downloads, everything. Make a backup of all that stuff before continuing.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] farhad666:
Thanx but after formating and restart, device went to Fastboot loop and I cant install TWRP :crying:
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] bdwilk:
Did you do the vb meta thing? It's noted in the OP.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] farhad666:
Thanks for ur time. It s ok now. :good:

---------- Post added at 04:15 PM ---------- Previous post was at 04:14 PM ----------

I did and it's ok now.Thanks for ur time. :good:
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] valkaizer2594:
any way to reinstall stock apps after debloating?

stock miui 11.0.4 indian variant not rooted and bootloader locked