yashsingh1/xdaforums huggingface dataset:
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Papf:
Not working - tried everything... :(

@joeyhuab after installing Magisk the double tap to wake up not working - any solution? :( - seems it fixed by itself after X reboot?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] urbanmec:
Thank you sir. Respect.

Just a side note here, I lost Widevine L1 after 12.1 update(dirty flash+ wipe caches) , did I mess up anything, or is it related to the update?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] ivanfix69:
I lost Widevine L1 too (clean flash)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] xmsxms:
Anyone with encryption have fingerprint login working?

I had EvoX12 with broken FP so attempted to follow this advice: https://xdaforums.com/t/rom-12-raphael-official-evolution-x-snow-03-12-2022.4356861/post-86511423

I did a complete clean flash of raphael_global_images_V12.5.2.0.RFKMIXM_20210809.0000.00_11.0_global_71aaa1f8dd which booted ok, and did not set up an account. Then attempted to clear data/system/cache and flash the latest build of EvoX 12 which resulted in a boot loop.

I flashed the 'dtbo.img' image however this had no effect.

I then did a 'Erase All Data' using the TOOL ALL IN ONE and attempted to flash EvoX 12 yet again (have to adb push the file first, as the 'TOOL ALL IN ONE' attempts to use an encrypted path and using 'main memory' runs out of space due to the size.) This finally managed to boot EvoX but am back with the same issue of fingerprints not working on login.

I suspect this advice on corrupted keystore is not the issue. Perhaps the last two builds of Evox12 simply break FP on encrypted devices?

It broke as of this build: https://xdaforums.com/t/rom-12-raphael-official-evolution-x-snow-03-12-2022.4356861/post-86503147

Which I note had a change of:

Biometrics: Allow disabling of fingerprint cleanups

Which is a bit suspicious. Also notes on pocket mode unlock:

"Fingerprint unlock in pocket mode UI is completely disabled "

Could it be that users that had this enabled now have broken FP with no way of turning this feature off to fix it? I would have thought a clean flash would resolve that.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] joeyhuab:
1. The whole framework was rebased on Android 12.1 for the latest update.

2. "Fingerprint unlock in pocket mode UI is completely disabled" this wasn't even part of the latest update.

3. "Biometrics: Allow disabling of fingerprint cleanups" this helps when Guest mode is on and allows the fingerprints to be cleaned up

4. What else do you assume breaks FP? Cause mine works just fine and several other users who flashed the LATEST update have it working and FASTER too.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] xmsxms:
2. I don't know enough about the hardware or cloud storage of config to comment. But if pocket mode involved a hardware flag that survives a flash this theoretically could be an issue. It is only a suggestion as I am experiencing the issue despite a clean flash. Or possibly an account level config that gets synced back from google account storage. I only mention it because this was the build that caused the breakage.

4. My only thought is either; a hardware or 'cloud storage' flag; the use of encryption which I know quite a few in here have disabled; or the way I (and a few others) installed vs how others have installed. It is not clear on how to actually upgrade from miui android 11 to EvoX 12 - the instructions themselves in the first post don't appear to work as written. I needed to perform a full erasure outside of recovery, others may have enacted alternative workarounds for the boot loop issue.

I am seeing this issue with the 'latest' build after a clean flash. The problem was introduced on the build I mentioned.

I should mention that it worked fine in miui for login when I temporarily flashed to that - so the hardware appears to be fine.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] joeyhuab:
Let me repeat, pocket mode ISN'T available in the latest update. So whatever you think could be causing the FP issues related to pocket mode, remove that from any theories cause it's not even in the ROM anymore.

It's not really my problem to give a proper way to stay encrypted as flashing the ROM keeps you encrypted by default. That's why I have to flash DFE each time I test an update to decrypt my storage. And there's really no other format to follow either as users just need to format data to decrypt from MIUI and flash Evo from fresh internal storage if you want 0 issues. You can theorize all you want. All the sources are available in GitHub for reference.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] urbanmec:
Had the same issue , but was my fault.

