[Guide] How to extract payload.bin from OTA

Search This thread

GrandMstrBud

Senior Member
Jan 30, 2007
1,369
92
Google Pixel 6
Step 5 doesn't work

virtualenv : The term 'virtualenv' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

Found a guide on another site. Wish this had a GUI to make it simple.
 
Last edited:
Hi guys, I'm looking to extract the payload.bin from a disc img file (android tv box rom)
I have looked around and am struggling to find anything on the subject.
Is this possible.
I would like to extract the boot.img etc and try patch with magisk to obtain root on android 9 T95max firmware.
I'm currently using rooted nougat firmware but would like to update to rooted android 9 instead

Any help would be great
 

und3fined

Member
Feb 2, 2015
19
35
Hi guys, I'm looking to extract the payload.bin from a disc img file (android tv box rom)
I have looked around and am struggling to find anything on the subject.
Is this possible.
I would like to extract the boot.img etc and try patch with magisk to obtain root on android 9 T95max firmware.
I'm currently using rooted nougat firmware but would like to update to rooted android 9 instead

Any help would be great

Bertonumber1 you can try command file

Bash:
> file VOS3.0-AB-10-20201002-LZYGSI.img

VOS3.0-AB-10-20201002-LZYGSI.img: Linux rev 1.0 ext4 filesystem data, UUID=9704a9b3-b5aa-49f0-b2ef-4249ec7130c9 (needs journal recovery) (extents) (large files) (huge files)

If it is ext4 file system, you can mount it and get a boot.img

Ext: mount -t ext4 -o loop VOS3.0-AB-10-20201002-LZYGSI.img system/

You can try this tool: http://newandroidbook.com/tools/imjtool.html
 

dablakmark8

Senior Member
Dec 13, 2007
120
15
cape town
This is the error
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: C:\Users\kronos\AppData\Local\Programs\Python\Python38-32\Include\UNKNOWN
sysconfig: C:\Users\kronos\AppData\Local\Programs\Python\Python38-32\Include
WARNING: Additional context:
user = False
home = None
root = None
prefix = None

C:\Users\kronos\AppData\Local\Programs\Python\Python38-32>python payload_dumper.py payload.bin
Traceback (most recent call last):
File "payload_dumper.py", line 64, in <module>
assert magic == b'CrAU'
AssertionError

I dont know what to do now or how to extract the img.bin file from the firmware
 

MoHed

Senior Member
Dec 11, 2009
264
122
The Web
Hi . Everything works but I was wondering if there is a command to extract just the file I need (boot.img) without going through the time to extract everything in the firmware.
 

hurka11

Senior Member
Mar 18, 2010
78
9
Hi. I get an error with bsdiff4. I have attached a screenshot with my error message. Can someone help me with this. Thank you
 

Attachments

  • Screenshot (22).png
    Screenshot (22).png
    189.3 KB · Views: 73

hammad2224

Member
Nov 2, 2021
7
1
Error

python.exe payload_dumper.py payload.bin
Traceback (most recent call last):
File "C:\Users\hamma\AppData\Local\Programs\Python\Python310\payload_dumper.py", line 15, in <module>
import update_metadata_pb2 as um
File "C:\Users\hamma\AppData\Local\Programs\Python\Python310\update_metadata_pb2.py", line 8, in <module>
from google.protobuf import reflection as _reflection
File "C:\Users\hamma\AppData\Local\Programs\Python\Python310\lib\site-packages\google\protobuf\reflection.py", line 58, in <module>
from google.protobuf.internal import python_message as message_impl
File "C:\Users\hamma\AppData\Local\Programs\Python\Python310\lib\site-packages\google\protobuf\internal\python_message.py", line 62, in <module>
from google.protobuf.internal import containers
File "C:\Users\hamma\AppData\Local\Programs\Python\Python310\lib\site-packages\google\protobuf\internal\containers.py", line 182, in <module>
MutableMapping = collections.MutableMapping
AttributeError: module 'collections' has no attribute 'MutableMapping'
 

