Convert sparse Android data image to filesystem ext4 image
Python
Switch branches/tags
Nothing to show
Clone or download
Latest commit 7f3f11a May 25, 2018
Permalink
Failed to load latest commit information.
README.md add OTA patching information Aug 28, 2017
sdat2img.py sdat2img.py: version 1.1 May 25, 2018

README.md

sdat2img

Convert sparse Android data image (.dat) into filesystem ext4 image (.img)

Requirements

This binary requires Python 2.7 or newer installed on your system.

It currently supports Windows, Linux, MacOS & ARM architectures.

Usage

sdat2img.py <transfer_list> <system_new_file> [system_img]
  • <transfer_list> = input, system.transfer.list from rom zip
  • <system_new_file> = input, system.new.dat from rom zip
  • [system_img] = output ext4 raw image file (optional)

Example

This is a simple example on a Linux system:

~$ ./sdat2img.py system.transfer.list system.new.dat system.img

OTAs

If you are looking on decompressing system.patch.dat file or .p files, therefore reproduce the patching system on your PC, check imgpatchtools out by @erfanoabdi.

Info

For more information about this binary, visit http://forum.xda-developers.com/android/software-hacking/how-to-conver-lollipop-dat-files-to-t2978952.