[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] LyNChP1N:
*******************************

I am not responsible for any data loss or damage. Follow at your own Risk

*******************************​

This is an attempt at bringing together the scattered files and data regarding common issues of this device so that people dont have to waste time searching all over the place and on other forums

​

___________________________________________________________________________________________________________________________________

Telegram groups for more info​

___________________________________________________________________________________________________________________________________

Most rom development and guides for this device are active on telegram and so I am linking the main telegram groups for k20 pro from which you can find latest development of custom roms, gcam and so on

1. K20 Pro Support Group

2. Official K20 Pro photography - find gcams here

___________________________________________________________________________________________________________________________________

For fingerprint issue, camera calibraiton, voice recording issue, bluetooth quality issue, call quality issue, low brightness issue​

___________________________________________________________________________________________________________________________________

The best thing to do is to flash fastboot rom of miui 10.3.5 based on android 9. Everything works perfectly, no rom has this level of fingerprint function(not even stock mui11or 12) or display brightness.

The display brightness issue is fully gone on this rom.

As a best practice, if you wish to upgrade to another rom, flash it after fastboot flashing stock miui 10.3.5 and calibrating sensors. It preserves the calibraiton data for the hardware.

(Without doing this, I was facing high battery drain, bluetooth quality issues, call quality issues, slow fingerprint sensor, dim display in lowlight environments)

___________________________________________________________________________________________________________________________________

5 point touch display and other dispaly replacement related issues | Fingerprint | Dim display | Ghost touch

___________________________________________________________________________________________________________________________________​

I had the 5 point touch screen replacement on my phone and it had fingerprint sensor issues and random ghost touch issues.

It is a myth that these issues cannot be solved on 5 point touch displays.

1. Over time what is found is that disabling 'three finger swipe' screenshot gesture in settings gets rid of ghost touches. 100% gone. I can type without typos now. Just search screenshot gesture in miui settings.

Note that some devices have hardware issue with display causing ghost touch at top of screen near status bar. This is different from above mentioned ghost touch and occassional touch freeze.

-Some users have reported success by increasing dpi after flashing custom roms.

-Others have had success with slight hardware modifications

2. Try velis auto brightness app if your screen becomes too dark in low lit environments. A way to edit default auto brightness values to be higher in dim environments would have been the perfect solution

This is working on stock miui 12 and xiaomi.eu roms and with 5 point touch displays(have replaced multiple types)

3. The fingerprint issue is solved on repeated attempts at recalibration. What i did was remove all registered fingerprints. Then i did calibration with an A4 white paper folded in half and a black paper while in a relatively dark room(no lights on,natural light). i got a pass on the performance test. keep trying until you get a pass and fingerprint will work perfectly. I tried to keep 3/4th of display covered by a4 and black paper and pressing the fingerprint sensor over the white and black paper respectively to ensure coverage.(also try increasing display brightness to 25%/50% and full brightness. I got pass while at aboot 25% - 50% brightness)

___________________________________________________________________________________________________________________________________

How to flash persist.img to fix Sensor calibration issues/bluetooth/wifi/fingerprint issues or missing IMEI, mac ID etc

___________________________________________________________________________________________________________________________________
​

I find that doing a fastboot install of miui 10.3.5 on android 9. then manually flashing persist.img in orangefox and then updating to any rom gives resolution to a lot of random issues like ghost touch, front camera calibration, dim screen, bluetooth, call quality issues, camera calibration issues -issues related to calibration, persist partitions. (fastboot flash script by defualt never flashes persist as it will cause you to loose Widevine L1. So take a backup of your persist first if you have L1 Status.)

You can flash persist.img obtained from extracted fastboot rom and flash it normally in orangefox recovery choosing target partition as persist. You must get persist from the fastboot rom for the correct region for your phone(Eg: rapahelin devices should get it from Indian raphaelin stock roms).

