Skip to content

Convert sparse Android data images to filesystem images

License

Notifications You must be signed in to change notification settings

PeterKnecht93/sdat2img

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Convert sparse Android data images to filesystem images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%