yashsingh1/xdaforums huggingface dataset:
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Robbo.5000:
See this from the official TWRP FAQ.

https://twrp.me/faq/whattowipe.html

There is no need to wipe system.

You only need to format data when flashing on top of MIUI. Going from one AOSP ROM to another, a normal clean flash is all that's needed.

I don't think the order matters too much.

I prefer to wipe everything first, so I'm flashing onto a clean system. Others prefer to flash the ROM, the clean up afterwards. To me it makes more sense to flash onto a clean system, but those that wipe after don't seem to have any issues either.

If you're on MIUI you need to format data, to temporarily remove encryption. Afterwards, if you want to keep encryption, let the phone naturally encrypt itself when you setup normal lockscreen security.

If you going from one AOSP ROM to another, just having TWRP decrypt the device normally on boot is enough to successfully install a new ROM.

Edit:

Also to answer a previous question.

There is no requirement to permanently remove encryption, there is no requirement to disable dm-verity and there is no requirement to flash vbmeta. There is zero need to do any of these to successfully flash custom ROMs on this phone.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Krullendhaar:
First of all, thank you for the clear explanation and the link. Second, suppose I disable lockscreen security on my MIUI rom, do I then still need to format data? As far as I am aware, you cannot be encrypted without lockscreen security. I also read from several tutorials that it is advisable to disable lockscreen security before flashing. This means that you are decrypted before flashing. Just interested in the answer at this point.

Does the flashing process look any different for encrypted devices vs unencrypted devices?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Robbo.5000:
Not sure about that, I've never heard of anyone trying it. I've never seen anyone suggest disabling lockscreen security. Within these forums the normal procedure for flashing over MIUI is to add the extra step of formatting data, either before or after flashing the custom ROM.

Removing encryption within MIUI itself before flashing, instead of formatting data, does make some sense, so it might work, but I've never come across anyone saying they've done that, but there is no need to do it if you are going to format data.

Once you are already on a custom ROM, going from one ROM to another is the same process for encrypted and unencrypted phones. The only difference is that you need to enter the lockscreen PIN into TWRP, when you first boot to TWRP, when using an encrypted phone.

Edit: the same is also true for flashing other things also, e.g. GApps and Magisk. No difference in the flash process, except the initial entering of the PIN when starting TWRP.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] olus:
dirty flash from previous build worked!

only rom.zip. im encrypted with gapps and magisk on global mi9tpro.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] MacGyver17:
What FW/V did you use ?

Is that a global (QFKMIXM) or the EEA ?

I want to flash the updates, but still stuck on the 20191216 build. Need to update the FW/V I guess because the one that I'm using is 11.0.1 right now
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] olus:
RAPHAELEEAGlobal-V11.0.3.0.QFKEUXM-10.0-vendor-firmware.zip
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] cheppetto:
Fingerprint is dead for me in latest version
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] olus:
seems like you are the only one.

it would be helpful when you tell us which phone you have, which fw/vendor, (de-)encrypted,.. definition of dead?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Vlad1903:
10% yesterday had 9 hours of screen, only 4g.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] PhonyOnXDA:
This ROM does not boot with Pie firmware. There is currently no European firmware based on Android 10.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] :
Ok, i thought you have mi 9t pro.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Sachin0209:
So what could be the reason for this??
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] alfizie:
Pop Up Camera Problem

After flashed the rom,my pop up front camera won't come down..please help:confused::confused::crying:
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] :
Abhisheks TWRP doesn't work with Mi 9T Pro. Only Mauronofrio's version or latest orangefox works. I don't know why.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Sachin0209:
No i am talking about my issue, since mine is an indian variant it shouldn't have problem with Abhishek's version so why does it get stuck on bootloader and i have to end up flashing the rom using MI flash
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] :
As I said I don't know. Try Mauronofrio's version and let's see if it works.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Sachin0209:
Okk thanks....I'll do it otherwise might as well wait for stable
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] PhonyOnXDA:
Just reflash your device with the matching miui firmware over fastboot and your problem will be fixed.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Sachin0209:
Used orange fox it worked thanks a lot....
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Fatal_Scythe:
It doesn`t seem to work on the Mi 9T Pro EEA-Variant, I tried flashing the India Vendor / Firmware which fails with error 7 because it`s for RAPHAELIN and not RAPHAEL. and removing the assert lines in the updater-script results in either error 7 or Invalid zip file format :/
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] :
It works. Don't delete the line just edit it from raphaelin to raphael. I did it myself with computer because some file manager failed to edit the zip file.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] bejam:
I have eea version and had problems flashing. In the end I got it working. I tried so many combinations... I think the final was to flash the eu rom 10.4.6 in twrp then wipe system before flashing the Chinese system/vendor in this thread. Then lineage.

