yashsingh1/xdaforums huggingface dataset:
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] heinhuiz:
The trick is to format data instead of only wiping it. When you don't format data, the partition will stay encrypted but the new ROM does not know that and thus reboots.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] groundhogday:
Deleted duplicate post
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] groundhogday:
Just wanted to say thanks for the replies above, I had a chance to review and apply the knowledge above and successfully flash Lineage OS tonight. The key was definitely using the "format data" step to decrypt the drive and allowing it to write the portion. From the fastboot loop in was in above my above post I carried out the following steps to get it working:

- boot to TWRP recovery

- perform a factory reset from the wipe menu

- data format from wipe menu

- flash Lineage OS

Boot worked first time after that. Thanks @kingkong1981, @malwarebyte and @heinhuiz for the extra insights, really helped to sort the issue. Its interesting that quite a few guides miss the "Format data" step as it seems to be pretty key. Hopefully this helps someone else in future :)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] z1022:
This ROM can daily work ?

Thanks
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] valentinc22:
I use this ROM since the very beginning when I bought my phone as a daily driver, without any major issues.

That said, being a custom ROM you might need to do a clean flash from time to time. For example, in the actual build the GPS functionality does not work for me (the apps cannot retrieve GPS data, although enabled). I don't think it's a bug, because nobody mentioned it, but I did not do a clean flash for some time now. In my case, it might also be a combination that I don't use Gapps (so Google Location Services are missing) and dirty flash.

I did encounter this problem before in other builds of LineageOS (don't remember if on this phone), but figured out it's most likely realted to a dirty flash.

In the end, I think it depends on how you do a clean flash: if you use a backup and don't need to reinstall all the apps after formatting /data, then you might want to do it more often to avoid any unwanted bugs. But for me, I like to reinstall everything when I do a clean flash, so it's not economical to do it at every time.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
This ROM is very stable with very minimal bugs & can be used as a daily driver. Credits to developer. This ROM is light, smooth, snappy & battery efficient with excellent network reception & louder speakers.

But do a clean flash following all steps mentioned in my post #428.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Robbo.5000:
The format data step is required when flashing over MIUI. It's normally not required flashing over another AOSP ROM, just a standard clean flash in this case.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] groundhogday:
After reading your post I downloaded SatStat from F-droid to check the GPS and ran into the same issue - it cannot lock onto a GPS position. I'm not using GApps either as the main purpose of flashing lineage OS was to remove google and a good chunk of the tracking from play services. Is there a known replacement for googles location services?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
As far as I know, location services are built-in to the ROM.

Downloaded apps may utilise these services.

I remember that a long ago Nokia maps was a good alternative but available for Nokia Symbian phones only.

Maps by Apple is available on iphones.

But on Android I haven't seen anyone use an alternative for Google maps.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] valentinc22:
That is interesting. There is MicroG as an alternative to Google Play Services, which is supposed to be more privacy friendly.

But the idea is it should be working without any 3rd party location services. I checked it with multiple apps, so I'm not really sure if it is related to the missing Google Location Service, it was just a guess.

I do remember GPS worked in the previous build, but since then I also updated Magisk. I will wait until the next build is realeased to see if the problem goes away.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] valentinc22:
They are built into the ROM, but if Gapps are installed, Google Location Services will be used instead by most apps. Those apps that are designed to work with Google Play Services, are tightly integrated with Google Location Services framework and may work incorrectly without it. One of the reasons is some permissions cannot be denied in Google Play Services (such as location, Wifi scan), so it can access location independently of phone settings and it also runs it background all the time, being instantly ready to deliver data to apps.

That can make things work smoother, but is also a big privacy problem.

And regarding the maps, I'm not talking about Google Maps (this may not work without Gapps, I have not tried it). I have tried Waze (which uses Google Services) and OpenStreetMaps (which doesn't). None of the 2 can access location, but in the previous build both worked just fine.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
Assuming that developer has read these posts, I would wait for rectification in next ROM update.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Lomobasd:
Hi, i have bin using this rom for a while, and everything is working flawless so far.

Very nice work!

But now i encountered a Problem after changing the Display of my Phone and wanted to ask if anyone else had a similar issue or knows how to resolve the Problem? The Problem is, that after changing the Display the brightness of the Fingerprint Reader Icon / Dot is now following the screen brightness and is not independently at the max brightness like before. (Which means the fingerprint reader only works at high screen brightness levels)