try this :

go to xiaomi firmware website and download the latest GLOBAL firmware (12.5.2) , make sure to chose firmware only (≈104mb if I remember correctly) , back to recovery &flashed the zip, cleaned caches , and FP went back to normal again.

Hope this helps.

Give feedback please.

Sidenote :

1. for a proper clean flash you need to FORMAT DATA and not clear it.

2. A proper clean flash , in Recovery :

- Clear System+vendor+dalvik cache+cache

- flash latest firmware

- flash EVO-X

- FORMAT DATA -> yes

-> Reboot
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] xmsxms:
> Let me repeat, pocket mode ISN'T available in the latest update

I'm aware. You'll note my comments are about potential artifacts left over from builds from when it was available. Based purely on the changelog for the build that introduced the issue. Anyway, I believe it is likely an encryption or installation issue rather than pocket ui issue.

> And there's really no other format to follow either as users just need to format data to decrypt from MIUI and flash Evo from fresh internal storage if you want 0 issues

The current instructions say to install miui a11 then wipe Data/Cache/System and flash the rom. This results in a boot loop. Perhaps if you force disable decryption it doesn't - but the instructions don't mention this and imho isn't very advisable anyway. You may find you experience the same boot loop and FP issues if you follow the instruction guide as written.

It might be beneficial to have some clear and tested and instructions that were verified to work. The investment in writing and testing them may pay for itself pretty quickly with less user issues to resolve.

Thank @urbanmec. I had tried flashing the 100mb firmware zip file before but no luck. I tried again:

- flash fw, cleared caches, reboot (still broken)

- flash evo, wiped dalvik/cache, reboot (still broken)

- format data - yes, reboot, had to re-go through setup after losing all data. (still broken)

Note the fingerprint scanner is working fine in apps (and in miui login), it just doesn't appear or function on the evo lock screen. Only a lock icon appears.

I guess I might try another clean install tomorrow given I have lost all data again anyway
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] joeyhuab:
Moving on from fingerprint issues, here is another update. Like previously stated, yesterday's update was just the initial release for 12.1. This build will have more features and changes and they can be found in the changelog below. Other features removed may or may not return, depending on what 12.1 codes permit.

Changelog for latest (03/14/2022) Update

Device changes:

==============================

Disable configstore

Fix building arcore and talkback

Fix status bar height overlay

Switch to using CAF HALs from LOS

Upstream Soviet kernel to v4.14.269

------------------------------

ROM changes:

==============================

Add support for call recording

Allow cellbroadcastreceiver to read phone state

Block annoying status bar call strength icon

Do not lock when biometric lock status is cleared (might fix FP-keystore2 issues)

Evolver: Add a toggle for combined signal icons in status bar

Evolver: Allow toggling location privacy indicator

Evolver: Allow toggling Udfps haptic feedback

FW: Use rounded corners in system UI

Import Crowdin translations from 12.0

Pixel Launcher: Update themed icons overlay

Screenrecord: Bring back blinking stop, LQ and Longer options

Settings: Add option to enable AOD on charging only

Settings: Disable doze on charge preference when doze always on is enabled

Settings: Set Cell Broadcast Receiver package to "com.google.android.cellbroadcastreceiver"

Settings: Show memory usage in app info

Settings: Update Evolver summary to reflect update to 12.1

SettingsLib: Update LTE+ icon as per new Silk design

SystemUI: Add AOD QS tile

SystemUI: Add tile to show volume panel

SystemUI: Bring back FPS Info Overlay & Tile

SystemUI: Bring back ic_qs_bluetooth_connected.xml

SystemUI: HeadsUpTile: Open Heads Up fragment on long click

SystemUI: Implement burn-in protection for status/navbar

SystemUI: Introduce DataSwitchTile

SystemUI: res array for status bar blocked icons

fw/b: remove duplicate hide battery feature from tuner

net: fix NPE when reading IP configurations

overlay: Change global actions gestures defaults

