Instructions for repacking a system image from Sparse Android Data Image format (system.new.dat) to Sparse Image for firmware via MiFlash For what is needed If you have a need to flash through Miflash and you want to have an official firmware, but immediately mod from other teams.
And as you know, third-party teams collect their firmware for custom recovery TWRP, and not for Miflash.
DISCLAIMER
Although this instruction has been tested successfully on the real device, but I still can not guarantee 100% success and on your PC or phone.
Therefore, if you decide to use it for your own purposes, then all the consequences lie on you.
WHAT TO DO (The presence of direct hands is required!) I. Simple instruction 1) Miflash must already be installed
2) Download
actualversion of the official global firmware for Miflash and unpack
3) Download the current firmware for TWRP from the necessary command. Preferably (but I think it is not necessary) the coincidence of the firmware versions
4) Remove the system.New.Dat and System.transfer.list from the archive with the firmware (paragraph 3) in a folder convenient for you
5) Convert Android Data Image in Sparse Image using
sdat2simg.exe.(1.92 MB)
sdat2simg.exe.<transfer_list><System_Dat_File>
6) Copy with replacing the resulting IMG \ System.img in the \ images folder with a unpacked firmware for Miflash
7) Firmage
II. Instructions for those who like to control the process 1) Miflash must already be installed
2) Download
actualversion of the official global firmware for Miflash and unpack
3) Download the current firmware for TWRP from the necessary command. Preferably (but I think it is not necessary) the coincidence of the firmware versions
4) Download the
ANDROID_IMG_REPACK_TOOLS_CYGWIN_x64-86_6.0.1.zipand unpack
5) Download
SDAT2IMG.PY.and copy to a folder with a unpacked archive from paragraph 4
6) Download the
Pythonand install
7) Remove the system.New.Dat and System.Transfer.List from the archive with the firmware (paragraph 3) in a folder convenient for you
8) Convert system.New.DAT to RAW EXT4
SDAT2IMG.PY.<transfer_list><system_new_file>[SYSTEM_RAW_IMG]
9) Convert the image of the RAW EXT4 obtained in paragraph 8 in Sparase Image
Ext2Simg -V System.Rew.img System.img
10) Copy with replacement received by system.img in the \ images folder with a unpacked firmware for Miflash
11) Firmable
Ps. This method is successfully tested with firmware 6.12.29 from Multirom.
Post has been editedAMSUser - 02.01.17, 13:12Reason for Editing: Disclaimer