I already contacted the seller of the Display which told me i should recalibrate the Sensor, but i cant find that utility in Linage OS. (probably non existent). And i don't relay want to re flash the original miui just for calibrating the fingerprint reader.

Any ideas what the Problem could be? The replacement screen itself not supporting the max brightness in that spot? Or maybe some software problem or something which is setup about the display at the initial installation?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] valentinc22:
@kingkong1981

Keep in mind that this problem might not be a bug, especially given there are only two of us which have it.

It might be related to a combination of dirty flash and other factors, that's why I would not expect anything from the developer. After all, it's a free ROM, downloadable as-is, without any guarantee it will work perfectly.

I just hope that the combinations of factors that generated this problem in the first place might change in the next build. It happened in the past for problems to disappear, even though they were not listed as bugs or as fixes in the next build.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Lomobasd:
I am using MicroG with my Linage Install with that Locations Services are working properly and you also would be able to use Push Notifications. And you would have fairly good control over the Data sent to google.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] groundhogday:
Thanks for the input. To clarify, I'm moving away from google services completely due to the privacy issues posed by the extreme data collection used by them (and also the other large tech companies). It's a personal security / privacy project I'm working on to see how much I can reduce my digital footprint, and mobile phone is a large part of that. So whilst MicroG would reduce the data sent to Google, it would still be sending quite a lot. Without Googles location services, it appears that AOSP GPS doesn't appear to work well / at all on its own. This is on a clean install of Lineage OS 18.1 after a complete factory reset / format of everything on my phone.

I'd be curious to hear if there are many others in this situation, as I imagine I'm probably on the sightly more extreme end of the spectrum by not using Google services at all. On the bright side, it's much harder to track my location if Wifi / Mobile high accuracy settings are disabled, cellular signal is disabled via Airpane mode and and GPS doesn't work :D New versions of Android also generate unique MAC addresses when connecting to Wifi, so it's certainly interesting :D
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] valentinc22:
Given that you have a clean flash, I can eliminate that as a potential cause. Did it work in previous builds or it was a problem right from the begining ?

I am also in you situation: I am using LineageOS for privacy reasons specifically, so it would not make sense to install Gapps or MicroG. But I think that most people use the ROM with Gapps installed, that may be the reason they do not have this problem.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
To clarify things,

In this ROM the brightness of fingerprint icon when phone is in unlocked state is similar that of surrounding display but its brightness increases to maximum when touched to unlock the phone.

Usually display related issues are hardware based.

To rule out software related causes,

1. Run a highly rated third party display calibration tool or diagnostic tool downloaded from playstore.

2.Tweak related display settings in settings & developer settings.

3. Try changing fingerprint animation if possible.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Lomobasd:
I don't think that the ROM is the problem, because with the Original Display the Fingerprint was working fine. And the problem is not the icon the Problem is the Brightness of the turquoise dot illuminating the Finger for the Fingerprint reader Camera. Before the Dot was at max brightness while the surrounding display stayed at the same brightness level. With the new Display the turquoise dot follows the global screen brightness, which means the phone wont unlock if the brightness is to low.

I also think so but its a bit strange, because its the most sold replacement display and no buyer reported any problems about the fingerprint not working.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
Better to confirm by flashing stock MIUI ROM. Else ask seller guidance to calibrate the display or a replacement.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Lomobasd:
dont realy want to do that yet. Dose anybody know where the config files for display and fingerprint stuff are located? I also wouldnt mind if the whole screen brightness would get set to 100% for scanning the fingerprint
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] TheSourceNL:
Question: I'm still running stock because I heard stories that the fingerprint reader is always slow in custom Roms. Is this true? Or was that something in the past and has it been fixed?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Kevindiepenmaat:
For me it is very fast and rock solid. 9/10 times it registers perfectly. No complaints here.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Robbo.5000:
It used to be slow, but has been fixed for a long time. In my personal experience I would say it's not quite as accurate or fast as stock, but it's good enough to use without it being a problem.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] groundhogday:
Been working great for me so far. The only exception I've seen is a weird bug in 1Password where it will always fail when autofilling. This was apparently a Xiaomi firmware bug, but it appears to have been resolved in a firmware update after the one linked in the OP. As a general question, how frequently do we see Xiaomi vendor firmware patches on here compared to the official releases? I realise this version is only unoffical because the kernel isn't open source, but how often are the "closed source" updates available to us?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
I felt fingerprint unlock in this ROM is faster & more reliable comparable to that of stock ROM. This is due to fact that FP animation in stock ROM is longer than simplistic one of Lineage OS.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
List of official vendor firmware by Xiaomi for all regions for K20 Pro/ Mi9T Pro.

