Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 1.19 KB

README.md

File metadata and controls

38 lines (22 loc) · 1.19 KB

sdat2img

Convert sparse Android data images (.dat) into filesystem images (.img)

Requirements

This binary requires Python 2.7 or newer installed on your system. It currently supports Windows, Linux, MacOS & ARM architectures.

Note: Google's newer Brotli format (partition.new.dat.br) must be decompressed to a valid sparse data image before using sdat2img binary.

Usage

sdat2img.py <transfer_list> <partition_new_file> [output_img]
  • <transfer_list> = input, partition.transfer.list from rom zip
  • <partition_new_file> = input, partition.new.dat from rom zip
  • [output_img] = output, 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 partition.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 it's XDA page.