General [TWRP] Xiaomi 12

Search This thread

NOSS8

Recognized Contributor
fastboot flash recovery xxx.img is not correct.
the command is: fastboot flash recovery_ab xxx.img

A question: why the twrp version jumped from from 3.x directly to 5.x?
This command is for REC twrp for BOOT it remains
CMD=fastboot boot recovery twrp.img
Powershell=./fastboot boot recovery twrp.img
Then use the twrp
go to Advanced > Flash Current TWRP

MUST READ SKKK
All IMG files are forbidden to be flashed to the BOOT partition !!!!!!

first:Unzip the zip to get the img file.

[BOOT]:
1.Use 'fastboot boot rec.img' to temporarily boot into TWRP !!!
2.VAB device: Advanced - flash into the current TWRP / install recovery ramdisk

[REC]:
Flash with TWRP.
 
Last edited:

NOSS8

Recognized Contributor
It is not official version of Twrp. It is under the development
Works very well
https://forum.xda-developers.com/t/shared-twrp-by-skkk.4467233/

Create a fastboot command like this
@Echo off
cd %~dp0
set fastboot=bin\windows\fastboot.exe
if not exist %fastboot% echo %fastboot% not found. & exit /B 1
echo Waiting for device...
set device=unknown
for /f "tokens=2" %%D in ('%fastboot% %* getvar product 2^>^&1 ^| findstr /l /b /c:"product:"') do set device=%%D
if "%device%" neq "zeus" echo This package is for "zeus" devices; this is a "%device%". & exit /B 1

echo You are going to wipe your data and internal storage.
echo It will delete all your files and photos stored on internal storage.
set /p choice=Do you agree? (Y/N)
if /i "%choice%" neq "y" exit /B 0

echo ##################################################################
echo Please wait. The device will reboot when installation is finished.
echo ##################################################################
%fastboot% %* set_active a
%fastboot% %* flash vm-bootsys_a images\vm-bootsys.img
%fastboot% %* flash vm-bootsys_b images\vm-bootsys.img
%fastboot% %* flash dsp_a images\dsp.img
%fastboot% %* flash dsp_b images\dsp.img
%fastboot% %* flash xbl_config_a images\xbl_config.img
%fastboot% %* flash xbl_config_b images\xbl_config.img
%fastboot% %* flash boot_a images\boot.img
%fastboot% %* flash boot_b images\boot.img
%fastboot% %* flash aop_config_a images\aop_config.img
%fastboot% %* flash aop_config_b images\aop_config.img
%fastboot% %* flash modem_a images\modem.img
%fastboot% %* flash modem_b images\modem.img
%fastboot% %* flash vbmeta_system_a images\vbmeta_system.img
%fastboot% %* flash vbmeta_system_b images\vbmeta_system.img
%fastboot% %* flash xbl_ramdump_a images\xbl_ramdump.img
%fastboot% %* flash xbl_ramdump_b images\xbl_ramdump.img
%fastboot% %* flash tz_a images\tz.img
%fastboot% %* flash tz_b images\tz.img
%fastboot% %* flash vbmeta_a images\vbmeta.img
%fastboot% %* flash vbmeta_b images\vbmeta.img
%fastboot% %* flash recovery_a images\recovery.img
%fastboot% %* flash recovery_b images\recovery.img
%fastboot% %* flash uefi_a images\uefi.img
%fastboot% %* flash uefi_b images\uefi.img
%fastboot% %* flash bluetooth_a images\bluetooth.img
%fastboot% %* flash bluetooth_b images\bluetooth.img
%fastboot% %* flash abl_a images\abl.img
%fastboot% %* flash abl_b images\abl.img
%fastboot% %* flash cpucp_a images\cpucp.img
%fastboot% %* flash cpucp_b images\cpucp.img
%fastboot% %* flash dtbo_a images\dtbo.img
%fastboot% %* flash dtbo_b images\dtbo.img
%fastboot% %* flash featenabler_a images\featenabler.img
%fastboot% %* flash featenabler_b images\featenabler.img
%fastboot% %* flash vendor_boot_a images\vendor_boot.img
%fastboot% %* flash vendor_boot_b images\vendor_boot.img
%fastboot% %* flash keymaster_a images\keymaster.img
%fastboot% %* flash keymaster_b images\keymaster.img
%fastboot% %* flash uefisecapp_a images\uefisecapp.img
%fastboot% %* flash uefisecapp_b images\uefisecapp.img
%fastboot% %* flash qupfw_a images\qupfw.img
%fastboot% %* flash qupfw_b images\qupfw.img
%fastboot% %* flash xbl_a images\xbl.img
%fastboot% %* flash xbl_b images\xbl.img
%fastboot% %* flash devcfg_a images\devcfg.img
%fastboot% %* flash devcfg_b images\devcfg.img
%fastboot% %* flash hyp_a images\hyp.img
%fastboot% %* flash hyp_b images\hyp.img
%fastboot% %* flash imagefv_a images\imagefv.img
%fastboot% %* flash imagefv_b images\imagefv.img
%fastboot% %* flash shrm_a images\shrm.img
%fastboot% %* flash shrm_b images\shrm.img
%fastboot% %* flash aop_a images\aop.img
%fastboot% %* flash aop_b images\aop.img
%fastboot% %* flash cust images\cust.img
%fastboot% %* flash super images\super.img
%fastboot% %* erase metadata
%fastboot% %* erase userdata
%fastboot% %* set_active a
%fastboot% %* reboot
 
  • Like
Reactions: dtosun

Benoni1

Senior Member
Mar 2, 2015
131
14
Czech
Nejde mi nainstalovat TWRP. Vše dělám podle návodu. Příkazový řádek hlásí, že příkaz je špatný. Mám Rom EU. K tomu používám fasboot boot TWRP.img. To není možné

I can't install TWRP. I do everything according to the instructions. The command prompt says the command is wrong. I have Rom EU. I use fasboot to boot TWRP.img. This is not possible

As a "unique" courtesy, I have translated your post in this thread and because it was not spam.
Please be respectful and observe XDA rule #4 for all future posts.

Regards - Sib64 - Moderator
 
Last edited by a moderator:

Top Liked Posts