Redmi K20 Pro [MIUI 11 11.0.5.0 | 10.4.6.0 | 12.1.16 ,Unlock Bootloader,TWRP,ROOT]

Search This thread

madsponge26

Senior Member
Jun 30, 2011
3,236
3,087
Pilipinas
Redmi K20 Pro
[Raphael]​

WARNING: Before attempting to root your device, do note that by unlocking your bootloader and modifying your device with root, ROMs, etc... you are NOT risking voiding your warranty! I am NOT responsible for what you do to your device either, so follow these instructions at your own risk. Make sure you know what you're doing, it's best to understand the process rather than just copy and paste commands and such.

Drivers
Mi Flash
Minimal ADB and Fastboot
Unlock Bootloader

Unlock Bootloader
Unlock here
*AMD Ryzen System has a issues in Unlocking Bootloader try another PC (Intel System)

TWRP Recovery
TWRP
TWRP auto install
Unofficial TWRP 3.3.1 Recovery - RU and Eng
Unofficial TWRP 3.3.1 Recovery @nikk3d - Multilingual
Unofficial Pitch Black Recovery @nikk3d
OrangeFox Recovery Official R10
TWRP Recovery for Android Q
/ Installation
Root
Magisk Stable
Magisk Manager

Firmwares
China MIUI 11
9.9.9
9.9.6-9.9.9
9.10.8
11.0.2.0
11.0.3.0
11.0.1.0.
11.0.4.0
11.0.5.0
9.12.27

Global Stable
10.3.3.0 Fastboot
10.3.3.0 Recovery

Global Beta

China
V10.3.6.0.PFKCNXM Fastboot
V10.3.7.0.PFKCNXM Recovery
V10.3.7.0PFKCNXM Fastboot
V10.3.8.0.PFKCNXM Recovery
V10.3.8.0PFKCNXM Fastboot
V10.3.9.0PFKCNXM Recovery
V10.3.10.0PFKCNXM Recovery
V10.3.110.PFKCNXM Recovery
V10.3.12.0PFKCNXM Recovery
V10.3.14.0PFKCNXM Recovery
V10.3.16.0PFKCNXM Recovery
V10.4.4.0 RecoveryQFKCNXM
V10.4.4.6 RecoveryQFKCNXM


OTA
10.3.10.0 to 10.3.11.0
10.3.8.0 to 10.3.10.0
10.3.7.0 to 10.3.8.0
10.3.9.0 to 10.3.10.0

Beta
9.6.11
9.6.20
9.7.4
9.8.12
9.8.21
9.9.3

India
Stable Firmwares
10.3.3.0 Fastboot
10.3.5.0
10.4.7.0 Android Q
10.4.8.0 Android Q

Beta

Global

EU
9.6.13
9.6.20
10.3.9.0
10.3.10.0
10.3.11.0
9.6.27
[URL="https://sourceforge.net/projects/xiaomi-eu-multilang-miui-roms/files/xiaomi.eu/MIUI-STABLE-RELEASES/MIUIv10/xiaomi.eu_multi_HMK20ProMI9TPro_V10.3.12.0.PFKCNXM_v10-9.zip/download"]10.3.12.0
[/URL]
9.7.4
10.3.14.0
10.3.15.0
9.7.11
9.7.18
9.7.19
10.3.16
9.7.27
9.8.1
EU Android Q 9.8.8
9.8.12
9.8.15
9.8.22
10.3.17
EU Android Q 9.8.29
EU Android Q 10.4.4.0
9.9.3
9.9.6
10.3.30
EU Android Q 10.4.6.0
MIUI 11 9.9.26
MIUI 11 9.10.10
MIUI 11 11.0.2.0
MIUI 11 9.10.24
MIUI 11 9.11.7
MIUI 11 9.11.14
MIUI 11 9.11.21
MIUI 11 9.11.22
MIUI 11 9.11.28
MIUI 11 9.12.5
MIUI 11 9.12.12
MIUI 11 9.12.27
MIUI 11 20.1.16

Global EEA
10.3.1.0 PFKEUXM Fastboot
10.3.1.0 PFKEUXM Recovery
10.3.3.0 Recovery


Mi-Room
9.6.20
9.6.27
9.7.4
9.8.1
9.8.22 Android Q
9.8.29 Android Q
9.9.6 Android Q

MiuiMix
10.3.17.0

Mi-Italia
10.3.16.0

MIUI MS
9.7.18.9
9.7.25.9
9.8.1

