Giter Club home page Giter Club logo

otadump's People

Contributors

ajeetdsouza avatar cloudedquartz avatar crazystylus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

otadump's Issues

Error: failed to parse payload

Im using Windows 10 CMD. No python installed.

Getting a error message:
when:
otadump.exe payload.bin

Error: failed to parse payload

Caused by:
Parsing requires 4 bytes/chars
image

unpack an incomplete OTA package for Oppo

When I use this program to unpack an incomplete OTA package for Oppo, there is an error with the message "thread '' panicked at 'error running operation: data_length not defined', src\cmd.rs:107:30". However, the program did not stop running. After comparing the unpacked files with those unpacked using other tools, I found that they are identical in binary. Therefore, I think this error can be considered as a bug.(The difference between an incomplete OTA package and a complete OTA package for Oppo is that the former is missing several partitions. After unpacking, as long as it is not crossed to a different Android version, it can start up normally. It is different from conventional incomplete OTA packages.)

Cannot unpack some Nokia firmware

Trying to use otadump against the following zip https://android.googleapis.com/packages/ota-api/package/cbce4b4611f7a10bc02ee2e03872b2f4aa241b9a.zip leads to the below.

$ otadump cbce4b4611f7a10bc02ee2e03872b2f4aa241b9a.zip
Error: failed to parse payload

Caused by:
    Parsing requires 2394469530116587966 bytes/chars

otadump version is 0.1.2, and I have reproduced this on two different machines running Ubuntu 22.04.2 LTS (one Desktop variant, and one Server variant).

As the SHA-1 hash of the file matches its name (similarly to other OTA files hosted on android.googleapis.com/* ), I do not believe it is due to a download issue.

~$ sha1sum cbce4b4611f7a10bc02ee2e03872b2f4aa241b9a.zip
cbce4b4611f7a10bc02ee2e03872b2f4aa241b9a  cbce4b4611f7a10bc02ee2e03872b2f4aa241b9a.zip

broken link

the curl one liner for macos/linux gives a 404 not found for the install.sh file

Build under Android OS

Hi! Please add build under Android manual or compile static binary files armv7 and arm64

Doesn't unpack payload.bin correctly

Cannot unpack payload.bin correctly.
Unpacks, but subsequent images are not processed.
This is what lpunpack writes when unpacking:
"Split super devices are not supported"

Config for unpacking:

Slot 0:
Metadata version: 10.0
Metadata size: 832 bytes
Metadata max size: 65536 bytes
Metadata slot count: 2
Header flags: none
Partition table:

Name: system_a
Group: laurel_dynamic_partitions_a
Attributes: readonly
Extents:
0 .. 3583471 linear system_a 2048

Name: vendor_a
Group: laurel_dynamic_partitions_a
Attributes: readonly
Extents:
0 .. 1806631 linear system_a 3586048

Name: product_a
Group: laurel_dynamic_partitions_a
Attributes: readonly
Extents:
0 .. 897023 linear system_a 5394432
897024 .. 2992127 linear vendor_a 2048
2992128 .. 2997247 linear product_a 2048

Name: odm_a
Group: laurel_dynamic_partitions_a
Attributes: readonly
Extents:
0 .. 5639 linear product_a 8192

Super partition layout:

product_a: 2048 .. 7168: product_a (5120 sectors)
product_a: 8192 .. 13832: odm_a (5640 sectors)
system_a: 2048 .. 3585520: system_a (3583472 sectors)
system_a: 3586048 .. 5392680: vendor_a (1806632 sectors)
system_a: 5394432 .. 6291456: product_a (897024 sectors)
vendor_a: 2048 .. 2097152: product_a (2095104 sectors)

Block device table:

Partition name: system_a
First sector: 2048
Size: 3221225472 bytes
Flags: none

Partition name: vendor_a
First sector: 2048
Size: 1073741824 bytes
Flags: none

Partition name: product_a
First sector: 2048
Size: 268435456 bytes
Flags: none

Partition name: odm_a
First sector: 2048
Size: 134217728 bytes
Flags: none

Group table:

Name: default
Maximum size: 0 bytes
Flags: none

Name: laurel_dynamic_partitions_a
Maximum size: 4693426176 bytes
Flags: none

Firmware:
https://sourceforge.net/projects/syberiaos/files/laurel_sprout/syberia_laurel_sprout-v6.6-20230906-0828-OFFICIAL.zip/download

Cannot unpack Asus payload.bin

Full firmware link (Zenfone 9): https://dlcdnets.asus.com/pub/ASUS/ZenFone/AI2202/UL-ASUS_AI2202-ASUS-33.0804.2060.113-1.1.1-2304-user.zip
Rog Phone 7: https://dlcdnets.asus.com/pub/ASUS/ZenFone/AI2205/UL-ASUS_AI2205-ASUS-33.0820.0810.175-1.1.107-2304-user.zip

The log as followed
Error: unable to parse manifest Caused by: failed to decode Protobuf message: DeltaArchiveManifest.partial_update: invalid wire type: LengthDelimited (expected Varint)

Most if not all Asus firmware (Zenfone or Rog Phone) had the same error above.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.