yashsingh1/xdaforums huggingface dataset:
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] cpt.macp:
magisk : 20422 is the working one
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] a11cf0:
The latest build is working well so far, but for some strange reason USB debugging keeps turning off after every reboot. How to fix this?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] olus:
its working here. still enabled after reboot. it was enabled before updated to last build.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] reddek:
nevermind sorry
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 197:
Facebook Messenger rearely sends notifications properly, I often recieve messages but don't know about them until I open Messenger on my computer, which can lead to me missing important messages by many hours.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] z1022:
Are you just dirty flash the ROM only ? Do you need to flash nikgapp again ?

Thanks
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 123allan123:
Nice rom so far, good battery life and speed of OS.

However 1 problem, android auto is not working anymore for me.

It says the accesory is not found/compatible with the device.

Tested with my GF's phone(Android 11, samsungs stock OS) working fine.

Also worked fine on my previous PIXEL OS Android 10 on my Mi.

Anyone know how to fix?

Already tried installing new android apk.

User error, did not install full gapps.

Apparantly android auto is not included in stock gapps.

Fixed by updating gapps to FULL ARM.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] EzerchE:
idk why and how but viper4android breaks wifi.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] thezinq:
That will happen if you are using perf kernel. If you wanna use v4a, then use a custom kernel!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] EzerchE:
is there any custom kernel can i use it with lineageos?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] thezinq:
There are some! Look up on telegram or here on XDA.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] EzerchE:
nevermind its working now.

Viper4Perf

Credits to @asripath on XDAEdited by @VS5zzz on telegramFull Viper4Android Guide with all issues addressed including:- -No need flash custom kernel, works on perf with WiFi -Driver not installed/enabled or abnormal processing -Sound distortions in calls/notifications -Not processing streaming ...

docs.google.com
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Toni Suwanto:
Use gapps build instead, lol
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] EzerchE:
front camera motor does not working in any camera apps.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] thezinq:
Maybe because you flashed audio mods (like ainur or v4a)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] n0_alterNative__:
Guys, is this project dead ? I don't see updates since long time ago.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Kevindiepenmaat:
There was one about a week ago.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] EzerchE:
Yeah find it out now, Ainur Narsil causes front camera motor problem.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] thezinq:
You can set "DIRAC_KEEPEFF=true" in the narsil_useroptions. I too use narsil with this and camera works fine, always!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] EzerchE:
i tried that but did not worked for me
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] thezinq:
It should work. Maybe try it from here!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] EzerchE:
working now thanks!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] MacFly76:
Hi! Just flashed this rom and have 2 issues:

- Clock force close when i want to open it

- android.media etc.... force close alone

Any tips to solve that issues?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] prettyclose:
hey!

interested to know if someone updated to 'V12.0.5.0.QFKMIXM' successfully, thanks!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] MacFly76:
issue solved, It was my mistake. I did a dirty flash over MIUI12. Yesterday I did a clean install and all is OK!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] jottect:
I have the same issue with the previous version, and not only FB messenger but with text messenger same thing: sometimes if I do not use the phone, I do not receive notifications of messages until I use the phone... was thinking to set a power profile for Messenger so it will never be inactive, did not try yet.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 197:
How do I do this?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Zafrkant:
Hi,

Thanks developer for great contribution to community.

I have problem when I receiving message screen is turned off and there is no Always on active anymore until I turn on/off screen again.

Any solution maybe?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] krexas:
Big Thanks to the developer, Lineage inkl. gapps works amazing!

lineage-18.1-20210222-UNOFFICIAL-raphael-gapps.zip
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] jottect:
I did a dirty flash over previous version 18.1 12/23 and I have the same issues:

Clock force close;

Android auto force close;

Do I have to do a clean install?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] KingRichardTheFirst:
Hi all, I've got a minor annoyance. Right now, alarm sounds go through the headphones when they're plugged in. Shouldn't alarms go through both phone speakers AND headphones? This is what I'd like.

Is there some setting that I'm missing? Is there anything I can do about it? Or is this something that @abhishek987 could implement? Thanks in advance.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
There are no alarm settings available .... I recommend checking the audio port or headphone jack for issues .... possibly swapping the headphones
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
Recommend a clean flash for unofficial Lineage OS to avoid minor bugs especially if Magisk has been flashed.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
In developer settings try increasing background process limit
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] KingRichardTheFirst:
Thanks for the reply! I did try another headset, but your comment inspired me to try a BT headset. Result: working as it should (alarm sounding through both phone speaker and headset). I tried cleaning the audio port and trying yet another wired headset, but still no success. Wired headsets have no other issues, but this does seem like an issue with my phone. Could someone confirm that this works on their phone:

Plug in wired headset

Set alarm

Alarm plays on both the speaker phone and through the headset

Thanks in advance!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 197:
I'll give that a go, thanks!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Toni Suwanto:
Love the rom, redesigned qs from oos 11 is nice but do something with the header too.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Toni Suwanto:
Im use it, no problem
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Cieniek:
Alarm plays through the headset only.

Checked also on another phone with a LineageOS 18.1 build and it has the same issue. This is not the case when using Bluetooth headset on both. Likely a minor LineageOS bug(?)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Cieniek:
---

deleted, duplicate
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
Lineage OS has consistently topped the custom ROM charts since it has evolved from its predecessor CyanogenMod.

I always search XDA forums for custom ROM support before buying a new phone. Usually bestselling phones have good custom ROM support.

I have tried so many custom ROMs over many phones which I have owned from past many years.

Initially it felt exciting to try a new custom ROM.

But, I always revert back to Lineage OS because,

Fluidity, smoothness & simplicity

Lightweight with smaller download size with better than stock Android experience with all basic features one practically uses.

Doesn't come with pre-installed Gapps & we can customise Gapps as per our preferences. I love core Gapps with bare minimal Google play functionality. Rest can be downloaded from playstore if need arises.

Version is always ahead of corresponding official stock ROM.

Wonderful developer community.

Great active user base & YouTube tutorials for troubleshooting.

Visually appealing.

Official version of Lineage OS can update through OTA via official Lineage OS recovery.

Compliments official TWRP recovery, Magisk & GCAM mods well.

Good network reception in comparison to stock ROM.

Many basic simple non Google apps come pre-installed like browser, calculator, clock, file manager, gallery, music player & sound recorder.

Good battery life.

Maximum volume bumped up (louder than stock ROM)

Page loading & scrolling is buttersmooth.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
Sorry deleted this duplicate post.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] KingRichardTheFirst:
Thank you very much for doing this! So there's nothing wrong with my phone after all. There have been attempts to file this as a bug report, albeit unsuccessfully:

Alarm sounds route to headphones instead of speakers

Alarm clock plays through headphones only

I can't file a bug report as I'm not on an official Rom (obviously). If anyone here knows how to fix this, for example in configuration files, I'd love to hear it.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] cheppetto:
Hmm somebody wrote that he got Android auto working, for me this is not the case.

Internal AA works but not when being connected to a car display.

Did I maybe miss something?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] cheppetto:
Ok did a deinstallation of AA afterwards flash gapps full (canary) again and wiped cache and dalvik now it works fine. I guess I had the Android app in my android 10 backup
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Toni Suwanto:
There's gapps build : https://t.me/redmik20proglobalofficial/1377833
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Amandeep Mittal:
i m coming from miui, unlocked bootloader and format data partition.

what should be the flashing procedure?

Should I first wipe cache,dalvik, system,data and vendor?

Then flash vendor, rom, nikgapps core in sequence?

Please help me out.

Thanks
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
I followed the following steps & my ROM is working flawless.

Remove pin, password, pattern lock, finger print, face lock & all account passwords to avoid getting locked into your own device.

Enable USB debugging in Developer settings of your phone and authorize your device.

Developer settings can be enabled by tapping on build number in settings several times.

Install minimal ADB & fastboot & phone USB drivers to your PC.

Connect your PC to your phone (in power off mode) using USB type C cable.

Boot your phone into boot loader (fastboot) by pressing and holding together power & volume down buttons till an android cartoon appears on phone display.

Install twrp-3.5.0_9-0-raphael.img (official version of twrp recovery for Redmi K20 Pro/ Mi 9T Pro) by the following command in minimal ADB & fastboot interface of your PC;

fastboot flash recovery twrp-3.5.0_9-0-raphael.img

Reboot into the installed recovery by pressing and holding together power & volume up buttons till the home screen of recovery appears.

Use Recovery to,

Wipe> Advanced Wipe> wipe partitions - Dalvik/ ART Cache, Cache, System, Data & Internal Storage except Vendor (Vendor partition I believe is wiped automatically while flashing firmware)

Factory Reset (removes encryption as per lineageOS official website)

Flash following files in order through Advanced > ADB Sideload or OTG storage drives;

RAPHAELININGlobal-V12.0.3.0.QFKINXM-10.0-vendor-firmware.zip (is Indian Firmware, but for other regions kindly choose correct firmware)

lineage-18.1-20210222-UNOFFICIAL-raphael.zip (latest ROM)