Android Q 9.8.8
*Back up everything and Flash via TWRP Recovery
*For Raphael only (China ROM)
9.8.8 Q
9.8.8-9.8.29 Q
9.8.29 Q
MIUI 11 9.9.24
MIUI 11 9.9.25
[URL="https://hugeota.d.miui.com/9.9.26/miui_RAPHAEL_9.9.26_c74ffeeec0_10.0.zip"]MIUI 11 9.9.26
[/URL]

Revolution OS
9.9.7
Google service error flash this
9.9.21 Q
9.9.21 Pie

Android Q [Unlocked Bootloader]
Beta 1

TWRP RESET Password
If you forget the password go to TWRP Recovery and Flash.


Removing Bloatwares in Locked/Unlocked Bootloader

-Enable Developer Options and click USB debugging

1.Open and click run as administrator XiaomiADBfastboottools.exe
2.Click Debloater
3.Check your phone (Allow)
4.Select the system apps that want you to delete
5. Wait for the process....
6.After finished.. click the Reboot into System
 

Attachments

  • Xiaomi_ADB_Fastboot_Tools_2.3.1.zip
    1.4 MB · Views: 15,403
Last edited:

madsponge26

Senior Member
Jun 30, 2011
3,236
3,087
Pilipinas
The Ultimate Guide for Redmi K20 Pro [Raphael]

Fake Global ROM to Chinese ROM to Global ROM/EU/Mi-Room


ATTENTION!*All that you will do with the phone is guided by this guide - it lies in the area of ​​your personal responsibility only.*Neither I nor other members of the forum, not the administration of the forum are responsible.*

If you do not understand something and the written guide below - contact the LS to knowledgeable colleagues, as I did!*Hide created for the Chinese version of the phone K20 Pro - Global ROM.*(for India it will not work!)*
I will explain in stages what to do, giving my comments in my simple language: what?*What for?*Why?*Don't be scared that there are a lot of points - I tried to chew everything up.
So what do we have?*
• K20 Pro - Global ROM (Installed by the Chinese firmware, with no updates, poor translation, with not working Gpay)*
• You must create an official mi account and link the device to it.*
What do we need?:*
• Installation Recovery - Orange fox (Advanced replacement of standard Recovery, and installation of any firmware) - Wildly necessary thing!*
• Installing the firmware MI Room 9.7.4*
• Proper operation of the GPAY through the patch*
Introduction)*
So, you got a phone from China.*What do you have in your hands?*This is the device on which the Chinese put the left firmware and at the same time did not unlock the bootloader officially - which is not compatible with the transition to any, really good firmware.*

Before we begin - the most important thing!*(further quote from the forum):

ATTENTION!*CHINESE VERSION REDMI K20 PRO CAN BE BLOCKED ONLY ON THE CHINESE FIRMWARE!*Before carrying out any operation, read the materials that are referenced in the header themes, check Search by topic, and if not found the answer to your question, or do not understand something, ask more experienced users.*
Do you understand?*Now read again 20 and memorize this phrase!*


INSTALLATION OF THE CHINESE OFFICIAL FIRMWARE AND LOCKER DOWNLOAD AND UNLOCK!*

What for?*Your phone needs to be unlocked officially.*To do this, you must put the official firmware and file for unlocking officially.*
What is needed (all in the header):*

•Firmware file - *10.3.6.0 China Fastboot
• Program MiFlash 2018.11.15.0 (we need administrator rights) - a program to install Fastboot-type firmware and lock the phone loader.*
• Driver for computer - ADB Driver Lite
• Program - miflash_unlock*
• Phone*
• Type C Cable*

