yashsingh1/xdaforums huggingface dataset:
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] danielfreund:
by regular recovery, do you mean twrp or orangfox, and for normal rom, the stock rom miui?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
That sounds super easy, I must have done something else wrong. I used the following:

sudo fastboot boot twrp-3.5.2_9-0-raphael.img

adb sideload lineage-18.1-20210821-UNOFFICIAL-raphael.zip

In any case, I like this ROM, so I don't need to go back. I hope it will manage to get official so MicroG can run their automated builds. It's really tedious to set this up.

The one that comes with (or is advised to be used with) the rom you want to install.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
Where can I find more add-on dictionaries for AOSP Keyboard in LineageOS 19.1? For manual flashing, Magisk module or otherwise? This ROM has only 6 languages.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
@SebaUbuntu can we get some more spell check dictionaries into this rom? nl_wordlist.combined.gz is needed for Dutch spell check and suggestions.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] timmie897:
Great ROM, finally decent battery life on Android 12. I can pass SafetyNet by changing the device fingerprint to Mi 9T Pro Global Android 10. Any news on getting this official? That would amazing. Thanks for your effort :)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] z1022:
"I can pass SafetyNet by changing the device fingerprint to Mi 9T Pro Global Android 10."

How to do it ?

Thanks
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] ludo9312:
Hi, thanks for this ROM, very appreciated, seems to run smoothly !

However, I can't find a way to activate the fingerprint sensor when the screen is locked, even with "always on display" I have to wake the phone with the power button to enable the use of this sensor...

Is there a way I haven't find ?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] snappy-:
With "screen is locked" you mean turned off?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] ludo9312:
Indeed, it's what I meant, thanks !

I didn't know what FOD was... I'll wait for updates then !
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
Looks like this was an upstream bug in LineageOS 19.1 and it was fixed 2 days ago.

Would you be willing to make a new build with this fix merged?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Eliospeed:
Thanks for the great work on this rom and It is a great news to make it official.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] ravage2k:
The download server is down. Does anyone have a mirror?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] jez9999:
Is this rom official yet? I don't see it on the lineageos devices page.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
No. Development has stalled about a month ago. Latest release is the 2022-07-07 one. Not sure if priorities have changed or insurmountable problems surfaced. Perhaps @SebaUbuntu can comment on that.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] bliblablub:
Excellent ROM with really good battery time. Would live to see official, soon.

Is it planned to release new version once there is new android security update available?

By the way, is there any possibility to make the buttons in notification area smaller? It is a gigantic waste of space when you have only two buttons per line.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] deeep123:
Good rom but it doesn't have dc dimming which is a huge problem for me as I have sensitive eyes.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] timmie897:
Hopefully @SebaUbuntu is doing well. I greatly appreciate his effort in keeping these older devices alive :)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
@SebaUbuntu if you don't have time to build a new image (after repo sync), can you tell us how to prepare your device specific configuration and kernel?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Krullendhaar:
Where do I download the latest Xiaomi/fastboot drivers? ADB connection works, fastboot not. I can see in device manager on windows that the driver is missing.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Krullendhaar:
How to install these drivers?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Krullendhaar:
So I have the following issue:

My windows 10 laptops seems to recognize my Xiaomi, because when I plug it in with USB cable it shows up as "Mi 9T Pro" in windows. I downloaded the latest ADB from google and ADB works fine. However, when I boot into fastboot mode it seems my Mi 9T pro is no longer recognized by my laptop. Under device manager I can see the general "Android" device, indicating it was not recognized.

So ADB devices returns my device and fastboot devices returns nothing. Of course I run the command fastboot devices in fastboot mode (by typing adb reboot bootloader to get into fastboot mode).

Someone here suggested installing the latest google usb drivers. I downloaded them, but I am not sure how to install them. I tried installing it as follows: boot into fastboot mode, go to device manager, manually select the latest google usb drivers. If I try this, however, I get the message "no drivers found".

UPDATE: UNPAUSE WINDOWS UPDATES. This fixed it for me. If windows updates are paused the driver won't install. If they are not paused, they will install automatically.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Krullendhaar:
For reference: in order to install this go to fastboot mode. Open device manager, click on the unknown device and manually select driver. Then select this driver.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Krullendhaar:
The first few times I reboot the device kinda lags and hangs for a few seconds.It does go away after a few reboots.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
The developer is AFK so I'm trying to build this myself using the linked sources in order to get my keyboard problem fixed.

