[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Swiftor:
Summary

Hi all,

first of all, thank you abhishek987 very much for your great work. :good: And thanks also to all the users who have been active in this thread for their valuable comments.

Recently I have bought this device (Xiaomi Mi 9T PRO [rafael] global version), unlocked it and flashed this LineageOS 18 ROM which is based on Android 11. I flashed the version from 22nd October - updated by abhishek987 on page 11 of this thread. Since this thread is getting pretty long, I wanted to sum up what I found important. I hope this saves some time to the people who come here after me. Others, please excuse my brevity.

IMPORTANT! I haven't properly tested it as a daily driver yet. But from the first glance it looks very cool and fast.

Notes regarding unlocking the bootloader:

I have not found any way how to unlock the bootloader of the device without a sim card (and I really tried). So I bought a throw-away sim and used it's data connection to create the mi account directly from the phone itself. I was looking for a miflash_unlock utility which would run under Linux, but the unofficial one looked too suspicious to me, so I have just used somebody else's windows machine and used the latest official miflash_unlock-en-4.5.813.51 utility. There has been no waiting time and the device was unlocked successfully right on the first try.

Notes regarding flashing this rom (if you need step-by-step tutorial, check this video by munchy on YT):

Flashing TWRP - The link from abhishek987 was dead so I used the latest official build (v3.4.0-1) for this device and it worked without problems (here is the link). Munchy has a video on flashing TWRP as well in case you need it :)

Wipe - as opposed to the video, I wiped Dalvik, Cache, System, Vendor and Data and on top of that I had to Format Data as well (otherwise I was in a bootloop).

How to push files from PC to the device via USB cable while in TWRP - I found this very handy, since this phone does not have an SDcard slot and we have just wiped everything. Just connect your phone to your computer via USB cable and in TWRP go to Mount and click Enable MTP. The device should pop up in your PC as a storage device (if it does not, disconnect and reconnect the cable). You can copy all the necessary files via your file manager or use

adb push yourfile.extension /sdcard/

.

Flashing vendor&firmware and LineageOS18 ROM - Flash the correct files provided by abhishek987 using TWRP Install zip and reboot.

You can follow this guide to install Magisk - but I was able to get the Magisk v21.0 just by flashing the first 20422 file and then updating to v21.0 just from the Magisk app. There seems to be no need to flash the 20425 file.

Camera - I tried to install the ANXCamera v190 but I was stuck in a boot loop. So I had to uninstall it. Just for transparency - I tried to install all of these files A) ANXFrameworkUnity_190.BountifulDistantHapuka.zip, B) ANXCameraUnity_190.BountifulDistantHapuka.zip, C) ANXCameraHotfix.190.BootloopFix.zip, D) 48MPFixR_200.MenacingDisastrousNorwaylobster.zip, maybe I have just done something wrong. I will try to install the GCam now.

Questions:

Does anybody know how to install ANXCamera on this build? If yes, please let me know.

Is there any privacy issue with installing the regular MIUI stock camera given that I will forbid it to connect to the internet with a root firewall (I use AFWall+)? Or do you think it could still somehow surpass the firewall and send my selfies to our Chinese friends? :D

For some reason, my Magisk does not have the "SafetyNet check" button as everyone else seems to have. Do you have an idea where is the problem?