overlay: Default to full gesture navigation

overlay: Update rounded corner dimens from redfin

overlay: Use old NTP server in China

DOWNLOAD
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] xmsxms:
Followed these instructions directly:

- Clear System+vendor+dalvik cache+cache

- flash latest firmware

- flash EVO-X

- FORMAT DATA -> yes

-> Reboot

And still experiencing broken FP. Note I did start with an encrypted device and remain encrypted. I use adb push to '/data/unencrypted' to host the installation files. Guess I'll check back in occasionally to see if the FP issues get fixed/acknowledged.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] urbanmec:
Thank you sir

Downloading ...

if you may sir, is widevine addressed in this update? or is it only an issue on my end?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] urbanmec:
I you may answer :

- can you add fingerprints normally when you setup the device ? is the issue only on the lock screen ? or does it refuse to add new FPs at all? (complete fail to read FP or intermittent behavior?)

- Is your screen replaced ? (this changes everything)

Note : Given you have a unique problem that no other users have reported , makes this most likely specific to your device , hense the questions.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] joeyhuab:
Honestly can't address the widevine issue for all variants since we have different firmware to begin with. I'll repush the update to fix an issue with the QS + fix arcore and talkback not being built with the ROM.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] urbanmec:
Thank you for the reply.

Take your time sir, it is not a pressing issue, I just wanted to make sure it was not me messing up things.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] vvouliotis:
thank you, Joey!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Papf:
@joeyhuab Can't turn on encryption - phone is in bootloop :(
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] gps3dx:
@joeyhuab & TEAM EvoX - you're the B-E-S-T !

Can we please get more details into "call recording" feature ?

Is it based on Google Dialer (Beta?) ?

where can we find recordings OOTB ?

Can we control output format, bits per second etc ?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] joeyhuab:
Just flash the ROM from MIUI without formatting data. Just wipe data. Not format.

I have absolutely no idea. Check it in your Dialer.

Re-update has been posted. Check some changes in the previous post.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Papf:
But I'm already on Evolution and wanted to encrypt - to install Evolution X ROM I had to use Disable DM-Verify and Disable Force Encryption in OrangeFox, wanted now to enable Encryption and got bootloop after which I had to format data 😓
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] joeyhuab:
You can't encrypt through the ROM. You have to format data then enter the ROM to stay encrypted.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Papf:
Could you write the steps please?

It's my first custom ROM 😓

And I tried to call someone to check the recording function (default phone app from google) and I didnt see aby option for that 😓
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] xmsxms:
Yes I can add fingerprints normally and use them in apps that require it (i.e banking apps, bitwarden etc). I can also use it for login in miui and for evo in versions prior to the one I linked. I have not changed the screen.

I assume it is probably encrypted related, e.g fingerprint data encrypted and can't be read until unlocked or something like that.

Are you encrypted? I haven't had confirmation of working FP login for encrypted users in these latest builds. (although I take it few people are encrypted as there are no working instructions for getting this setup).
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] urbanmec:
Since you can add it and use it on banking apps normally it means that the ROM, encrypted or not , can read FP off the device normally.

now you specifically have an issue on the lockscreen, try to experiment on that from Settings -> Security -> Screen Lock

(try changing what you use as lock screen from password to pin to pattern ...etc )

and see the behavior of your lockscreen.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] urbanmec:
NB:

- If you are doing this for the sole purpose of getting the google dialer recorder , there are other ways to get it on stock.

- If you are doing this and this is your main phone and you are not prepared to mess it up , don't do it , maybe at first its better to contact someone that helps you step by step.

- Proceed at your OWN RISK :

1. backup any important data you have on the phone as unlocking will erase all data from phone (pictures + videos +Apps+ documents + downloads ...etc)

2. Unlock the bootloader Using PC (look the process up on google).

3. flash a custom recovery via fastboot Using PC, (TWRP)

- then flash OrangeFox recovery zip (optional)

4. Download the latest EVO-X ROM on you PC.

