Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erfanoabdi/firmware_extractor
Extract any type of OEM firmware to images
https://github.com/erfanoabdi/firmware_extractor
Last synced: about 1 month ago
JSON representation
Extract any type of OEM firmware to images
- Host: GitHub
- URL: https://github.com/erfanoabdi/firmware_extractor
- Owner: erfanoabdi
- License: gpl-3.0
- Created: 2019-07-07T15:27:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-05T12:47:24.000Z (almost 4 years ago)
- Last Synced: 2024-10-13T00:16:14.305Z (2 months ago)
- Language: Python
- Homepage:
- Size: 16.7 MB
- Stars: 70
- Watchers: 6
- Forks: 30
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Requirements
- protobuf
- LZMA
- 7z
- lz4
## Linux
```bash
apt install unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract rename
apt install liblzma-dev python-pip brotli lz4
pip install backports.lzma protobuf pycrypto
```
## Arch
```bash
pacman -S unace unrar zip unzip p7zip sharutils uudeview arj cabextract
pacman -S python python-pip brotli lz4
pip install backports.lzma protobuf pycrypto
```
### For "rename" and "mpack" you need to manually clone and install the packages
```bash
for package in mpack rename; do
git clone https://aur.archlinux.org/"${package}"
cd "${package}" || continue
makepkg -si --skippgpcheck
cd - || break
rm -rf "${package}"
done
```
## Mac
```bash
brew install protobuf liblzma-dev brotli lz4
pip install backports.lzma protobuf pycrypto
```
Also install [mono](https://www.mono-project.com/docs/getting-started/install/mac/)### Windows
Install cygwin, and select```Latest python and pip packages, arj, brotli, cabextract, dos2unix, lz4, p7zip, renameutils, sharutils, unace, unzip and zip```
If you get syntax errors run dos2unix on extractor.sh
# How to use
## Download
```
git clone --recurse-submodules https://github.com/erfanoabdi/Firmware_extractor.git
```## Extract images from firmware URL
Example: Extracting images from pixel 2 factory image:
```
cd Firmware_extractor
wget https://dl.google.com/dl/android/aosp/walleye-pq3a.190705.001-factory-cc471c8c.zip -o firmware.zip
./extractor.sh firmware.zip
```
output will be on "Firmware_extractor/out"