[Redmi K50i / Note 11T Pro (+) / Poco X4 GT [xaga]] D0CT0RFATE:
View attachment 5959707

TWRP is Free Software​

/*Your warranty is now void.
*
* I am not responsible for bricked devices,
* thermonuclear war, or you getting fired because the alarm app failed.
* Please do some research if you have any concerns about features included in this Recovery
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you. */

TWRP compatibility with Stock Kernel version of your ROM:

​

The Android-12 ROMs (both miui and custom roms) generally have kernel version 5.10.66. (except some roms like Indian region miui 13.0.8 -- which comes with kernel version 5.10.81). In this guide, we will be dividing these A12 ROMs into 2 groups - older A12 ROMs and newer A12 ROMs. Although both older and newer A12 ROMs ship with kernel version 5.10.66, the compatibile TWRP for these 2 groups is different. More details on this have been provided further in the guide.

The Android-13 ROMs (both miui and custom roms) generally have kernel version 5.10.101.

Starting from the 15th May DEV build of miui (miui_XAGA_V14.0.23.5.15.DEV_79033ee593_13.0.zip), all A13 builds have switched to kernel version 5.10.136

The compatibility of various twrp builds available for XAGA, with the different STOCK kernel versions of ROMs, is as follows:

*** Newer A12 ROMs like miui Indian 13.0.6, 13.0.7, taiwan 13.0.5, global 13 -- all of them (despite having stock kernel version 5.10.66) and miui Indian 13.0.8 (which ships with stock kernel version 5.10.81) -- they won't work with twrp.wbs.66, as it has old dtb.Hence for ROMs with kernel version 5.10.66, first flash twrp.wbs.66. Then if you find that you can't boot into system after flashing the .66 twrp (which would mean that you're very likely on a newer A12 rom), flash the twrp.rkspz.81 instead for any such A12 ROM.

How to know if you're on an older or a newer A12 ROM?​

Unfortunately, there is no direct way of telling that. So you can either try to know that from common public knowledge, like maybe ask in telegram groups if your A12 build is an older one or a newer one. OR you can go for trial and error method by first trying the twrp.wbs.66. If you're able to boot into system after flashing that TWRP, it would imply that you're on an older A12 build. On the other hand, if you're unable to boot into system after flashing the .66 TWRP, it would imply that you're on a newer A12 build. And hence you'd need to use the .81 TWRP. Once you do that, you'll be able to boot into system again successfully.

(And later you could also consider sharing the conclusions you make from your experience, in the groups as well, for improving the common public knowledge, for the sake of others.)

TWRP compatibility with OSS Kernel (like RealKing and Pandora) version of your rom:

​

The TWRP build compatible with your rom

does not depend on the version of OSS kernels

which you might want to flash in your XAGA.

It only depends upon the stock kernel version that the rom (in which you want to flash these kernels) originally comes with.

(This applies to both miui and custom roms.)

Hence, the compatible TWRP for your rom

remains same even after flashing any 3rd party OSS kernel, irrespective of the version of that OSS kernel

. In other words, you just need to match your TWRP version with the version of the stock kernel of your rom, using the table above.

For example, if you flash a 5.10.66 OSS kernel (like the RealKing 1.0 or 1.5, for example) or a 5.10.149 OSS kernel (like the pandora beta9, for example) - in a rom which comes with stock kernel version 5.10.81, the compatible TWRP still remains twrp.rkpsz.81. Similarly, if you flash any of these OSS kernels in a rom which comes with stock kernel version 5.10.101, the compatible twrp still remains twrp.wbs.101.

🚫❗⚠️ Lethal Warning: Flashing twrp.wbs.66 in A13 roms leads to guaranteed hard brick (hard brick = can't boot into system, and recovery and fastboot partitions are inaccessible too. Need to visit service centres for fix.)

Steps to flash TWRP:

​

• Open the platform tools folder (containing adb and fastboot) in your PC. Copy-paste the twrp img file that you have downloaded, inside this platform tools folder (which itself has to be present anywhere in Local Disk C) with admin rights.

• Open a cmd/powershell window over here with admin rights. (Hold shift key and then press right click, to get the option)

• Connect your phone to PC. (Hereafter, we will presume that you have kept your phone connected to the pc, throughout the tutorial.)

• Reboot the phone into bootloader {Power off the phone. As soon as screen goes black, hold only the volume down button. Fastboot mode would be entered}.

• Execute the following command in cmd/poweshell:

fastboot devices

Your device ID should show up. (This step is just to confirm if your device is being recognised as connected to pc in fastboot mode or not.)

• Next, Execute the following command:

fastboot flash vendor_boot <twrpbuild>.img

Twrp will now get flashed in the vendor_boot partition (in the same slot a or slot b in which your current rom is installed). It will take about 3-5 seconds.

• Next, Execute the following command:

fastboot reboot

As soon as screen goes black, hold only the volume up button, until device boots into TWRP recovery.

🚫❗⚠️ Lethal Warning: Don't use the command "fastboot reboot recovery". It has been reported by some users to cause hard brick (hard brick = can't boot into system, and recovery and fastboot partitions are inaccessible. Need to visit service centre for fix.)

Credits

* TeamWin - for TWRP

* All our testers - for your patience and help

Steps to change language of TWRP from Chinese to English

​

Change language of twrp from Chinese to English with the help of the below image tutorial:

Step 1

Step 2

Steps 3 and 4

• Now your TWRP is ready to use. You can safely reboot your device.

TWRP Device-Tree:- https://github.com/TWRP-Device-Tree-for-Dimensity/device_xiaomi_xaga-TWRP

Download link:- TWRP for XAGA

Telegram channel:- XAGA Community