Skip to content
forked from xpirt/sdat2img

Convert system.new.dat & vendor.new.dat to .img

Notifications You must be signed in to change notification settings

danielmmmm/dat2img

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 

Repository files navigation

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.

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

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 to Extract system.new.dat

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

This is a simple example on a Linux system to Extract vendor.new.dat

~$ ./sdat2img.py vendor.transfer.list vendor.new.dat vendor.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.

About

Convert system.new.dat & vendor.new.dat to .img

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%