Xiaomi Firmware Updater

The ultimate script that provides firmware packages for Xiaomi devices.

xiaomifirmwareupdater.com
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] murakh:
Had this problem too, also using Nik Gapps. Without wiping or re-flashing the ROM, going into the Phone App settings and clearing the cache & data, and then making it the default for phonecalls (App-info - Advanced - Phone app "yes") (which it was not) fixed the issue.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] sam00561:
hi does anyone know where is the raise to wake option please.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
Raise to wake feature is not present in this ROM.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] sam00561:
Actually yes it is and I found out now.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] mauam:
And can you share where the option is!?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] sam00561:
Display lock screen ambient display.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] mauam:
Don't know if the "raise to wake" option present in this rom, is the same that the previous user is referring.

Edited: Ok, understand now, you guys are calling the ambient display option, raise to wake. Well, raise to wake is a completely different thing but that's fine.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] sam00561:
Goto display then lock screen then ambient display and you'll see.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] mauam:
Read my previous post again, the edited part. Raise to wake isn't the same as ambient display.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] sam00561:
I'm not splitting hairs it serves the same purpose.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] paparansen:
hi ppl...

i installed evolution x, which sucks.

so i installed this rom, but it only boots back into twrp.

i wiped cache, system, & data before flashing vendor, this rom & gapps.

any hints ?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] sam00561:
You need to flash force encrypt file in twrp
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] paparansen:
didnt do that before i tested evolution x.

got a link to that force enrypt file ?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] paparansen:
thx... in which order do i flash this ?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] sam00561:
Just flash in twrp after the rom
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] paparansen:
now it shows the lineage bootanimation for "ages",

then reboots to twrp.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Zafrkant:
I had problem in TWRP with backup restore and after that using OrangeFox v11.0 which works very good.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] sam00561:
You'll need to format data in twrp but you loose all the files in internal storage you'll lose photos etc
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] paparansen:
never had this problem until i tried the crap evolution x :(
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] paparansen:
ah ok, thats no problem... will try that.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] paparansen:
boots now, but weird stuff is going on... cant change background,

app keeps crashing - wasnt like this before.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] sam00561:
I would suggest to join the mi9tpro/k20 Pro telegram channel there's many people there with good knowledge. I would carry on assisting but I'm at work ATM.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] paparansen:
dont worry, you helped already... thx :)

will try again tomorow, goin to bed now.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Robbo.5000:
Best thing to do now would be to flash the latest correct region MIUI fastboot ROM and start again. Ignore anyone who tells you to flash a disable force encrypt patch, it's absolutely not necessary.

See my guide here https://xdaforums.com/t/simple-guide-to-flashing-successfully.4151007/
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] sam00561:
This is totally recoverable without flashing fastboot ROM where he may risk bricking the device if not sure about correct official ROM. To my understanding being decrypted offers faster read write speeds and better performance and I was under the impression he may have previously decrypted. Shame you didn't chime in earlier with your expert understanding.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Robbo.5000:
How much time has he spent so far? Restoring stock and going from there would have got him up and running issue free straight away, for just a few extra minutes. Now he's still not got an unusable phone and, with your philosophy, an unknown amount of trial and error trying to get it working as is.

Android encrypts entire partitions not individual files. In use the partition is already unencrypted, so there is no performance difference reading and writing files.

There is zero reason for anyone to decrypt this phone and lower the security of their data, other than personal preference.

Yes, it is a shame I hadn't read his problem earlier with my far better knowledge.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] sam00561:
Well I could only advise the way I do things with my phone people have different ways of achieving a similar goal but if you think you can do better be my guest. I just hope he doesn't end up bricking his phone as people can be unsure of there exact ROM. I still think he is better off joining the telegram channel where there are real experts. Oh and my expert comment was in jest but seems to have failed on you.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Robbo.5000:
It's very simple not to brick the phone. You delete the flash_all_and_lock.bat and flash_all_and_lock.sh files from the ROM, as soon as you've fully extracted it. From then on it's impossible to accidentally lock the phone, no matter which method you use to flash the fastboot ROM.