Flash persist and calibrate within miui for popup camera(it will automatically ask to calibrate after failing too open on its own)and if needed for fingerprint before starting procedure to flash a custom rom. This will ensure that your device hardware sensors work properly(you cannot calibrate once on custom rom but you can still flash persist from recovery)

Flashing persist will cause you to loose widevine L1 status. You may or may not need to do wipe data after flashing persist. So keep your files and data safe on a computer or pen drive before flashing. Take a backup of your persist first if you have L1 Status.

1. How to flash persist extracted from fastboot image

2. How to extract persist from stock rom and how to flash back

​

MIUI10.3.5 is the smoothest of the stock roms and fingerprint sensor works best when calibrated on miui 10 android 9 after flashing persist. Afterwards flashing persist extracted from 12.5.2 stock miui rom seems to give me same results. The thing is that persist is never flashed during fastboot flash or during recovery installation(recovery zips dont even contain persist.img).

___________________________________________________________________________________________________________________________________

How to Fix Widevine L1 Status

___________________________________________________________________________________________________________________________________​

If you need widevine L1 to be fixed after flashing persist, you wil need to use xiaomi.eu 12.5.5 or 12.5.6.

Find those roms on xiaomi.eu website. Boot into rom, go to settings-password and security-fingerprint unlock-fingerprint payments-widevine L1-Download Certficate.

If it doesnt work, wait upto half an hour and try dowload certificate again. Check your widevine status after reboot.

Now take a backup of your persist and continue to move to your favourte rom as needed.

PS, The widevine L1 fix flashable zips do not work.

___________________________________________________________________________________________________________________________________

Encryption on android versions and recoveries to use

___________________________________________________________________________________________________________________________________

******Always recommended to disable lockscreen and backup internal storage files before doing any recovery operations/ system partition related operations/ Rom flash as you can potentially lose your internal storage files **********************
​

1. All TWRP versions need OF AVB Patcher file flashing after flashing recovery to make sure that recovery does not get replaced(has nothing to do with encryption). Orangefox handles this on its own.

2. If you have flashed Disable force encryption(DFE) zip, your internal storage and data partition are unencrypted even if it says encrypted in phone settings. You can use any recovery version if you flash dfe and stay decrypted.

3. If you have encryption, you will need to use following versions.

*****Always Check Rom support thread/group to confirm which recovery to use.

Android 9-11 - TWRP 3.7 or Orangefox 11.1_4

Android 12 - Most roms use unofficial orangefox FBev1

Android 13 - Most roms use Unofficial orangefox 11.1_2 FBev1

Dynamic Partition Roms- Dynamic unofficial orangefox using fbev2

___________________________________________________________________________________________________________________________________

Taking recovery backups reliably and restoring them on any recovery or rom/ Avoid 'Phone is starting'message on boot after restoration / password reset​

___________________________________________________________________________________________________________________________________

Always best to remove screenlock before taking a backup and always restore backup to a device with no screen lock. This works perfectly on all recovery versions and for all roms to avoid encryption issues.

If you have the issue where you are unable to enter your screen lock on boot/shows 'phone is starting' message for a long time when trying to access screen lock-try flashing this pass reset file and rebooting. Enter any password to boot into system.(This works only if you are already decrypted.)

The most important thing is that you should remove your screen lock pattern/pin and fingerprints before you do any kind of recovery/root operations that affect important system partitions as you run a risk of losing everything in internal storage in case something goes wrong.

___________________________________________________________________________________________________________________________________

Unable to take backup in TWRP/ Orangefox - extracttarfork() process ended with error=255​

___________________________________________________________________________________________________________________________________

1. Go in "Advanced" menu => "Terminal" => Type: rm /data/extm -Rf

Make sure to disable second space or 'dual apps', as that feature also creates two users.

2. Go to /data/ and delete following folders. Dont delete user "0"

data/system/999

data/system_ce/999

data/misc/999

data/misc_ce/999

data/user/999

data/user_ce/999

___________________________________________________________________________________________________________________________________