NikGapps-core-arm64-11-20210130-signed.zip (basic Google Apps with playstore functionality since earlier I failed with Opengapps)

Magisk-v21.4.zip (for banking/ payment apps to function properly)

Reboot> System

Below is a link to installation instructions of official Lineage OS on davinci ( MI9T/ K20, a younger brother of our beloved MI9T pro/ K20 pro with Official Lineage OS support) which may clear any further doubts.

Redirecting…

All the best
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] stevebgfra:
Not sure to get this instructions :

If I'm on the latest official MIUI ROM (downloaded from mi.com and apply using Mi Flash tool), is flashing what you called "proper vendor and firmware" required ?

What's the actual purpose of this step ?

Thanks for clarification!

(sorry if obvious question, I'm quite new here)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Cieniek:
isn't that actually clarified in the first post?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
Null
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
MIUI to Lineage OS

Proper firmware version based on your region/ model (download links shared in first post) instructed by the developer needs to be flashed using custom recovery.

There is no need of wiping vendor partition as it gets automatically wiped.

Lineage OS to MIUI using Mi Flash Tool

Firmware is included in Stock ROM
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Saswata Chakraborty:
It's a bug on stock AOSP messaging app. I faced the same issue on RR and Arrow OS as well. Switch to Google message or Textra etc and the AOD will turn on whenever you receive new messages.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] morty23333:
Thanks for contributing to the community!

I ran into a little problem. After flashing this rom, the phone can't count steps. I don't know if it is a bug.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Zafrkant:
Thank you for reply.

It's not only case for messaging app (QKSMS), but also for all apps that I'm using like Signal, Viber, Protonmail etc.

Thanks
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] xXRapToRiXx:
Anybody tried installing this rom coming from chinese MIUI 12.5 based on Android 11? I am asking because there are no Android 11 Firmware files on https://downloads.akhilnarang.dev/MIUI/raphael/. Is that because there are not compatible?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
https://downloads.akhilnarang.dev/MIUI/raphael/RAPHAEL-V12.0.4.0.QFKCNXM-10.0-vendor-firmware.zip

Based on my experience, sequential flashing of above chinese firmware using proper version of TWRP Recovery (prefer latest official build from TWRP website) followed by latest version of Lineage OS ROM, Gapps & Magisk (optional) should be adequate irrespective of which version of MIUI/ Android you have installed on your phone.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] xXRapToRiXx:
I know that you can "downgrade" to this MIUI 12.0.4 firmware. My question was whether anybody actually tried flashing this rom on MIUI 12.5 firmware.

But thx anyway for the reply
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
I tried latest 12.5 firmware in LineageOS 17 by same developer but failed to boot. Then switched to firmware prescribed by developer.

I would recommend to experiment and find yourself. Always there is an option to revert back to correct firmware.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Koro_:
Hello, I just installed the ROM and it's working as expected.

The only trouble I have is that I'm not able to turn Google Voice Match on. As soon as I exit settings, it turns back off. Is that a known bug, or does it have a solution?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
App specific issues are bugs (which may have a workaround) usually not reported since most might not use that particular app/ feature.

I would recommend to wait for next stable update on the ROM from developer rather than fiddling with workarounds exaggerating the issue, unless that feature is of utmost priority to you.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] salazar666:
I can confirm this bug and I have to say that I'm struggeling with it since (the unofficial) LineageOS 17.1 for this device. I hope @abhishek987 will find the time to fix it. He is doing an amazing job!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] ZaraZwracam:
What's the Widevine level on this ROM - L1 or L3?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] KingRichardTheFirst:
It's L1 for me.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
L1 as per DRM info app
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] xXRapToRiXx:
So official LinageOS 18.1 dropped today.... any plans on adding this device on list of supported devices?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
I checked https://download.lineageos.org/ but K20 pro/ Mi 9T pro (Raphael) are not yet added to official device list (which is unlikely even in future).

As usual the non pro version (davinci) & other existing devices gets an upgrade.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Robbo.5000:
To comply with Lineage licensing all official versions need to have kernel sources readily available. Although Xiaomi have released kernel sources for this phone, they are not the latest version (by a long way) and have very poor fp sensor performance. This version is using the latest MIUI kernel, for which we don't have the sources, as it gives good fp sensor performance.

Currently, until (or if ever, now) Xiaomi release the most recent kernel sources, it's a case of going official with crap fp sensor performance, or have the fp sensor working and staying unofficial.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] xXRapToRiXx:
Thx for this detailed explanation, helped a lot to understand (y)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Braspit:
I just installed this Rom and I don't know how often it is updated. I don't know if it is via OTA or if you have to download the full rom and install it again. Is it updated every month or every two months?

