TWRP unofficial build released for MIX 4


Thanks, did you transfer the file after full format in TWRP, it did you download it on the phone and not do a full format and just flash it and wipe after?
Full format only if you're actually on stock rom or weekly rom....
If you're on previous stable xiaomi.eu, just transfert the file on your phone and flash it via TWRP.
 
  • Like
Reactions: ipnface and Poney70
I currently trying to flash and I keep getting failure on the flash. Booted TWRP, formattted, pushed file.

Then
assert failed: update dynamic partitions
Updater process ended with ERROR:1

Then some more lines

Can help? Am I missing a setting in TWRP or something? I'm following all the instructions to the letter otherwise.
 
I have the exact same problems of the previous screenshots in this thread showing error 1 despite using all the latest files. Do I need to install the fastboot version first and then the TWRP version? Really stuck here and need the phone for tomorrow so any help or guidance greatly appreciated!!
 
just one question, which TWRP is the best or can be recommended


as there are three, but the last one, on 12 dec hasn't even have a mirror.
I used the fork by jjhitel twrp-3.5.2_11-20211007-odin-jjhitel.img. Installed v12.5.12 stable. Works like a charm.

But I checked just now that there is already a (official???) released by TeamWin thru their website TWRP for Xiaomi Mi Mix 4
 
So since today we have a working TWRP for the Xiaomi Mix 4!

They also released an official version. You might wanna check it out
 
  • Like
Reactions: katerpanne
Totally worth it a few days later. Viper4android doesn't work but JamesDSP is nearly as good.

Magisk stays on it and modules working fine. I reboot my phone every night, zero issues.

Phone finally feels like my own. AdAway does that to a person :)

Also the brightness is fixed, I moved this onto storage and installed with Magisk
 
Last edited:
Has anyone has a problem with telegram? I can't send pictures there. I read to format data, but I can't install TWRP, getting an error message that there's no such partition. (using stable XIaomi EU ROM

fastboot flash recovery twrp-3.5.2_11-20211007-odin-jjhitel.img
target reported max download size of 805306368 bytes
sending 'recovery' (196608 KB)...
OKAY [ 4.296s]
writing 'recovery'...
FAILED (remote: (recovery_a) No such partition)
finished. total time: 4.311s
 
If using android 11, you must boot (not flash) twrp via fastboot and install it within recovery itself, flashing img won't work. If you're on A12, no point using twrp that can't even decrypt data.
 
If using android 11, you must boot (not flash) twrp via fastboot and install it within recovery itself, flashing img won't work. If you're on A12, no point using twrp that can't even decrypt data.
Thanks, I figured it out. I only booted twrp. Format data, reboot TWRP, format one more time data and then flashed latest stable Xiaomi EU without a format data. Cheers!
 
  • Like
Reactions: katerpanne
Has anyone has a problem with telegram? I can't send pictures there. I read to format data, but I can't install TWRP, getting an error message that there's no such partition. (using stable XIaomi EU ROM

fastboot flash recovery twrp-3.5.2_11-20211007-odin-jjhitel.img
target reported max download size of 805306368 bytes
sending 'recovery' (196608 KB)...
OKAY [ 4.296s]
writing 'recovery'...
FAILED (remote: (recovery_a) No such partition)
finished. total time: 4.311s
you can use telegram x… user reported it is working

Short explanation:

Devices with A/B partition scheme don't have a recovery partition so you cant "flash recovery twrp.img"
You can only boot in recovery mode with "fastboot boot twrp.img"

To permanently flash recovery to A/B devices, you need to unpack both boot.img (A/B) from device
Replace the ramdisk with the one extracted from twrp.img and repack then flash boot.imgs back to device ...

Do this to start twrp
# fastboot boot twrp.img

Dont do this to start twrp on A/B devices
# fastboot flash recovery twrp.img
 
hey there so simply put, it's better to just boot twrp.img and install an update if necessary. no need to install it? been trying and just keep wiping my phone. super noob i know LOL
 
  • Like
Reactions: ToneLa
hey there so simply put, it's better to just boot twrp.img and install an update if necessary. no need to install it? been trying and just keep wiping my phone. super noob i know LOL
Yep just do it once don't install it, Run it, install what you need, unplug and go about your life
 
  • Like
Reactions: kwekyx
Yep just do it once don't install it, Run it, install what you need, unplug and go about your life
would like to check so if I want to flash the latest stable, I can just boot into twrp and load the file in and install it? previous phones with roms, I remember having to unlock/decrypt to be able to do so properly.
 
Thanks @gogocar62 , was trying to figure out how to install the latest stable version as it was not in fastboot anymore.
For anyone who also want to switch to TWRP to install the latest ROM versions:
- A tuto here : https://xiaomi.eu/community/threads/howto-install-recovery-image.66211/
- TWRP versions for Xiaomi Mix 4 (Note you have to use the twrp-3.6.2_12-v6.3_A12-odin-skkk.img one) : https://androidfilehost.com/?w=files&flid=324403
 
A problem I ran into was that I was using the teamwin version of TWRP which doesn't work (2.7.0) - I needed to use the one linked in the tutorial at https://xiaomi.eu/community/threads/howto-install-recovery-image.66211/ - https://dl.akr-developers.com/?dir=skkk/TWRP/A12 and for me the latest version https://dl.akr-developers.com/?dir=skkk/TWRP/A12/v6.3_A12 [BOOT]3.6.2_12-MIX4_v6.3_A12-odin-skkk .

If you use the official TWRP it can't decrypt the partition and you can't mount the /data partition and won't be able to copy stuff using USB. In the end what worked for me was:

Get twrp image from https://xiaomi.eu/community/threads/howto-install-recovery-image.66211/ (skkk) - you will need to change the language afterwards from Chinese :)

Do NOT get it from https://twrp.me/xiaomi/xiaomimimix4.html as it can't decrypt the data directory or connect the USB.

rename it (after unzipping) to twrp.img

cd wherever the image is
fastboot boot twrp.img

now you can copy the eu rom and twrp.img. Then flash the image and afterwards use the advanced tab to Install Recovery Ramdisk with twrp.img. After this you need to wipe -> format data or you get stuck in a bootloop.

DONT FLASH THE TWRP! - it's an A/B device, so you have to use the "install recovery ramdisk" option

If all goes wrong, download stock from https://flashxiaomi.com/download-install-miui-rom-for-xiaomi-mix-4-all-miui-firmwares/

This version of TWRP also allows you to install magisk, which is what I'll try next, but after 2 hours of trying to fix the data partition not mounting I'm calling it a night for now :)
 
  • Like
Reactions: Poney70
would like to check so if I want to flash the latest stable, I can just boot into twrp and load the file in and install it? previous phones with roms, I remember having to unlock/decrypt to be able to do so properly.
Yes, I haven't updated twrp since writing this and I can still install weekly . Or stable in your case. You are just tethered when you use twrp is all