1) Download all of the above and check that everything downloaded*in the right “size”.*
2) Install MiFlash 2018.11.15.0*on the C drive:
3) Go to MiFlash 2018.11.15.0 - it will offer to install the drivers.*Do not hesitate to install everything - exit the program!*
4) Install ADB Driver Lite (by default it is set by MiFlash but will not be worse if you additionally install the latest driver from the header)
5) - CORRECTLY unpacking the firmware 10.3.6.0 China Fastboot!*By default, you download it with the extension .tgz!*The file you downloaded will be called raphael_images_V10.3.6.0.PFKCNXM_20190516.0000.00_9.0_cn_ed862b8182.tgz*
- Unzip this .tgz file and get a file with the .tar extension.*The full name will be - raphael_images_V10.3.6.0.PFKCNXM_20190516.0000.00_9.0_cn_ed862b8182.tar.*
- Unzip this .tar file and get a folder named raphael_images_V10.3.6.0.PFKCNXM_20190516.0000.00_9.0_cn.*Here we will work with this folder in the future!*You need to move it to drive C:!*It is important!*
6) Switch the phone to debug mode via USB.*(I think there will be no problems here)
7) Transfer the phone to FASTBOOT mode.*Turn off the device.*Clamp the power button + volume rocker down.*If there is a hare and the inscription Fastboot then everything is OK!*
8) In MiFlash, press the Select button, specify the path to the folder with the firmware raphael_images_V10.3.6.0.PFKCNXM_20190516.0000.00_9.0_cn and click ok.*
9) Something like this should appear in the line:*С: \ raphael_images_V10.3.6.0.PFKCNXM_20190516.0000.00_9.0_cn
10) Put a clean all and lock checkbox at the bottom.*This parameter means that the*
phone will be erased while all data is erased, and the bootloader is locked.*(only for the Chinese version of the phone)*
11) We connect the phone (in fastboot mode) to the computer through the official drawstring.*And without any USB hubs and adapters!*
12) Press the Refresh button.
13) If everything is correct then a line should appear with the id of the phone and the status ready.*
14) So, the phone is recognized.*The path to the folder with the firmware is specified.*Galka clean all and lock costs.*Press the flash button.*
15) The phone starts to sew!*Do not unplug the power cord!*don't touch anything at all.*Do not breathe!*The firmware time is about 10 minutes.*
16) At the end of the firmware, complete will appear in the line with the execution status and the phone will restart (up to 10 minutes) to the initial welcome screen.*Disconnect the phone.*
17) Hooray you flashed to the Chinese firmware and officially blocked the phone.*Let's start the activation and application for unlocking.
18) The first thing that will meet you is the screen in Chinese.*With two button in Chinese.*Push first you are asked to enter something ... This is the password from your mi account.*We enter.*
19) Tap on the second button connect to the Wi-Fi or skip.*
20) Choose the English language.*Customize your phone.*
21) Transfer the phone to the developer mode.*In the settings of the developer, we go into the unlock status (I don’t remember exactly how to speak English).*We see the closed lock, below we see the button.*Click on it!*And we will register the phone for the official unlock (Wi-Fi should be turned off and mobile networks on).*
22) Next, go to the mi account and check that your mobile phone is tied.*Are you convinced?*I recommend to look at the corresponding topic on the forum with the video.
23) On the PC, run miflash_unlock.*Log in to your mi account.*The phone is transferred to the Fastboot mode (point 7) and connected to the computer.*Press the unlock button.*At the same time, we confirm a bunch of times that we are sure that we want to do this.*All your data will be destroyed.*
24) The PC starts to unlock and at some point gives a message that the unlock failed and should be tried again after 168 hours.
25) Congratulations, you activated the counter before unlocking.*You walk with the phone 7 days on the Chinese firmware.*Is it hard?*Well no.*You can take the apk with Google services from the page on this forum and install what you need.*
26) It's been 168 hours, and you're ready to unlock.*
27) But before you do ... Update your phone over the air to the latest version - nowhere on the forum it is not written (I have not seen) but this is important.*I will explain later why!*Remember this item.*
28) Start and repeat paragraph 23. And lo and behold!*The unlock process has begun.*And at the end there is an inscription that the phone is unlocked.
29) Now, when you boot your phone, you should see Unlocked.*Check out what it is!*
30) Configure the phone again.*Turn on USB debugging mode.*
31) Further, in my opinion the most dreary, because the forum has a lot of conflicting information.*I will tell you how I did.*But before continuing, I can say that since you have already received unlock, it is almost impossible to turn the phone around (but everything is possible)*
32) So, download three things:*
- TWRP-3.3.1*
- OrangeFox R10.0 Recovery*
- MI Room 9.7.4 firmware

33) Everything that you downloaded in the zip archives.
34) Unzip -TWRP-3.3.1 to drive C. Transfer the phone to Fastboot (item 7) and connect it to the computer.*We find in the unpacked folder TWRP file with the extension .bat.*in different versions of TWRP called differently.*I called Flash_twrp.bat*
35) And before*proceeding, I’ll*remind you about clause 27).*The fact is that I could not install TWRP without updating over the air.*Therefore, you must first install the update.*And on the firmware 10.3.6.0 China Fastboot.*- It will not work to put TWRP and you will have to do a lot again*
36) Start and get the menu in my Russian language, where we select the auto installation (1).*After a couple of seconds, your phone should reboot into TWRP recovery.*There we choose the language if asked.*
37) And
so, we are in the main menu of TWRP.*We need to take a series of actions*(in a strict order)
38) Go to the Wipe point and select FORMAT DATA -> svayp -> type yes.*The formatting process takes a couple of seconds.*What does this item do in my understanding?*He decrypts the data on the phone, which is necessary to throw on the phone firmware and Orange fox.*
39) Exit the main menu by clicking REBOOT Recovery.*The phone should reboot into the main menu again.*And on the PC, it should be defined as a phone with Internal storage.*Go to the Internal storage on the PC.*See the TWRP folder?*If yes, then everything is OK!*
40) On the phone, go to the Wipe point and select Advanced wipe -> svayp -> select all the items*except System and OTG* svayp
41) Exit the main menu, press REBOOT -> Recovery.*The phone should reboot into the main menu again.*
42) On the PC, go to the phone -> Internal storage and next to the TWRP folder, throw the downloaded OrangeFox R10.0 recovery directly into the zip archive.*
43) On the phone, go to the Install item and see our Orange Fox.*Choose it.*AND THERE IS THE MOST IMPORTANT!*He will ask you to install two checkboxes before installation: one of them Verification of the ZIP signature (in English) and so this checkbox must be removed, otherwise the error will be.*We start the installation.*Your phone must reboot into Orange FOX.*
44) So what is Orange Fox?*This same TWRP is simply much more convenient and stable.*
45) On the PC, go to the phone -> Internal storage and next to the TWRP folder, throw the downloaded firmware to the worlds.
46) In Orange Fox, select this firmware, also remove the checkmark ZIP signature check (in English).*And start the process of installing the firmware.*
47) Hooray you got the best, in my opinion, firmware)*
48) Disconnect from the computer.*Customize your phone.*
49) Installing a patch for Gpay is easy.*Straight from the phone, download the patch file.*
50) Put the phone in orange fox recovery mode.*Turn off the device.*We press the power button + volume rocker UP (not to be confused with the power button + volume rocker DOWN for Fastboot boot mode)*
51) In the Downloads folder we see our patch and install (also remove the Check Signature ZIP checkbox).*
52) Congratulations!

Thanks to
helpbabay911
Mysttorent
 
Last edited:

madsponge26

Senior Member
Jun 30, 2011
3,236
3,087
Pilipinas
Viper4Android + DDPlus and Google Pay Fix for Redmi K20 Pro

Google Pay Fix

•TWRP Recovery from our site
•Do not install the patch simultaneously with other patches or firmware.
•Install the patch only on top of the installed firmware. If you have made a date wipe, first launch the firmware, perform the initial setup, and then install the patch itself.
•Before installing the patch, make sure that the Data section is mounted (usually it is mounted by default on all TWRPs).

Download

*Credits to Mi-Room RU


Viper4android + DDPlus = ☠️☠️


1.Install Audio Modification Library (AML) and Audio Compatible Patch (ACP) via Magisk Repo and reboot.
2.Install DDPlus via Magisk and reboot.
3.Install Viper4Android via Magisk and reboot. (materialized).
4.selinux changer (choose permissive if not working in enforcing).
5.Profiles

Profiles with IRS 1

Profiles with IRS 2

Profiles

DDPlus

AML (You can download from Magisk Repo)
ACP (You can download from Magisk Repo)
Viper4android (You can download from Magisk Repo)
 
Last edited:

melmarPH

Senior Member
Feb 2, 2016
325
96
Caloocan City

Hi. I really appreciate the post.. just one question though? What are the firmwares for? Coz if I am not mistaken, to be able to install twrp and root, all I need is to unlock the bootloader then flash the twrp.img. Please enlighten me.. thank you..

---------- Post added at 07:35 PM ---------- Previous post was at 07:33 PM ----------

Also, will bootloader unlocking and installing twrp wipe everything I have in my internal storage?
 

Robbo.5000

Senior Member
Hi. I really appreciate the post.. just one question though? What are the firmwares for? Coz if I am not mistaken, to be able to install twrp and root, all I need is to unlock the bootloader then flash the twrp.img. Please enlighten me.. thank you..

---------- Post added at 07:35 PM ---------- Previous post was at 07:33 PM ----------

Also, will bootloader unlocking and installing twrp wipe everything I have in my internal storage?
The firmwares are the stock roms, should you need to recover the phone. The fastboot ROM is the absolute failsafe and flashes almost all partitions. This can be updated using scripts within the package or using the Mi flash tool. The recovery roms will just update the system partition and flashed using recovery, either stock or TWRP or any other recovery.
Installing TWRP won't touch anything on the phone except the recovery partition. However bootloader unlocking will perform a factory reset. In theory the internal storage should remain untouched, but best to back it up.
 

