This script, allows you to unpack/delete the header of Android Signed Images.
- simg2img
- python3
- Linux based systems.
- Windows (coming soon...).
- Copy the img to extract into the tool folder.
- Open a terminal or cmd in the tool folder.
python3 signimg2img.py -option
Example of system-sign (SSSS) unpack output:
r0rtiz2@r0rtiz2:~/signimg2img$ python3 signimg2img.py -u system-sign.img
signimg2img binary - version: 1.4
[signimg2img-log] Selected: Unpack system-sign.img
[signimg2img-log] Header is SSSS: 1397969747
[signimg2img-log] Removing old files if they're present...
[signimg2img-log] Getting the offset...
[signimg2img-log] Got 1885696592 as offset!
[signimg2img-log] Deleting the header...
[signimg2img-log] Header remove complete!
[signimg2img-log] Converting to ext4 image...
[signimg2img-log] Unpacking system image...
[signimg2img-log] system-sign.img extracted at system_out
r0rtiz2@r0rtiz2:~/signimg2img$
- BFBF
- SSSS
- -u: Unsign the given image (if it's system the tool will try to unpack it aswell).
- -o: Get image info (-o image_name).
- -c: Full cleanup (removes all!).
- -h: Show all the commands.
- All signed images except vendor-sign.img (Working on it..)
NOTE: If you try to unpack images that are not signed, the script will obviously fail..
This program is licensed under the GNU General Public License. See LICENSE.md for details.
- anestisb for his simg2img.
- carlitos900 and kjones for the help with the SSSS header.