https://github.com/ishacker003/img2sdat
Convert sparse EXT4 image to sparse Android data image [FIXED]
https://github.com/ishacker003/img2sdat
Last synced: 4 months ago
JSON representation
Convert sparse EXT4 image to sparse Android data image [FIXED]
- Host: GitHub
- URL: https://github.com/ishacker003/img2sdat
- Owner: IsHacker003
- License: mit
- Created: 2025-01-16T11:53:39.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-16T11:57:44.000Z (over 1 year ago)
- Last Synced: 2025-01-16T13:11:23.471Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# img2sdat
Convert filesystem EXT4 image (.img) into Android sparse data image (.dat)
## Requirements
This binary requires Python 3.10 or newer installed on your system.
It currently supports MacOS, GNU/Linux x86/x64 & arm/arm64 architectures.
## Usage
```
img2sdat.py [-o outdir] [-v version] [-p prefix]
```
- `` = input system image
- `[-o outdir]` = output directory (current directory by default)
- `[-v 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)
- `[-p prefix]` = name of image (prefix.new.dat)
## Example
This is a simple example on a GNU/Linux system:
```
~$ ./img2sdat.py system.img -o tmp -v 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.