New Mi 6 Cannot Install Rom (error 7)


Mi6Attempt

Members
Jan 27, 2018
1
13
I dont know if this is the right place for this, but here goes:

I am trying to install 8.1.18 on my new Mi 6. I have unlocked the bootloader and booted into TWRP 3.2.1-0. When I select "install" and choose the zip file, the installer said

this package is for "sagit" devices; this is a ""

I looked up the error and according to "en.miui .com/thread-415703-1-1.html" (Take out the spaces between miui and .com because i cant post links yet...) it is because TWRP cant figure out what device you are using, and assumes its name is "". This fails the check to see weather the ROM is for the device. The fox was to remove the first line of /META-INF/com/google/android/updater-script which checked to see if the ROM was compatible with your device.

Now the installer is saying:

E1001: Failed to update system image.

I looked through the updater-script file again and found that it is trying to copy many files to the location

/dev/block/bootdevice/by-name/

One of these files is "system.patch.dat" which is empty (Windows says size is 0 bytes). Could this be causing the problem?
Im really lost right now so much help would be appreciated.

Thanks