https://github.com/tgalal/droidtools
Android tools for python
https://github.com/tgalal/droidtools
Last synced: 2 months ago
JSON representation
Android tools for python
- Host: GitHub
- URL: https://github.com/tgalal/droidtools
- Owner: tgalal
- License: gpl-3.0
- Created: 2015-08-06T08:38:34.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-10T13:58:16.000Z (almost 10 years ago)
- Last Synced: 2025-03-25T03:41:25.479Z (3 months ago)
- Language: C
- Homepage:
- Size: 215 KB
- Stars: 6
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Android tools for python
Python implementations or C extensions of some android tools
## Tools:
### mkbootimg
#### mkbootimg
```python
from droidtools import mkbootimgmkbootimg.build(
"out.img"
board,
base,
cmdline,
page_size,
kernel_offset,
ramdisk_offset,
second_offset,
tags_offset,
kernel,
ramdisk,
second,
dt
)
```#### unpackbootimg
```python
from droidtools import unpackbootimgbootImg = unpackbootimg.extract("/path/to/file.img", out_dir)
# to repack:
# bootImg.build("out.img")```
### ext4fs_utils
#### make_ext4fs
```python
from droidtools import ext4fs_utilsext4fs_utils.make_ext4fs("cache.img",
"/path/to/cache_dir",
length=33554432,
mountPoint="cache",
mode=ext4fs_utils.MODE_SPARSED
)```
## Installation
```bash
pip install droidtools
```## License
droidtools is licensed under the GPLv3+: http://www.gnu.org/licenses/gpl-3.0.html.