Thanks a lot
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
Based on past releases, this ROM is updated once in 2 months.

OTA is unavailable in this unofficial ROM.

You need to download the full ROM & clean flash (install from scratch after taking backup) as dirty flashing over existing ROM might result in unwanted bugs.

Happy flashing⚡
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] atttoush:
Is FP the only reason for not going official? Because for people like me who never use the FP, it makes sense to get at least the official version status.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
Unfortunate that Lineage OS official is only available for K20 (davinci) & not for K20 pro (Raphael).

Probably Xiaomi released the latest kernel sources for non pro version to bump up the sales as price difference between pro & non pro version a year and a half after launch in india was just INR 3000.

Since, non longer these phones are sold, its high time for Xiaomi to release latest kernel sources for pro version.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] txemi99:
Problemas con gps al actualizar lineageos 18.1 + mindthegapps-11.0.0-arm64

Al actualizar los servicios de ubicación de leeco lemax 2 no funcionan. Google Maps no localiza la posición tan bien como el resto de aplicaciones que requieren este servicio.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Kevindiepenmaat:
Yes
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] jottect:
What are you using for backup/restore please?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
I recommend TWRP backup after uninstalling Magisk.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 197:
After clean flashing the lastest build (20210222) when I receive a call my phone rings but it doesn't show up on the screen so I can't answer it. PLEASE HELP!

EDIT: It must have been caused by a separate package I installed, either Nik Gapps or GCam, completely wiping the phone and installing LOS without them fixed it.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
There is a temporary fix

Settings>System>Buttons> option to use volume buttons to answer call & power button to end call
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 197:
Thanks! I've just managed to fix it by reinstalling LOS without also installing any extra zips/apks and it's now working again, but I'll keep this in mind if I need it again in the future.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 197:
I am still having an issue with this build where for around 10 mins after powering on my phone I recieve an SMS message approximately every 30 seconds from my mobile network provider (O2) stating that my phone number doesn't support Visual Voicemail. I had never heard of V V before receiving these messages, and I have the normal voicemail function turned off. This must be caused by a bug in this build (20210222), because it had not happened in any previous build, and LOS is the only software currently installed on my phone.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
I think this is because, visual voice mail is not supported by this ROM but supported by your service provider,

as there is no visual voicemail setting in Phone App>Click 3 vertical dots on top right corner>Settings>Voicemail>Advanced

You can try setting up voicemail to see if issue is resolved.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 197:
I just looked in those settings and it turns out there was an option for visual voicemail which was on by default, so I've turned it off. Thanks so much for your help!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] llaumgui007:
Hi,

just for information, after few try: Android Auto working well ! Without any (clean) flash !

For that:

Update Nick GApps to the last Canary release. I use Basic version, minimal but not too...

Install AndroidAudo addon.

Restart.

Enjoy !

AA, AndroidAuto, Android Auto, Nick Gapps
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] groundhogday:
First time attempting to flash the Mi 9T Pro, having an issue where I keep getting a bootloop back to the TWRP recovery drive.

- I unlocked the bootloader

- Flashed TWRP 3.5.2 as the recovery

- Flashed VBmeta and rebooted

- In TWRP - Advanced Wipe -> System / Vendor / Data / Cache / Dalvik

- Flashed the Global firmware in the OP

- Flashed the Lineage OS 18.1 Zip in the OP

- Rebooted to system

- Now caught in an infinite boot loop to TWRP.

All steps above were successful. I've flashed back to stock ROM via MiFlash between attempts to have clean attempts each time. I’ve tried loading the firmware / Lineage OS ROM via adb sideloading and installing the files directly from TWRP itself. I can still flash the Stock ROM via miflash to recover, but idealy I'd like to figure out how to get Lineage OS 18.1 installed to degoogle my phone.

Any help would be greatly appreciated!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
1) Only flash region specific compatible firmware specified by the developer. Vendor partition need not be wiped as it gets automatically wiped while flashing the firmware.

3) Magisk (if installed) needs to be uninstalled using Magisk app or by flashing Magisk uninstaller using TWRP Recovery since it patches boot image to gain root access.

5) Try installing zip files through twrp-3.5.0_9-0-raphael.img from link below,

Download TWRP for raphael

Download TWRP Open Recovery for raphael

dl.twrp.me

Detailed instructions are shared in my post no #428 in this same thread.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] malwarebyte:
Had the same exact problem 3 days ago...

First time flashing on this phone...

Stuck in twrp bootloop...did same exact things you mentioned above couple of times just to be sure.

This helped me. Do these steps and nothing else