- Windows 10
- Python3 installed and added to environment variable
- pip3 installed and added to environment variable
- Python Modules -> protobuf==3.6.0, six==1.11.0, bsdiff4>=1.1.5
- If you face issues, install Windows 10 SDK & C++ build tools. Download the build tools here. Launch the Visual Studio Installer and select the Desktop development with C++ option. Install the default tool options for this. Upgrade the setuptools using the command python -m pip install –upgrade setuptools –user
Install the python modules using the requirements file:
python -m pip install -r requirements.txt –user
Extractor script usage:
Extract the OTA file.
Copy the full path of the payload.bin file present in the extracted OTA file, e.g. C:rootota 1payload.bin
Run the script – python Extractor.py
When prompted enter the full path of the payload.bin
The system.img will get extrcated from payload.bin
You will be presented 2 options – you can either extract all apps or you can extract specific apps that you want to extract.
To extract specific apps, choose option 2
It will display the total number of apps on the image.
Enter the number of apps that you want to extract.
Enter the names of the apps that you want to extract. You have to enter full name of the APK e.g.
The extracted apps will be present in the output folder.