Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot unpack some Nokia firmware #25

Closed
OneNormalUsername opened this issue Jun 23, 2023 · 2 comments · Fixed by #26
Closed

Cannot unpack some Nokia firmware #25

OneNormalUsername opened this issue Jun 23, 2023 · 2 comments · Fixed by #26

Comments

@OneNormalUsername
Copy link

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
@ajeetdsouza
Copy link
Collaborator

You need to extract the payload.bin file and run otadump on that.

I think this could be a common mistake, we should either add a warning, or the ability to extract directly from zip files.

@OneNormalUsername
Copy link
Author

Oops
Sorry, it indeed works fine with the extracted payload.bin 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants