Convert sparse Android data image (.dat) to filesystem ext4 image (.img)
This binary requires Python 3.x installed on your system.
It currently supports Windows x86/x64, Linux x86/x64 & arm/arm64 architectures.
sdat2img.py <transfer_list> <system_new_file> <system_ext4>
transfer_list
= input, system.transfer.list from rom zipsystem_new_file
= input, system.new.dat from rom zipsystem_ext4
= output ext4 raw image file
This is a simple example on a Linux system:
~$ ./sdat2img.py system.transfer.list system.new.dat system.img
For more information about this binary, visit http://forum.xda-developers.com/android/software-hacking/how-to-conver-lollipop-dat-files-to-t2978952.