melmarPH

Senior Member
Feb 2, 2016
325
96
Caloocan City
The firmwares are the stock roms, should you need to recover the phone. The fastboot ROM is the absolute failsafe and flashes almost all partitions. This can be updated using scripts within the package or using the Mi flash tool. The recovery roms will just update the system partition and flashed using recovery, either stock or TWRP or any other recovery.
Installing TWRP won't touch anything on the phone except the recovery partition. However bootloader unlocking will perform a factory reset. In theory the internal storage should remain untouched, but best to back it up.

That's crystal clear. Thank you so much..
 

iXanza

Inactive Recognized Contributor
Apr 26, 2011
3,797
2,412
Redmi K20 Pro
Google Pixel 6 Pro
  • Like
Reactions: rhtrex

Top Liked Posts

  • There are no posts matching your filters.
  • 90
    Redmi K20 Pro
    [Raphael]​

    WARNING: Before attempting to root your device, do note that by unlocking your bootloader and modifying your device with root, ROMs, etc... you are NOT risking voiding your warranty! I am NOT responsible for what you do to your device either, so follow these instructions at your own risk. Make sure you know what you're doing, it's best to understand the process rather than just copy and paste commands and such.

    Drivers
    Mi Flash
    Minimal ADB and Fastboot
    Unlock Bootloader

    Unlock Bootloader
    Unlock here
    *AMD Ryzen System has a issues in Unlocking Bootloader try another PC (Intel System)

    TWRP Recovery
    TWRP
    TWRP auto install
    Unofficial TWRP 3.3.1 Recovery - RU and Eng
    Unofficial TWRP 3.3.1 Recovery @nikk3d - Multilingual
    Unofficial Pitch Black Recovery @nikk3d
    OrangeFox Recovery Official R10
    TWRP Recovery for Android Q
    / Installation
    Root
    Magisk Stable
    Magisk Manager

    Firmwares
    China MIUI 11
    9.9.9
    9.9.6-9.9.9
    9.10.8
    11.0.2.0
    11.0.3.0
    11.0.1.0.
    11.0.4.0
    11.0.5.0
    9.12.27

    Global Stable
    10.3.3.0 Fastboot
    10.3.3.0 Recovery

    Global Beta

    China
    V10.3.6.0.PFKCNXM Fastboot
    V10.3.7.0.PFKCNXM Recovery
    V10.3.7.0PFKCNXM Fastboot
    V10.3.8.0.PFKCNXM Recovery
    V10.3.8.0PFKCNXM Fastboot
    V10.3.9.0PFKCNXM Recovery
    V10.3.10.0PFKCNXM Recovery
    V10.3.110.PFKCNXM Recovery
    V10.3.12.0PFKCNXM Recovery
    V10.3.14.0PFKCNXM Recovery
    V10.3.16.0PFKCNXM Recovery
    V10.4.4.0 RecoveryQFKCNXM
    V10.4.4.6 RecoveryQFKCNXM


    OTA
    10.3.10.0 to 10.3.11.0
    10.3.8.0 to 10.3.10.0
    10.3.7.0 to 10.3.8.0
    10.3.9.0 to 10.3.10.0

    Beta
    9.6.11
    9.6.20
    9.7.4
    9.8.12
    9.8.21
    9.9.3

    India
    Stable Firmwares
    10.3.3.0 Fastboot
    10.3.5.0
    10.4.7.0 Android Q
    10.4.8.0 Android Q

    Beta

    Global

    EU
    9.6.13
    9.6.20
    10.3.9.0
    10.3.10.0
    10.3.11.0
    9.6.27
    [URL="https://sourceforge.net/projects/xiaomi-eu-multilang-miui-roms/files/xiaomi.eu/MIUI-STABLE-RELEASES/MIUIv10/xiaomi.eu_multi_HMK20ProMI9TPro_V10.3.12.0.PFKCNXM_v10-9.zip/download"]10.3.12.0
    [/URL]
    9.7.4
    10.3.14.0
    10.3.15.0
    9.7.11
    9.7.18
    9.7.19
    10.3.16
    9.7.27
    9.8.1
    EU Android Q 9.8.8
    9.8.12
    9.8.15
    9.8.22
    10.3.17
    EU Android Q 9.8.29
    EU Android Q 10.4.4.0
    9.9.3
    9.9.6
    10.3.30
    EU Android Q 10.4.6.0
    MIUI 11 9.9.26
    MIUI 11 9.10.10
    MIUI 11 11.0.2.0
    MIUI 11 9.10.24
    MIUI 11 9.11.7
    MIUI 11 9.11.14
    MIUI 11 9.11.21
    MIUI 11 9.11.22
    MIUI 11 9.11.28
    MIUI 11 9.12.5
    MIUI 11 9.12.12
    MIUI 11 9.12.27
    MIUI 11 20.1.16

    Global EEA
    10.3.1.0 PFKEUXM Fastboot
    10.3.1.0 PFKEUXM Recovery
    10.3.3.0 Recovery


    Mi-Room
    9.6.20
    9.6.27
    9.7.4
    9.8.1
    9.8.22 Android Q
    9.8.29 Android Q
    9.9.6 Android Q

    MiuiMix
    10.3.17.0

    Mi-Italia
    10.3.16.0

    MIUI MS
    9.7.18.9
    9.7.25.9
    9.8.1

    Android Q 9.8.8
    *Back up everything and Flash via TWRP Recovery
    *For Raphael only (China ROM)
    9.8.8 Q
    9.8.8-9.8.29 Q
    9.8.29 Q
    MIUI 11 9.9.24
    MIUI 11 9.9.25
    [URL="https://hugeota.d.miui.com/9.9.26/miui_RAPHAEL_9.9.26_c74ffeeec0_10.0.zip"]MIUI 11 9.9.26
    [/URL]

    Revolution OS
    9.9.7
    Google service error flash this
    9.9.21 Q
    9.9.21 Pie

    Android Q [Unlocked Bootloader]
    Beta 1

    TWRP RESET Password
    If you forget the password go to TWRP Recovery and Flash.


    Removing Bloatwares in Locked/Unlocked Bootloader

    -Enable Developer Options and click USB debugging

    1.Open and click run as administrator XiaomiADBfastboottools.exe
    2.Click Debloater
    3.Check your phone (Allow)
    4.Select the system apps that want you to delete
    5. Wait for the process....
    6.After finished.. click the Reboot into System
    44
    The Ultimate Guide for Redmi K20 Pro [Raphael]

    Fake Global ROM to Chinese ROM to Global ROM/EU/Mi-Room


    ATTENTION!*All that you will do with the phone is guided by this guide - it lies in the area of ​​your personal responsibility only.*Neither I nor other members of the forum, not the administration of the forum are responsible.*

    If you do not understand something and the written guide below - contact the LS to knowledgeable colleagues, as I did!*Hide created for the Chinese version of the phone K20 Pro - Global ROM.*(for India it will not work!)*
    I will explain in stages what to do, giving my comments in my simple language: what?*What for?*Why?*Don't be scared that there are a lot of points - I tried to chew everything up.
    So what do we have?*
    • K20 Pro - Global ROM (Installed by the Chinese firmware, with no updates, poor translation, with not working Gpay)*
    • You must create an official mi account and link the device to it.*
    What do we need?:*
    • Installation Recovery - Orange fox (Advanced replacement of standard Recovery, and installation of any firmware) - Wildly necessary thing!*
    • Installing the firmware MI Room 9.7.4*
    • Proper operation of the GPAY through the patch*
    Introduction)*
    So, you got a phone from China.*What do you have in your hands?*This is the device on which the Chinese put the left firmware and at the same time did not unlock the bootloader officially - which is not compatible with the transition to any, really good firmware.*

    Before we begin - the most important thing!*(further quote from the forum):

    ATTENTION!*CHINESE VERSION REDMI K20 PRO CAN BE BLOCKED ONLY ON THE CHINESE FIRMWARE!*Before carrying out any operation, read the materials that are referenced in the header themes, check Search by topic, and if not found the answer to your question, or do not understand something, ask more experienced users.*
    Do you understand?*Now read again 20 and memorize this phrase!*


    INSTALLATION OF THE CHINESE OFFICIAL FIRMWARE AND LOCKER DOWNLOAD AND UNLOCK!*

    What for?*Your phone needs to be unlocked officially.*To do this, you must put the official firmware and file for unlocking officially.*
    What is needed (all in the header):*

    •Firmware file - *10.3.6.0 China Fastboot
    • Program MiFlash 2018.11.15.0 (we need administrator rights) - a program to install Fastboot-type firmware and lock the phone loader.*
    • Driver for computer - ADB Driver Lite
    • Program - miflash_unlock*
    • Phone*
    • Type C Cable*

    1) Download all of the above and check that everything downloaded*in the right “size”.*
    2) Install MiFlash 2018.11.15.0*on the C drive:
    3) Go to MiFlash 2018.11.15.0 - it will offer to install the drivers.*Do not hesitate to install everything - exit the program!*
    4) Install ADB Driver Lite (by default it is set by MiFlash but will not be worse if you additionally install the latest driver from the header)
    5) - CORRECTLY unpacking the firmware 10.3.6.0 China Fastboot!*By default, you download it with the extension .tgz!*The file you downloaded will be called raphael_images_V10.3.6.0.PFKCNXM_20190516.0000.00_9.0_cn_ed862b8182.tgz*
    - Unzip this .tgz file and get a file with the .tar extension.*The full name will be - raphael_images_V10.3.6.0.PFKCNXM_20190516.0000.00_9.0_cn_ed862b8182.tar.*
    - Unzip this .tar file and get a folder named raphael_images_V10.3.6.0.PFKCNXM_20190516.0000.00_9.0_cn.*Here we will work with this folder in the future!*You need to move it to drive C:!*It is important!*
    6) Switch the phone to debug mode via USB.*(I think there will be no problems here)
    7) Transfer the phone to FASTBOOT mode.*Turn off the device.*Clamp the power button + volume rocker down.*If there is a hare and the inscription Fastboot then everything is OK!*
    8) In MiFlash, press the Select button, specify the path to the folder with the firmware raphael_images_V10.3.6.0.PFKCNXM_20190516.0000.00_9.0_cn and click ok.*
    9) Something like this should appear in the line:*С: \ raphael_images_V10.3.6.0.PFKCNXM_20190516.0000.00_9.0_cn
    10) Put a clean all and lock checkbox at the bottom.*This parameter means that the*
    phone will be erased while all data is erased, and the bootloader is locked.*(only for the Chinese version of the phone)*
    11) We connect the phone (in fastboot mode) to the computer through the official drawstring.*And without any USB hubs and adapters!*
    12) Press the Refresh button.
    13) If everything is correct then a line should appear with the id of the phone and the status ready.*
    14) So, the phone is recognized.*The path to the folder with the firmware is specified.*Galka clean all and lock costs.*Press the flash button.*
    15) The phone starts to sew!*Do not unplug the power cord!*don't touch anything at all.*Do not breathe!*The firmware time is about 10 minutes.*
    16) At the end of the firmware, complete will appear in the line with the execution status and the phone will restart (up to 10 minutes) to the initial welcome screen.*Disconnect the phone.*
    17) Hooray you flashed to the Chinese firmware and officially blocked the phone.*Let's start the activation and application for unlocking.
    18) The first thing that will meet you is the screen in Chinese.*With two button in Chinese.*Push first you are asked to enter something ... This is the password from your mi account.*We enter.*
    19) Tap on the second button connect to the Wi-Fi or skip.*
    20) Choose the English language.*Customize your phone.*
    21) Transfer the phone to the developer mode.*In the settings of the developer, we go into the unlock status (I don’t remember exactly how to speak English).*We see the closed lock, below we see the button.*Click on it!*And we will register the phone for the official unlock (Wi-Fi should be turned off and mobile networks on).*
    22) Next, go to the mi account and check that your mobile phone is tied.*Are you convinced?*I recommend to look at the corresponding topic on the forum with the video.
    23) On the PC, run miflash_unlock.*Log in to your mi account.*The phone is transferred to the Fastboot mode (point 7) and connected to the computer.*Press the unlock button.*At the same time, we confirm a bunch of times that we are sure that we want to do this.*All your data will be destroyed.*
    24) The PC starts to unlock and at some point gives a message that the unlock failed and should be tried again after 168 hours.
    25) Congratulations, you activated the counter before unlocking.*You walk with the phone 7 days on the Chinese firmware.*Is it hard?*Well no.*You can take the apk with Google services from the page on this forum and install what you need.*
    26) It's been 168 hours, and you're ready to unlock.*
    27) But before you do ... Update your phone over the air to the latest version - nowhere on the forum it is not written (I have not seen) but this is important.*I will explain later why!*Remember this item.*
    28) Start and repeat paragraph 23. And lo and behold!*The unlock process has begun.*And at the end there is an inscription that the phone is unlocked.
    29) Now, when you boot your phone, you should see Unlocked.*Check out what it is!*
    30) Configure the phone again.*Turn on USB debugging mode.*
    31) Further, in my opinion the most dreary, because the forum has a lot of conflicting information.*I will tell you how I did.*But before continuing, I can say that since you have already received unlock, it is almost impossible to turn the phone around (but everything is possible)*
    32) So, download three things:*
    - TWRP-3.3.1*
    - OrangeFox R10.0 Recovery*
    - MI Room 9.7.4 firmware

    33) Everything that you downloaded in the zip archives.
    34) Unzip -TWRP-3.3.1 to drive C. Transfer the phone to Fastboot (item 7) and connect it to the computer.*We find in the unpacked folder TWRP file with the extension .bat.*in different versions of TWRP called differently.*I called Flash_twrp.bat*
    35) And before*proceeding, I’ll*remind you about clause 27).*The fact is that I could not install TWRP without updating over the air.*Therefore, you must first install the update.*And on the firmware 10.3.6.0 China Fastboot.*- It will not work to put TWRP and you will have to do a lot again*
    36) Start and get the menu in my Russian language, where we select the auto installation (1).*After a couple of seconds, your phone should reboot into TWRP recovery.*There we choose the language if asked.*
    37) And
    so, we are in the main menu of TWRP.*We need to take a series of actions*(in a strict order)
    38) Go to the Wipe point and select FORMAT DATA -> svayp -> type yes.*The formatting process takes a couple of seconds.*What does this item do in my understanding?*He decrypts the data on the phone, which is necessary to throw on the phone firmware and Orange fox.*
    39) Exit the main menu by clicking REBOOT Recovery.*The phone should reboot into the main menu again.*And on the PC, it should be defined as a phone with Internal storage.*Go to the Internal storage on the PC.*See the TWRP folder?*If yes, then everything is OK!*
    40) On the phone, go to the Wipe point and select Advanced wipe -> svayp -> select all the items*except System and OTG* svayp
    41) Exit the main menu, press REBOOT -> Recovery.*The phone should reboot into the main menu again.*
    42) On the PC, go to the phone -> Internal storage and next to the TWRP folder, throw the downloaded OrangeFox R10.0 recovery directly into the zip archive.*
    43) On the phone, go to the Install item and see our Orange Fox.*Choose it.*AND THERE IS THE MOST IMPORTANT!*He will ask you to install two checkboxes before installation: one of them Verification of the ZIP signature (in English) and so this checkbox must be removed, otherwise the error will be.*We start the installation.*Your phone must reboot into Orange FOX.*
    44) So what is Orange Fox?*This same TWRP is simply much more convenient and stable.*
    45) On the PC, go to the phone -> Internal storage and next to the TWRP folder, throw the downloaded firmware to the worlds.
    46) In Orange Fox, select this firmware, also remove the checkmark ZIP signature check (in English).*And start the process of installing the firmware.*
    47) Hooray you got the best, in my opinion, firmware)*
    48) Disconnect from the computer.*Customize your phone.*
    49) Installing a patch for Gpay is easy.*Straight from the phone, download the patch file.*
    50) Put the phone in orange fox recovery mode.*Turn off the device.*We press the power button + volume rocker UP (not to be confused with the power button + volume rocker DOWN for Fastboot boot mode)*
    51) In the Downloads folder we see our patch and install (also remove the Check Signature ZIP checkbox).*
    52) Congratulations!

    Thanks to
    helpbabay911
    Mysttorent
    29
    Viper4Android + DDPlus and Google Pay Fix for Redmi K20 Pro

    Google Pay Fix

    •TWRP Recovery from our site
    •Do not install the patch simultaneously with other patches or firmware.
    •Install the patch only on top of the installed firmware. If you have made a date wipe, first launch the firmware, perform the initial setup, and then install the patch itself.
    •Before installing the patch, make sure that the Data section is mounted (usually it is mounted by default on all TWRPs).

    Download

    *Credits to Mi-Room RU


    Viper4android + DDPlus = ☠️☠️


    1.Install Audio Modification Library (AML) and Audio Compatible Patch (ACP) via Magisk Repo and reboot.
    2.Install DDPlus via Magisk and reboot.
    3.Install Viper4Android via Magisk and reboot. (materialized).
    4.selinux changer (choose permissive if not working in enforcing).
    5.Profiles

    Profiles with IRS 1

    Profiles with IRS 2

    Profiles

    DDPlus

    AML (You can download from Magisk Repo)
    ACP (You can download from Magisk Repo)
    Viper4android (You can download from Magisk Repo)