crazystylus / otadump Goto Github PK
View Code? Open in Web Editor NEWExtract partitions from Android OTA files.
License: MIT License
Extract partitions from Android OTA files.
License: MIT License
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.)
OTA Pack: https://download.c.realme.com/flash/DP1_Android_13/EU/RMX3301_ROLL_BACK_Android12_EU.zip
Log in log.txt
file: log.txt
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
the curl one liner for macos/linux gives a 404 not found for the install.sh file
Hi! Please add build under Android manual or compile static binary files armv7 and arm64
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:
Can you make it so that you can see what's inside the payload.bin via a separate parameter
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.