taoreality

New member
May 26, 2022
2
0
Hsinchu City
This is the error
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: C:\Users\kronos\AppData\Local\Programs\Python\Python38-32\Include\UNKNOWN
sysconfig: C:\Users\kronos\AppData\Local\Programs\Python\Python38-32\Include
WARNING: Additional context:
user = False
home = None
root = None
prefix = None

C:\Users\kronos\AppData\Local\Programs\Python\Python38-32>python payload_dumper.py payload.bin
Traceback (most recent call last):
File "payload_dumper.py", line 64, in <module>
assert magic == b'CrAU'
AssertionError

I dont know what to do now or how to extract the img.bin file from the firmware
Same problem. Neither under vitualenv.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 25
    This is guide for extract payload.bin from OTA zip file

    -----------------

    Pre-requirement:
    - Python3

    -----------------
    For extract OTA update
    Please flow step by step instruction

    Step 1: Get a OTA for Nokia 7 plus -> here
    Step 2: Download payload_dumper.zip --> View attachment payload_dumper.zip
    Step 3: Unzip payload_dumper.zip
    This is list file
    fKqInKw3d7bLFOeFnMGnhLa9HxkHcs4mYYcDNgWOG9Cr1wm5wAHdd1IsHWqYrTOH6lkO-ssPGPYY48YPHEZswlOa6_CebGDVarH3OAzI-Our8npumZHI4midPdWhecNq


    Step 4: Open Power Shell (on Windows) or Terminal (on Linux/macOS).
    Go to folder payload_dumper with command
    Code:
    cd "<Path to folder>"

    Step 5: Create a python environment with virtualenv
    Command:
    Code:
    virtualenv .py

    Step 6: Active python enviroment
    Command:
    Code:
    source .py/bin/activate

    Works fine. :good:

    Step 5 (Windows):
    Code:
    pip install virtualenv
    virtualenv .py

    Step 6 (Windows):
    Code:
    CMD: call .py\Scripts\activate.bat
    PS: .py\Scripts\activate.ps1



    Step 7: Install dependencies with command
    Code:
    pip install -r requirements.txt

    Step 8: Extract OTA.zip file

    Step 9: Copy payload.bin file to payload_dumper folder

    Step 10: Run command

    Code:
    python3 payload_dumper.py payload.bin

    Step 11: Wait extract...

    Step 12: File extracted on out folder in payload_dumper

    -----------------

    Python 3 can get it here: https://www.python.org/downloads/
    Flow step install python 3, please tick to option install pip and virutalenv
    9
    Works fine. :good:

    Step 5 (Windows):
    Code:
    pip install virtualenv
    virtualenv .py

    Step 6 (Windows):
    Code:
    CMD: call .py\Scripts\activate.bat
    PS: .py\Scripts\activate.ps1
    2
    I doing in Linux, but maybe try python.exe, no python3.exe
    2
    Did you follow folktroll advises for windows.
    I've just installed it in my computer followed all steps and extracted all images in my payload file.

    Thanks,
    I know where the mistake is. Step 10 says.
    Run command
    Code. python3 payload_dumper.py payload.bin
    python3 payload_dumper.py payload.bin

    with "python3" the "3" must go away, so

    python payload_dumper.python payload.bin

    ---------- Post added at 05:18 PM ---------- Previous post was at 05:00 PM ----------

    I doing in Linux, but maybe try python.exe, no python3.exe

    have seen too late... lol:D
    2
    I have this error in step 10:

    (.py) imac-3:payload_dumper Eche$ python3 payload_dumper.py payload.bin
    Traceback (most recent call last):
    File "payload_dumper.py", line 12, in <module>
    import update_metadata_pb2 as um
    File "/Users/Eche/Downloads/payload_dumper/update_metadata_pb2.py", line 6, in <module>
    from google.protobuf import descriptor as _descriptor
    ModuleNotFoundError: No module named 'google'

    Try:

    Code:
    pip3 install -r requirements.txt

    instead of:

    Code:
    pip install -r requirements.txt