Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xpirt/sdat2img
Convert sparse Android data image to filesystem ext4 image
https://github.com/xpirt/sdat2img
android python sdat2img
Last synced: 7 days ago
JSON representation
Convert sparse Android data image to filesystem ext4 image
- Host: GitHub
- URL: https://github.com/xpirt/sdat2img
- Owner: xpirt
- License: mit
- Created: 2014-12-24T15:19:19.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T12:25:27.000Z (over 2 years ago)
- Last Synced: 2024-08-01T13:37:16.674Z (3 months ago)
- Topics: android, python, sdat2img
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 841
- Watchers: 40
- Forks: 387
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rainmana - xpirt/sdat2img - Convert sparse Android data image to filesystem ext4 image (Python)
README
# 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](https://github.com/google/brotli) format (`system.new.dat.br`) must be decompressed to a valid sparse data image before using `sdat2img` binary.
## Usage
```
sdat2img.py [system_img]
```
- `` = input, system.transfer.list from rom zip
- `` = 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:
```
~$ ./sdat2img.py system.transfer.list system.new.dat system.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](https://github.com/erfanoabdi/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.