Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/g0dm0de1337/termux_dumper
https://github.com/g0dm0de1337/termux_dumper
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/g0dm0de1337/termux_dumper
- Owner: g0dm0de1337
- Created: 2022-03-04T18:03:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-24T18:07:50.000Z (over 2 years ago)
- Last Synced: 2024-08-01T13:37:22.369Z (3 months ago)
- Language: Python
- Size: 47.9 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This Help you to extract a payload.bin from OTA-files/Android Updates ..
Extract all .img from payload.bin
Do you need the boot.img for magisk ??
- Install Termux
- Follow my repo
- go to :
> /0/termux_dumper/output/- Your boot.img is ready for magisk patch
# Unzip your android update and paste your payload.bin in the termux_dumper folder
## Termux install
# StepByStep Install without iPython script:
- pkg up
- pkg install python -y
- pip install protobuf
- python --version
- pkg install git -y
- termux-setup-storage
> Allow
- cd /sdcard/
- git clone https://github.com/g0dm0de1337/termux_dumper.git
- cd termux_dumper
- chmod +x *
> Open Filemanager && unzip YourSystemUpdate.zip &&
> Copy&Paste your "payload.bin" in your folder "termux_dumper" !
> Back2Termux!!
- ls
- sh pextract.sh
> ...wait for done
## all img. Files from your payload.bin was in termux_dumper/output### fix Install Termux
- pkg install git -y
- termux-setup-storage
- cd /sdcard/
- git clone https://github.com/g0dm0de1337/termux_dumper.git
- cd termux_dumper
- chmod +x *
- ls
> Open Filemanager && unzip YourSystemUpdate.zip &&
> Copy&Paste your "payload.bin" in your folder "termux_dumper" !
> Back2Termux!!
- sh iPython.sh
- pip install protobuf
- sh pextract.sh
> ...wait for done
# all img. Files from your payload.bin was in termux_dumper/output.
.
.# old Tutorial /// NOT FROM ME !!
go with a file manager to /termux_dumper/output/boot.imgfinish !!!!!!
# payload dumper
Script tested on Yandex Amber OTA's (full and incremental) under Linux(but may works on Windows too)## System requirement
- Python3, pip
- google protobuf for python `pip install protobuf`### Docker
Alternatively you can use Docker:
```
docker run --rm -v "${PWD}":/data -it vm03/payload_dumper /data/payload.bin --out /data
```
or self build Docker image
```
# build the container image
$ docker build -t payload_dumper .# mount current PWD and pass payload.bin
$ docker run --rm -v "${PWD}":/data -it payload_dumper /data/payload.bin --out /data```
## Guide
- Make you sure you have Python 3.6 installed.
- Download payload_dumper.py and update_metadata_pb2.py
- Extract your OTA zip and place payload.bin in the same folder as these files.
- Open PowerShell, Command Prompt, or Terminal depending on your OS.
- Enter the following command: python -m pip install protobuf### Full OTA
- When that’s finished, enter this command: python payload_dumper.py payload.bin
- This will start to extract the images within the payload.bin file to the output folder you are in.### Incremental OTA
- Copy original images (from full OTA or dumped from devices) to old folder (with part name + .img, ex: boot.img, system.img)
- run python payload_dumper.py --diff payload.bin
- file extracted to the output folder you are in.