Here's my local manifest raphael.xml, It may be helpful for others. Not sure I'm allowed to link to vendor bits so I redacted that.

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="gitlab" fetch="https://gitlab.com" />
<project path="device/xiaomi/raphael" name="xiaomi-sm8150-devs/android_device_xiaomi_raphael" remote="github" revision="lineage-19.1" />
<project path="device/xiaomi/sm8150-common" name="xiaomi-sm8150-devs/android_device_xiaomi_sm8150-common" remote="github" revision="lineage-19.1" />
<project path="kernel/xiaomi/sm8150-legacy" name="xiaomi-sm8150-devs/android_kernel_xiaomi_sm8150-legacy" remote="github" revision="lineage-19.1" />
<project path="vendor/xiaomi" name="[redacted]/proprietary_vendor_xiaomi" remote="gitlab" revision="lineage-19.1" />
<project path="hardware/xiaomi" name="LineageOS/android_hardware_xiaomi" remote="github" revision="lineage-19.1" />
</manifest>
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Krullendhaar:
Installation tips on windows:

1. Download latest ADB drivers from google

2. Connect phone to windows 10 pc and make sure software updates are not paused. Windows will automatically install the correct drivers for Xiaomi Mi 9T Pro (or go to additional updates in settings and select the optional driver update)

3. Open command prompt in the adb folder by simply typing "cmd" in the path and pressing enter. I personally never managed to use cd (change directory) or 'open command here' in windows to get adb working.

4. Check adb: Type adb. If you get an error, then adb is not setup correctly.

5. Check adb connection: type adb devices. If you get an error, then you might need to update the driver for your device as described in step 2.

6. Go into fastboot mode and check fastboot connection: type fastboot devices. If you encounter an error, then it might be the case you need to manually install another driver. This time it is the google usb driver. You need to go to device manager in windows while connected in fastboot mode, select the unknown device (it just says "Android"), click on manually install drivers and then select the google usb driver. I repeat, do this while connected in fastboot mode. This driver won't be automatically downloaded by windows. Download the latest driver from google.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
If anyone else wants to use AOSP Keyboard swiping with a language that used to work in LOS18 but is not able to compile this, I've built a version with the bugfix and the august security patches.

Download: lineage-19.1-20220908-UNOFFICIAL-raphael.zip

Security patch level: 2022-08-05

Sha256sum: 9884c95c6ff7ab8b53e7b425dd849c7d1bdcf2d6fd6508161691fd930fe36684

Expiry: The link will expire when there is a new security patch level later this month.

You need to have the original from @SebaUbuntu installed first. Then you can dirty flash this one using the same recovery provided in this thread.

I am not an Android developer and I have no intentions of taking over Seba's fantastic work. It's just that he's unresponsive/AFK and this bug has been bugging me for too long.

Settings > Apps > Android Keyboard (AOSP) > Storage > Clear storage

Restart system

Now you have 28 dictionaries in stead of just 8.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Krullendhaar:
After 2 days of no issues, my fingerprint scanner stopped recognizing my finger and it won't let me add a new finger

UPDATE: When "extra dim" is active, the fingerprint does not work reliably. Similar for night light. This is because the sensor is optical.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Krullendhaar:
You might want to also try florisboard.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Krullendhaar:
Step by step installation guide:

1. Download latest ADB from google: https://developer.android.com/studio/releases/platform-tools

