Skip to content

Convert sparse EXT4 image to sparse Android data image

Notifications You must be signed in to change notification settings

blackeangel/img2sdat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img2sdat

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

Requirements

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

It currently supports Windows x86/x64, Linux x86/x64 & arm/arm64 architectures.

Usage

img2sdat.py <system_img> [outdir] [version]
  • <system_img> = input system image
  • [outdir] = output directory (current directory by default)
  • [version] = transfer list version number (1 - 5.0, 2 - 5.1, 3 - 6.0, 4 - 7.0, will be asked by default, more info on xda thread)

Example

This is a simple example on a Linux system:

~$ ./img2sdat.py system.img tmp 4

It will create files system.new.dat, system.patch.dat, system.transfer.list in directory tmp.

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 sparse EXT4 image to sparse Android data image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%