5. Go to https://xiaomifirmwareupdater.com/firmware/raphael/ and download the latest firmware for GLOBAL (12.5.2 as of today)

5. go into recovery and wipe System+ vendor + Cache + davik cache partitions.

6. Copy the Rom Zip + FW Zip to your phone.

- if in OrangeFox Recovery disable dm-verity and Encryption (Optional) or flash the appropriate zips on TWRP.

7. Flash the FW zip first

8. Flash the ROM Zip

9. In wipe menu in recovery chose FORMAT DATA (not wipe)-> confirm by typing YES

10. Reboot & Enjoy.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] xmsxms:
Thanks @urbanmec I more or less followed those instructions with some slight alterations;

..

2b: Flash full 3.7Gb fastboot image from https://xiaomifirmwareupdater.com/miui/raphael/ using 'flash_all.bat'

..

11. Complete setup phone in 'offline' mode which will not restore any config/backups etc

12. Add fingerprint and confirm screen unlock ok

13. Continue setup by adding network connection and restore from backup etc.

However - after point 13 I can no longer use fingerprint to unlock the phone. It appears the 'complete setup' process that restored my account breaks it.

The setup process does walk you through face unlock with no way to skip it - I assume this messes with the login credentials, or something breaks it while restoring from google backup.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] joeyhuab:
After you setup face unlock, if you press back, it allows you to setup fingerprints...
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] xmsxms:
Yes I have been able to add and use fingerprints fine, it just did not work on lock screen.

I did another full wipe and when restoring backup I de-selected "Device Settings". The fingerprint is now working on the lock screen after setup.

I assume an earlier build of Evo allowed setting a particular bit of config that was incompatible with the changes introduced in the build from https://xdaforums.com/t/rom-12-raph...snow-03-14-2022.4356861/page-50#post-86503147 - and when that old config was carried over it broke it.

I guess deselecting 'Device Settings' when restoring from backup should be publicised as best practice when doing clean installs.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] joeyhuab:
Yeah, I've been advising people clean flashing to not restore passwords/device settings to avoid getting issues with FP.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] xmsxms:
Can I suggest you add a detailed set of install instructions with these notes to the first post? If it's a known issue with known solution it might have saved 2 pages of discussion and several hours of reinstallation etc - multiply that out by any other users that go through the same process.

Download required files to PC:

Latest miui fastboot image (https://xiaomifirmwareupdater.com/miui/raphael/) (3.7Gb)

Latest firmware for GLOBAL (e.g 12.5.2 as of today) ( https://xiaomifirmwareupdater.com/firmware/raphael/) (107mb)

Latest EVO-X ROM zip

Steps to ensure a clean installation:

Backup any important data you have on the phone as unlocking will erase all data from phone (pictures + videos +Apps+ documents + downloads ...etc)

Unlock the bootloader using PC if not already unlocked (look up the process up on google).

Perform a full install of the Miui fastboot image using 'flash_all.bat' to ensure a clean starting point.

Flash OrangeFox 11.1_.4+ recovery.img via fastboot, e.g using 'TOOL ALL IN ONE'

Flash OrangeFox recovery zip using the same tool.

Reboot to recovery:

Wipe System + vendor + Cache + dalvik cache partitions.

Copy the EVO ROM Zip + Firmware Zip from PC to your phone, e.g using adb push:

adb push fw*.zip /data/unencrypted/.

adb push evolution*.zip /data/unencrypted/.

Via orange fox menus, disable dm-verity (required?). Optionally disable Force Encryption (not recommended)

Flash the FW zip from /data/unencrypted/ (possibly not required due to full miui fastboot image from step 3?)

Flash the Evolution ROM Zip from /data/unencrypted/

In wipe menu chose FORMAT DATA -> confirm by typing YES

Reboot and setup phone using 'offline mode', confirm working ok

Enable wifi and continue setup process

If restoring account from backup deselect "Device Settings" to avoid old configuration conflicting with newer builds
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] joeyhuab:
Not everyone is flashing from the version that you have pointed out so this isn't applicable to everyone. Only for those who restored their backups completely and has the persistent FP error.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] xmsxms:
No - that is why the first step is to perform a full flash to a common starting point. It is to avoid pages of support posts of how to recover from bad installations from numerous different starting points and methods of installation. Much better to document how to perform a true clean install up front rather than saying "yeah that's why I say it's a good idea to disable settings restore" (on telegram? on page xx referring to an old build?) after 2 days of trying to resolve the problem.

Being able to refer people to a "verified and tested clean install process that takes you from a clean known state to a clean known state without any end user configuration" would save a lot of time diagnosing issues. But you don't seem too interested so I'll leave it be.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] joeyhuab:
I've updated instructions in the OP since you're super persistent.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Draven4:
I'm on the latest xiaomi.eu ROM available for Raphael (A11, MIUI12.6). Should I just flash Evo on top (with data clearing) or should I still flash a clean A11 ROM linked on the original post first?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] joeyhuab:
You need to flash stock firmware linked in the op first before flashing Evo.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Draven4:
After some backing up and setting it up, it works! Thank you so much for this! It's smooth and I'll see if it stands the battery test tomorrow. I hope lost features from before 12.1 can be added again, since I love customization and I loved that when I used to have my old Moto G5 Plus, like full amoled dark mode or more accent colors. Thank you, again!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] edddie23:
@joeyhuab ,