I also have an nfc issue. Managed to get Google pay working (card is registered) but I just tried to use it for payment and it didn't register. No error in the app. Anyone else have NFC working?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] unotretresette:
Google pay and color profile don't work either ...

Inviato dal mio Redmi K20 Pro utilizzando Tapatalk
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Fatal_Scythe:
Thanks, got it working :)

Btw, do you (or anyone else) know if there's a way to improve the vibration feedback? It seems kinda low / weak to me :confused: I know that device has problems with vibration on custom Roms in general but just wanted to ask :)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] :
Glad to hear that.

Nope sry I have deactivated them fully.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] alfizie:
Can you send me the link for miui firmware and how to do it?Thanx in advance
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] gouthamgoumi:
Is anx cam working on los 17?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] hcbraun:
152 works for me. Though it crashed when i select "Portrait" option
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] KuroRyu:
ROM works perfectly fine for me. Happy with everything, except the clock app.

It crashes every time I try to show details about alarms I've set, which is a bummer because this is a very important functionality for me.

From what I have heard this bug is not related to this ROM, but to LOS17.1 in general?

Oddly enough, other clock applications crash too.

Can we expect a fix anytime soon?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] olus:
i disabled some system apps, clock app too and installed google clock from playstore. no crashes here, im using it with chronus widget. i can set alarms.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Galdan:
Hi all,

may i please ask for your help. Normally iam not too stupid to flash LOS on a new phone but this time i struggle.

Each time i install the LOS image the phone reboots into TWRP again.

I tried to follow the instructions by 5i1v3rStorm in two variants, both were not successful:

First atempt:

initial situation: Working phone with latest global ROM: MIUI Global 11.0.3.0 (QFKEUXM)

1) Reboot to Fastboot

2) Flash TWRP from mauronofrio (using command: fastboot flash recovery twrp-3.3.1-25-raphael-mauronofrio.img)

3) Reboot to TWRP by holding VolUp during boot

4) Wiping: Cache / Dalvik Cache / System / Vendor / Data / Internal Storage)

5) Flashing Vendor/Firmware zip File from first post in this thread: RAPHAELEEAGlobal-V11.0.3.0.QFKEUXM-10.0-vendor-firmware.zip)

6) Flashing LOS (lineage-17.1-20200105-UNOFFICIAL-raphael.zip)

7) Flashing GAPPS (open_gapps-arm64-10.0-pico-20200116-BETA.zip)

8) Wipign Cache / Dalvik Cacha again (just to be sure)

9) Reboot

Result: Reboots to TWRP again

Pre-Second atempt:

First of all getting the phone to work again. So:

1) Reboot to Fastboot

2) Flashing "raphael_eea_global_images_V11.0.3.0.QFKEUXM_20191029.0000.00_10.0_eea_80e1c5de81" in MiFlash Tool

3) Reboots automatically into MUIU Global 11.0.3.0

Second atempt:

Exactly like "first atempt" but without Step 5)

Result: Reboots to TWRP again

Maybe somebody has a hint and can tell me what iam doing wrong.

Thank you very much in advance

Cheers
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] thomas2403:
I did this yesterday and ran into the same issue. I had to format data instead of wipe (step 4).
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] olus:
just format data (internal storage will be wiped) not just wipe data! after that copy all files in twrp (mtp) to phone and flash fw/vendor, rom, gapps, magisk in a row and reboot, done.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Galdan:
Thanks so much, this did the trick. Just booted LOS successfuly. Cheers!

Also thank to olus :)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Amit Kumar21:
Did dirty wala flash and worked well on exclusive edition.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] cheppetto:
as before still the normal mi9t pro 128GB Global version

11.0.3.0 Global FW/Vendor in the meantime update to 11.0.4.0 EU version (Xiaomi.eu)

had to format data again, which is not very pleasing.

So i started clean added fingerprints (wihtout issues) and out of 50 scans none was recognized to be sucessfull, after updating FW & Vendor to inofficial version I match about 1 out of 10, removed FP added again ...

Please give me your elder advice now that you have the details or ask for more, i will happy answer them as long as FOD will work better then.