2. Download the lineageos zip, recovery image and super_empty.img from the first post (https://lineage.sebaubuntu.dev/raphael/). Store these in the same folder as the ADB stuff

3. Plug in your Xiaomi phone into your pc. If on windows, make sure windows updates are enabled to download the latest drivers from Xiaomi. In windows 10 you might have to go to settings > updates and manually click on installing additional driver updates

4. In windows 10, go to the folder where you saved the adb. Click on the file path (the bar in the top that looks like "C/users/John/Documents..."), type "cmd" and press enter. This will open the command prompt in that folder. Check if adb works by running "adb". If you get no error, adb works correctly.

5. Enable usb debugging under developer options on your Xiaomi. Connect phone to pc with cable, open command prompt in the adb folder, type "adb devices" to check if adb sees your device. If you get no error, your adb works and sees your phone. If you get an error, you did not install the driver from windows settings as described in step 3.

6. Type "adb reboot bootloader". This will boot your phone into fastboot mode. Once phone is in fastboot mode, open device manager in windows to check if there are missing drivers. If you see something called "Android" then you are missing the google-usb driver. Download them from https://developer.android.com/studio/run/win-usb and save them in any folder you want. While still connected in fastboot mode, right click on the "Android" entry in the device manager, choose "manually install driver" and browse to the google-usb driver. Now device manager should say "Xiaomi" and not "Android" (I think).

7. Now you can follow the steps from the first post: In command prompt type "fastboot flash recovery recovery.img" and let the phone boot to recovery. On your phone, in the recovery go to advanced and click "enter fastboot". While in fastboot type in command prompt "fastboot wipe-super super_empty.img". Click on the "Enter recovery" button on your phone. On your phone click on "format data with factory reset" and then select "format data/factory reset". Go to "Apply update" and select "Apply from ADB" and in command prompt type "adb sideload <zip file name>" (in this case the zip is named something like 'lineageOS.zip'). Sideload any other addon you want like Google apps in a similar way. Finally you just press reboot on your phone to boot into system.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
Latest monthly Android security update merged.

Download: lineage-19.1-20220910-UNOFFICIAL-raphael.zip

Android security update: 2022-09-05

Vendor security patch level: 2022-07-01

Sha256sum: 7d9070c082b92cf586862185937086edd0bfad2ba5ae8cc419cf5d9ca1b7c23c

Expiry: The link will expire when the security patch level is superceded next month.

You need to have the original from @SebaUbuntu installed first. Then you can dirty flash this one using the same recovery provided in this thread. Format cache.

Thanks to Seba for doing fantastic work. I'm not an Android developer. I just like to have the latest security patches.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] JohnFlowerful:
Is anyone else experiencing issues with the Phone app not displaying the 'answer/decline' notification and therefore not being able to answer phone calls?

As a side:

I wrote a little guide for myself mainly to store links to various projects: https://gist.github.com/JohnFlowerful/151f6d3095fada97285a68a4e2ee50d6
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Krullendhaar:
Not experiencing this issue. Works flawlessly on my end.

Did you maybe disable a permission for the phone app.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
You can simplify your Magisk installation if you do it immediately after sideloading the ROM. You also need to install the app after sideloading. For example:

Warning:

# From recovery
adb sideload lineage-19.1-20220707-UNOFFICIAL-raphael.zip
adb sideload Magisk-v25.2.apk # Step 1
adb reboot

# From OS (enable USB-debugging)
adb install Magisk-v25.2.apk /sdcard/Download/ # Step 2
adb install FakeGapps-4.1.apk /sdcard/Download/

# Manually install with Zygisk
adb push LSPosed-v1.8.3-6552-zygisk-release.zip /sdcard/Download/
adb push microG_Installer_Revived.zip /sdcard/Download/
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] z1022:
many thanks.

Can you build a ROM use TWRP to flash ? It is easy to handle.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] JohnFlowerful:
I fixed the Phone app (for now) by clearing its cache. I'm not sure what caused the notifications to disappear...

The Magisk installation guide says this method is deprecated and warns people using it.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] ryannathans:
Did anyone work out how to get the back cameras working? There are 3 cameras on the back of the phone and I only seem to be able to toggle between the front popup cam and the main rear cam.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] mrmathematica:
I installed GCam with config file https://www.celsoazevedo.com/files/android/p/f/2022/02/Alessa.3.3.1-bsg-gvx-mi9t-proft.23rj.xml . All cameras working.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
What build/version of GCam do you use with that config? I'm using GCam 8.1.101 Wichaya v1.5, it's not bad but I remember pictures used to look better.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] olus:
i think this one

BSG: MGC_8.1.101_A9_GV2b

Download MGC_8.1.101_A9_GV2b by BSG.

www.celsoazevedo.com

because this config shared on celso for this cam. there are 2 other configs, too.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Krullendhaar:
found an issue:

After pinning an app, swiping the statusbar to change brightness missbehaves.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] mmm876:
When will be official ?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] KingRichardTheFirst:
This was more than a month ago. It seems that the developer has (temporarily?) abandoned this project.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
Updated: We may have been ghosted, but the project is not abandoned. :) You can follow the development here and here. Last commit ~2 weeks ago. I'm hopeful this will get official at some point.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] TRPTFP:
Hello everyone,

I'm going through a translator because my English is not good.

I wanted to update my smartphone to 19.1 (July and September versions). The super empty image did not work but I deleted the data as indicated.

I got the error status 1 after several attempts.

I tried with the given recovery, those of TWRP (twrp-3.3.1-0-raphael.img used for version 18.1 and the last twrp-3.6.2_9-0-raphael.img) and Orange fox (OrangeFox-raphael-stable@R11.1_4).

I also used with firmware for version 19.0 (RAPHAELGlobal-V12.0.3.0.QFKMIXM-10.0-vendor-firmware) and the latest one (fw_raphael_miui_RAPHAELEEAGlobal_V12.5.1.0.RFKEUXM_dd92b7128a_11.0)

What is my error? Firmware file?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Krullendhaar:
See post #110 for step by step installation. You cannot use TWRP, you need to flash lineage recovery through fastboot.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] TRPTFP:
Hello to all,

Thank you #Krullendhaar for this post that I had not seen and that allowed me to install it!

But new problem: unlike the previous version, signature proof is still blocked in disabled. How to make it disabled (because I can't install Micro G on it).
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Krullendhaar:
I don't think LineageOS supports signature spoofing for security reasons. That is why "LineageOS for microg" exists.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] TRPTFP:
That's the question I'm asking myself because I didn't have any problems with version 18.1 but this one the signature seems more complicated. Linked to the passage of Androïd 12?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
Hi everyone. There is a new patch level out upstream, but I cannot compile the current latest code base without errors. This needs some TLC from the original devs.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] mrmathematica:
Maybe you should give compiling another go with this one:

[TMP] sm8150-common: Change kernel sources location · xiaomi-sm8150-devs/android_device_xiaomi_sm8150-common@41ba71f

Change-Id: I93dc0da0452a0d9abcd242e32251070388b2ac69

github.com
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
Thanks for the heads up.

Technically those sources are obsolete. I have been tracking and compiling the sources from LineageOS, i.e. LineageOS/android_device_xiaomi_sm8150-common in stead of xiaomi-sm8150-devs/android_device_xiaomi_sm8150-common, which does not contain said commit. But there has been TLC in the form of multiple other commits, so I'm compiling again. So far no errors.

Please note that I don't know the reason for the differences between the device configuration from LineageOS and the slightly different one from xiaomi-sm8150-devs. I also don't know the difference between the 8150 kernel sources and the 8150-legacy ones, why this difference exists, and why development is being done in the legacy branch not the new branch. Without any manifest or instructions, I don't know which one to choose or what the drawbacks are. So I just pick the first thing that compiles successfully with a preference for the LineageOS sources, even though they are by the same devs. That means the kernel code is from July (LineageOS) rather than from October (xiaomi-sm8150-devs), although for now they both seem to have the same vendor security patch level.

I recommend everyone compiles their own build (AKA composes their own manifest), so people won't get the impression that I can give any kind of guarantee or support, and so they can pick a combination of sources in their manifest that they believe is sane.

Alternatively, use the old version by @SebaUbuntu and wait until it becomes an official LineageOS version.

Anyway, if it runs on my phone, I'll post it here for the people that appreciate the builds despite the warnings and disclaimers.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
Latest monthly Android security update merged.

Download: lineage-19.1-20221018-UNOFFICIAL-raphael.zip

Android security update: 2022-10-05

Vendor security patch level: 2022-07-01

Sha256sum: ff73a3a50ead5caee1b0df06dc684774abad4da1787a95a043b500c474a30218

Expiry: The link will expire when the security update is superseded.

You need to have the original from @SebaUbuntu installed first. Then you can dirty flash this one using the same recovery provided in this thread. Format cache.

Thanks to Seba for doing fantastic work. I'm not an Android developer. I just like to have the latest security update.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] bliblablub:
If you could give an explanation then we could do it ourself maybe
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
I assume you know how to compile LineageOS (there are many guides) and that it all boils down to writing your own manifest. Here you have some choices to make. At least find some vendor code and hook it in:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="gitlab" fetch="https://gitlab.com" />
<project path="vendor/xiaomi" name="[redacted]/proprietary_vendor_xiaomi" remote="gitlab" revision="lineage-19.1" />
</manifest>

You need roughly 300 GB for the source code.

Build using test-keys:

brunch lineage_raphael-userdebug
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Handheld1138:
What does your local manifest look like currently? I am struggling to compile here with LineageOS repos, error after error.

Using the xiaomi-sm8150-devs repos for device and kernel seems to build successfully but result in a device that boot loops. I've tried reverting all repos to a few months back but still the same so not sure where the problem is. Meanwhile the builds in this post seem to work on my device.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
Latest monthly Android security update merged.

Download: lineage-19.1-20221112-UNOFFICIAL-raphael.zip

Expiry: Download link expires 2022-12-31

Android security update: 2022-11-05

Vendor security patch level: 2022-07-01

Sha256sum: 4f2b36d7335317b7fdd20e96f000c4f24da36f99c808ecfc15411b424b38d7d6

Have the original from @SebaUbuntu installed first.

Dirty flash this one using the same recovery provided in this thread.

Format cache.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Redsandro:
Latest monthly Android security update merged.

Android security update: 2022-12-05

Vendor security patch level: 2022-07-01

Download: lineage-19.1-20221211-UNOFFICIAL-raphael.zip

Sha256sum: 1ccd9a46332065519144bbdee541bd5a8915bd6fe9b7d94e95739c30d6ee8631

Expiry: Download link expires at 2023-01-31

Have the original from @SebaUbuntu installed first.

Dirty flash this one using the same recovery provided in this thread.

Format cache.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] TheCheshireMan:
Thank you very much for sharing your work and computing power, letting us keep up with the security patches. Appreciate it.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] wim69:
This is a great ROM! I installed it because Miui(.eu) isn't supplying any security updates since months. And my device is faster now!

One question, the notification sound is very loud. Any ideas how to fix that?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] mrmathematica:
According to https://t.me/SebaUbuntuBlog/1310, the date this ROM will became official is delayed to 2023.