Your March 12 release is very good! I have NFC and bluetooth always on and I don't see any battery drain. My SoT is more than 4 hours, which I think is good for 2 years old battery. But I still can't read MIFARE classic NFC chip.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] joeyhuab:
I'll see if switching to NXP NFC from Lineage will solve it for the next update.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] DragunovMZK:
Is it possible to restore the font and color settings from previous versions? This is not in the latest version :( Is it possible that I don't have these settings because I was updating via ADB sideload?

I hope you can restore these settings (The Evolver) in future updates. I liked them very much :)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Papf:
I already have the ROM Evolution X installed - but I had issues when wanted to encrypt data - bootloop :(

And I don't see the ability to record calls through the google Phone App :(

@joeyhuab :

1. could you explain me how should I properly encrypt the phone?

2. where should I look to turn on the phone calls recording?

3. thx for your hard work and for help :)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] joeyhuab:
They were removed after the 12.1 rebase. I deem them too obnoxious and unnecessary.

I already explained encryption. You need to FORMAT DATA in your recovery.

Call recording will vary on your carrier/location as some countries prohibit call recording in their laws.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] neilprime16:
Oh I see, for me it just gives my video a jello effect. Not sure if this is normal or not. Did you apply any special settings or configs to ur setup?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] joatha:
is encryption work in this rom
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] aledica:
Here's my config file
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] neilprime16:
Thank you so much! Will try now!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] neilprime16:
Yeah I tried it and the video stabilization is still not working. Tried all stabilization options and still the same jello effect. Hopefully there's another fix for this while waiting for ANX for A12. Thank you again for the help!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] nizetune1:
Hey, great rom overall! Just one small thing :)

I came from your old A11 Evolution X-rom, and in one of the more recent updates my corporate wifi started working again. When connectting with PEAP, i need to be able to choose "Nothing" in the "Authentification for phase 2" when connecting wifi at work, and i cant seem to choose it.

I know google removed this from A11, but in of of the later updates of your A11-rom it appeared again, and i could use Wifi at work.

Thnaks for a great rom! :)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Foxwile:
to be honest it looks better that way in my opinion
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] heavenlyren:
Like some people here the fingerprint on the locks green is not working reliably. Sometimes I have to retry 10-15 times before it works.

I tried to unregister all fingers and register them again , it seems to work fine at first and then become worst and worst.

I tried to register multiple time the same fingers but same behavior.

Does anyone have a workaround ? I read somewhere it might happen because of the Color Profile but I'm already on "Natural" color profile.