As for Android auto i did not retest it until now, but will get back if working or still not working. Besides that, everything seems to work great
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Onawt:
I flashed this ROM for on my sister's phone. This has been the most difficult flash I've ever had to do (had same problems like mentioned by others in this thread). Now I clean flashed the 20200117 build togehter with open_gapps-pico-20200116-BETA. Upon boot the default GUI buttons are set to the 3-button setup like it always used to be in Android before version 10. The thing is, as soon as I open the settings app it goes "full screen". There are no triangle, circle and square button at the bottom. I sorta solved the issue by enabling the gestures mode introduced in Android 10. This way I can at least close apps and go back to the home screen. However swiping from the edge of the display to go back in menus doesn't work. Anyone have this same issue? Maybe someone figured out an actual fix/workaround already? Help would be appreciated. Some basic UI elements / navigation are just not working right now.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] cheppetto:
Good news AndroidAuto is finally working like a charm, so only thing that is absolutely below standard is how the FOD works, if anyone has a tip, please step forward.

I already removed rebootet and deleted files and it does hardly work one out of ten readings is successful
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] olus:
hmm..i have same device as you with 11.0.3.0 fw and fod works good.

I didn't pay attention to anything special but did you try it with full brightness? saving and later when unlocking. do you have any problems with other roms? is it your fingers, try it with others ?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] MacGyver17:
So it's a europe FW/V ? Not the global, like I said before ?

*wanna make sure because I receive my phone as global version on original firmware and I guess I don't want to change the region of the FW/V to reduce the problem that will happen if I do so
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] xperiaf:
wait until Selinux fixed.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] cheppetto:
good tips :P works with Miui and my fingers work fine with other phones :( for me FOD is still a black box on this device - with one update it works almost fine with the next it is broken

AA worked one time, completely broken again, phone freezes on connect and starting AA in car display :( when i try a call then, car display blank, mobile restarts.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 197:
Trying to flash ROM in TWRP, says the installation is successful but just reboots to fastboot.

Have tried factory reset, advanced wiping everything and format data but nothing seems to make the ROM installation stick.

Vendor was miui_RAPHAELGlobal_V11.0.1.0.QFKMIXM_7b25321468_10.0 before unlocking the bootloader

Any ideas?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] bryanjay420:
Did you flash dm verity encrypt?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 197:
I'm not sure what that is.

All i did was unlock the bootloader, flash TWRP, boot to TWRP then flash ROM, with different combinations of wiping after it didn't work.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] olus:
read a few posts back. format data not wipe is the trick.

you did it but maybe jn wrong order..read few posts back..

---------- Post added at 06:21 PM ---------- Previous post was at 06:20 PM ----------

im not sure. its the fw/v from first post and recommend from dev.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 197:
It worked!

Thanks for the help!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] GatorV:
I'm having the exact same issue, AA is completely broken, phone freezes when connecting, it's the only thing that doesn't work, FOD works like 90% of the time, but I will try to scan with brightness set to 100%.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] JtlfPqp:
Hi! After format data reboot to recovery again to grant access to data partition in windows.

Enviado desde mi Mi 9T Pro mediante Tapatalk
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] birdr:
I've tried clean flashing 17/1 release with EU global 11.0.3 and also with EU 11.0.4. Generally functionality is smooth and battery is excellent.

However, for both vendors

Fingerprint sensor is only 60-70%

Fingerprint sensor for "work profile" has dropped to 10% (to see install shelter to create a work profile - this is useful for sandboxing apps. Also, its not clear to me why it is forced to set up a separate fingerprint for work profile when "use one lock" is set.)

Also the always-on-display has improved but (a) still remains too bright at night when the phone has been left untouched (should drop to min brightness), and (b) loses the clock (but not fingerprint sensor) if placed face down, and the clock does not reappear when the phone is lifted again.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] llaumgui007:
Good news for Android Auto !!!

What's FOD signification ?

Envoyé de mon MI PAD 4 PLUS en utilisant Tapatalk
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 197:
Thank you!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] GatorV:
Fingerprint on display

---------- Post added at 03:56 PM ---------- Previous post was at 03:56 PM ----------

To me it's still not working, I'm going to test Pixel Experience since latest reports talk about flawless Android Auto + better FOD
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] cRaZy-bisCuiT:
[MENTION=6070905]abhishek987[/MENTION] Thanks for your work! I'm looking for the following things, could you please point me to that?

- Device tree

- Common Tree

- Kernel