I fully understood the expert comment, that's why I countered it, because I've shown that I actually do know considerably more than you about flashing ROMs safely and securely on this phone.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] sam00561:
I employed my way of doing things and you have your way which I have no issue with there's no need to get wet about it I never claimed to be any kind of expert my ideas on how to go about things differ from yours nevertheless we are all here as a community to help each other not measure D*** sizes.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] z1022:
If I clean install, can I keep the enrypt and use this rom ?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Robbo.5000:
You can always remain encrypted on any ROM, if that's what you want.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Robbo.5000:
You started the measuring with your 'jibe'. I merely responded in kind.

I have no issue on how you do things.

I do have an issue with anyone who blindly and blandly tells people to flash a dfe script as a solution to their problems, when it's not required and will result in the person having a less secure phone. You're not the first person I've opposed for giving that advice and you probably won't be the last.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] sam00561:
Then mind your own own business because I'll continue to do it. There is as much security issue with being decrypted as there is with using any of these unknown ROMs.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] paparansen:
what is going on here? ^^

i thought, that file will fix a problem - didnt know that it disables encryption :D

anyway, still got problems... now i tried flashing vendor, rom & gapps AND

after that i formated data - now it is working like before.

didnt know that, because it is not mentioned in the how to flash of this rom.

also the sucking evolution x rom didnt need that step.

now i learned something again ^^
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Braspit:
Does anyone know when the new update will be? It was supposed to be the 22nd
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] kingkong1981:
Expecting this week based on past time line.

Once again, I would thank this developer from giving us timely updates on this favourite ROM of mine.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] strongst:
Reminder to everyone

Please be friendly to each other and also respectful. Most of the time there's more than one possibility to resolve an issue on Android and not everyone is an expert and has his own experience and solutions, so please accept them.

That's the way a community is working 😊

I recommend to read the FORUM RULES especially those:

2.1 Language: XDA is a worldwide community. As a result, what may be OK to say in your part of the world, may not be OK elsewhere. Please don't direct profanity, sexually explicit language or other offensive content toward Members or their work. Conversely, while reading posts from other members, remember that the word you find offensive may not be offensive to the writer. Tolerance is a two-way street.

2.3 Flaming / Lack of respect: XDA is about sharing and this does not involve virtual yelling (flaming) or rudeness. Flaming or posting with a lack of respect is unacceptable. Treat new members in the manner in which you would like to have been treated when you were a new member. When dealing with any member, provide them with guidance, advice and instructions when you can, showing them respect and courtesy. Never post in a demanding, argumentative, disrespectful or self-righteous manner.

2.4 Personal attacks, racial, political and / or religious discussions: XDA is a discussion forum about certain mobile phones. Mobile phones are not racial, political, religious or personally offensive and therefore, none of these types of discussions are permitted on XDA.

Please keep the thread on topic without judging others opinions in a personal manner👍

Regards!

strongst

Forum Moderator
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] sam00561:
Thank you Sir.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Robbo.5000:
I've been out with friends for a couple of drinks and so I'm probably not in the best frame of mind to respond to this. But hey, this needs saying, and if I get kicked for doing so, then it's a measure of how low XDA has gone and so it's no great loss.

I agree with the sentiment, but in this case you're so wrong.

If you believe it's OK to advise people to needlessly lower the security of their phone as a solution to a problem, then you do not deserve to be a moderator.

There may well be multiple solutions to a problem, but there should be a moral duty of the community to flag any solution given that is detrimental to the user, and where the person giving that solution has failed to clarify the negative implications of that solution. For this phone, removing encryption is 100% not required in order to flash and use any custom ROM. Removing encryption is therefore completely a convenience option. (I could argue that it doesn't actually give as much convenience as many claim, but that's for another post). I make absolutely no apologies for jumping on any post that suggests needlessly flashing a dfe script as a solution to a problem, and I will continue to do so. It is totally irresponsible for anyone to suggest needlessly removing security of their phone. If the person that made that suggestion takes offence to my reply and then responds by making disrespectful jibes, then I will respond in kind.