Impossible to install custom rom zip with TWRP

Hi, earlier, I wanted to change the rom of my mi 5s. I've got an error 7 follow by "Failed to update system image" on twrp during the flash. I tried many things: edit the installation script, format all the data, update and downgrade TWRP, lock and unlock bootlander and finally perform a fastboot flash using mi flash and the last one worked. But I am not longer able to flash a custom rom without getting error 7 after the "Patching system image unconditionally" message. I've tested lineage, pixel experience, miui, even 8.1 rom but same result. I'm stuck with fastboot global miui 10 (oreo )
Btw, I think that after the error the partition are corrupted since I can't repair them with TWRP.
I don't know what I can do more.I think that i figured out that I am able to flash system.img file using fastboot but I can't flash zip rom using recovery.
As anyone encounter this ?

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by don.kub
3 hours ago
Last post by tremblay.elmer
4 hours ago
Last post by qmayer
4 hours ago
Last post by victor42
3 hours ago
Last post by graham.ignacio
1 hour ago
Last post by rachel96
1 hour ago
Last post by asha82
2 hours ago
Last post by zmosciski
3 hours ago
Last post by zachery14
3 hours ago
Last post by vbatz
2 hours ago