- Vendor blobs
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] AirOne70:
https://github.com/raphael-development

+ some rom commits are needed, opens on official LOS Gerrit.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] llaumgui007:
Have you also default ringtones app crash ?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Senliast:
It is possible to install Anxcamera on this ROM? If yes, could you tell me how? What functions work?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] iqrammm:
Yes it is possible to install anx. Download from their site the latest one and also choose the addon for 48mp and flash both of it through magisk.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] abhishek987:
Okay guys time for Update :p

Changelog

Screen off fod (switch in settings>gesture)

Added partial screen shot

Fixed media scanner (media not appearing in apps)

Fixed clock fc

Fingerprint improvements

Lineage upstream

As usual links are updated in op enjoy ;)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] KuroRyu:
Does this refer to the random crashes of the LineageOS clock app?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Gennesÿs_1:
Android Auto works?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] mistersixt:
What about giving it a try and letting us know the results??

Thanks in advance ;) !
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Morpheuspt:
Getting Force Close on Device Personalization Services.

Clean build, latest Gapps, no magisk
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] phantom146:
I thought that screen off FOD on Aosp roms right now are still impossible and is currently under development? Did you manage to create a working FOD whilst the screen is off without AOD just like miui?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] iqrammm:
Yes he did but the issue is that in miui the icon will be visible but its not in this implementation for now but it works if you can guess the fod placement correctly.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 197:
It doesn't seem to do anything unless the screen is on, even when pressing in the right place.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] grosjo:
Official

Hi

When will this be pushed to official roms on lineageos.org ?

Thanks for the great work
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] phantom146:
I see, thqt is no issue once you get used to the fod replacement, since this is the furst step I hope more improvements are soon to follow.

Doesbit vibrate for you at least?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 197:
No, there's no feedback at all.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] MtBlackstar:
Probably not but unofficial is great official is for the namesake only and it's hard to get that name too much commitment.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] olus:
same here, nothing happens.

with latest update i get bugs in settings screen, see screenshots.

dirty flashed from previous build.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] fereidooni:
Do a clean flash
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] g0t.milkk:
You can try this, it helped me not on the same issue, but it's worth giving a try before clean flashing :

in twrp delete the contents of the folder /data/system/package_cache
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] R@mpage:
me too.

EU version.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] alex9yust:
I apologize, I did not look at how the scanner was implemented on the screen off. but from what I read, it looks like he’s done a little wrong.

it seems now in the new lineage build the screen wakes up on a scanner event. those you should find the scanner area on the off screen, click there and then everything else will happen.

but should be on a kernel event

TP9886-DBG][gsx_gesture_ist:464] Gesture report, x=544, y=2021, overlapping_area=8, area=9

when you click anywhere on the screen, an AOD appears with a scanner or just the scanner icon and unlocks, if you have not guessed with the place - you move your finger and unlock.

yes, most likely we will need to rewrite the AOD code. include AODAlwaysON and AOD gestures in one place.

it will also be possible, for example, to switch music tracks by tapping on the screen off, for example, in the corners.

but this is all a theory. I personally do not undertake this and will not do it.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] olus:
please hold back if you have no idea!

---------- Post added at 02:23 PM ---------- Previous post was at 02:22 PM ----------

it worked! thank you!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] fereidooni:
Mate it's happened to me after dirty flash

Clean flash fixed
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] MacGyver17:
Quick Question

is this list updated ?

https://xiaomifirmwareupdater.com/firmware/raphael/

The Global Version is still on the 11.0.1.0 in here
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 5i1v3rStorm:
They have every version, so yes it is updated.

The link you posted leads to their firmware section which is a package of their firmware files (dtbo, modem and such) WITHOUT vendor.

If you didn't flash the correct vendor at the same time you'd end up bootlooping due to inconsistent versions of firmware and vendor.

Use their vendor package instead. It has, on the other hand, the firmware included so you only need one package.

https://xiaomifirmwareupdater.com/vendor/raphael/#
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] MacGyver17:
ok, thanks for the info.

Anyway, I tried to install the latest update, clean flash, new gapss (20200127), and magisk

turn on the off screen fingerprint, but it didn't work.

no feedback, no vibrate, nothing.

Is there's any explanation ?

*still on the 11.0.1.0 FW/V (the global one) tho, I don't know if these makes an issue or not

*edit

and one more question, are the future update need some sort of clean flash again ? I kinda traumatized because sometimes I forgot to backup some apps and missing the data forever xD