Recursively scans extracted Android ROMS/Firmware for APK files, extracts their contents, and collects embedded image assets (.png, .jpg, .jpeg). Images are labeled as Bugdroid-related or general based on filename keywords, along with video/audio files, and are then copied to separate output directories with collision-safe, resolution-prefixed filenames.
Install the latest Python from the Microsoft Store.
Open Command Prompt and execute pip install pillow.
Place APKExtraction.py into the folder you'd like for it to scan, and double click to run.
The script will display:
- How many APK's have been detected
- Which APK is currently being extracted
- When the script is finished, and where the output directories to the created folders are
Note: this script has been tested successfully with Samsung, HTC, and Xiaomi Firmware, and may work with most firmware from other Android devices.