Unable to restore backup in TWRP/Orangefox , Lost IMEI, unable to restore firmware backup - extracttarfork() process ended with error=255​

___________________________________________________________________________________________________________________________________

Try these Instructions one after another:

1. Install latest orangefox 11.1_4/twrp 3.7 and try again

2. Error with restoring firmware - extracttarfork() process ended with error=255

3. How to recover IMEI lost due to above error - extracttarfork() process ended with error=255

___________________________________________________________________________________________________________________________________

Unable to flash rom due to device mismatch,i.e, raphael file on raphaelin​

___________________________________________________________________________________________________________________________________

Simply use latest orangefox recovery 11.1_4. No need to edit and rename zip file meant for raphael device to raphaelin or vice versa for compatibility. Orangefox can flash ignoring the device name difference.

EXTRAS

___________________________________________________________________________________________________________________________________

Best Gcam for Redmi K20 Pro​

___________________________________________________________________________________________________________________________________

Personally I found MGC gcam by BSG, LMC 8.4, Burial gcam and ultracvm to be the best for our device. BSG gcam gives best details and results whereas LMC and burial are very stable and developed very well for our device.

They have device specific xml files for k20 pro as well.

You can find these gcam on the following website and rest like LMC and burial through telegram photography channel linked at bottom.

Google Camera Ports Download

Modified Google Camera ports (Pixel Camera) by BSG, Arnova8G2, BigKaka, Shamim, and others. Download hub for GCam ports.

www.celsoazevedo.com

___________________________________________________________________________________________________________________________________

Use ADB Push to copy files to device by a simple right click(No commandline needed)

_________________________________________________________________​

You can simply right click any file on your Computer to send to your phone via adb push commands(without needing to type commands)

This makes file transfers significantly faster -especially when you have a large number of small files. MTP is a pain to use. This helps me transfer 100 gb of files in less than 40minutes whereas mtp transfer will take over 4 hours.

1. Install Minimal adb and fastboot from this thread.

2. Copy the following code and paste it into a new .txt file on pc, save it but change extension to .reg. Double click the file to install the reg entry.

3. Edit the path to adb.exe file in below code if it is not installed in same location. Create a folder named 'ADBPush' in base directory of your internal storage on your phone using a file manager. Otherwise the script wont work. You can use any folder name- create the folder in your mobile and change the below code accordingly.

4. Enable developer options and enable usb debugging on your mobile, accept the request for usb debugging access on your phone when you run this adb command for the first time.

5. You can do this through wireless adb as well but first, you must use the command 'adb connect 192.168.xxx' to connect adb wirelessly first. Replace ip address with your phones current ip adresss.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\ADB Push to Phone]

[HKEY_CLASSES_ROOT\*\shell\ADB Push to Phone\command]
@="C:\\Program Files (x86)\\Minimal ADB and Fastboot\\adb.exe push \"%1\" /sdcard/ADBPush/"

[HKEY_CLASSES_ROOT\Folder\shell\ADB Push to Phone]

[HKEY_CLASSES_ROOT\Folder\shell\ADB Push to Phone\command]
@="C:\\Program Files (x86)\\Minimal ADB and Fastboot\\adb.exe push \"%1\" /sdcard/ADBPush/"

Absolutely convenient and fast. You can push whole folders with the click of a button just like copy and paste.

___________________________________________________________________________________________________________________________________

___________________________________________________________________________________________________________________________________

I have added a few useful posts by other members you can use if you dont know how to do any of the above mentioned steps. Any doubts on performing above instructions can be clarifiedby using search featuer on xda/telegram groups

1. Simple guide to flashing on K20 Pro

Personally I use latest orangefox over twrp depending on android version as I have described above.

2. Guide to flashing custom roms, changing between miui and custom roms - Highly recommend to go through this guide as it explains a lot of basic stuff for beginners.

3. Bootloader unlock, twrp, root instructions and rom links

4. My guide to pass safetynet, hide root access on any rom working upto May 2023