cyxx / extract_android_ota_payload

Extract firmware images from an Android OTA payload.bin file
MIT License
452 stars 94 forks source link

Failed: Unhandled Operation #2

Closed singhnsk closed 6 years ago

singhnsk commented 6 years ago

Hello, I do not have any idea what goes on behind the scenes in the python file, but the result doesn't seem to work for me.

I'm trying to extract a payload.bin from a Nokia 7 OTA file (~150MB). The phone does use A/B.

The command stars and then stops with just 2 files in the output directory. These are:

  1. cda.img
  2. splash.img

Here's the output from my terminal.

narender@narender-MS-7816:/media/narender/Windows 7 (x86 & x64)/Nokia 7 Root/extract_android_ota_payload-master$ python extract_android_ota_payload.py payload.b
in abc/
Extracting 'abl.img'
Failed: Unhandled operation type (4)
Extracting 'bluetooth.img'
Failed: Unhandled operation type (4)
Extracting 'boot.img'
Failed: Unhandled operation type (5)
Extracting 'cda.img'
Extracting 'cmnlib.img'
Failed: Unhandled operation type (4)
Extracting 'cmnlib64.img'
Failed: Unhandled operation type (4)
Extracting 'devcfg.img'
Failed: Unhandled operation type (4)
Extracting 'dsp.img'
Failed: Unhandled operation type (4)
Extracting 'hidden.img'
Failed: Unhandled operation type (4)
Extracting 'hyp.img'
Failed: Unhandled operation type (4)
Extracting 'keymaster.img'
Failed: Unhandled operation type (4)
Extracting 'mdtp.img'
Failed: Unhandled operation type (4)
Extracting 'mdtpsecapp.img'
Failed: Unhandled operation type (4)
Extracting 'modem.img'
Failed: Unhandled operation type (5)
Extracting 'nvdef.img'
Failed: Unhandled operation type (4)
Extracting 'pmic.img'
Failed: Unhandled operation type (4)
Extracting 'rpm.img'
Failed: Unhandled operation type (5)
Extracting 'splash.img'
Extracting 'system.img'
Failed: Unhandled operation type (5)
Extracting 'systeminfo.img'
Failed: Unhandled operation type (5)
Extracting 'tz.img'
Failed: Unhandled operation type (4)
Extracting 'xbl.img'
Failed: Unhandled operation type (4)
Extracting 'vendor.img'
Failed: Unhandled operation type (4)
cyxx commented 6 years ago

Hi,

This looks similar to issue #1 . Operation type 4 is SOURCE_COPY and type 5 is SOURCE_BSDIFF, I suppose this is an incremental firmware upgrade. I should update the README to mention the tool can only be used with full firmware upgrades.

cyxx commented 6 years ago

Added note to README (df621cb0945ee987bcf74ed0fa57b3e3d3ef0a9e)

singhnsk commented 6 years ago

@cyxx

I should update the README to mention the tool can only be used with full firmware upgrades.

Well, the part "OTA" in the name and description gave the idea that it also handles partial packages as well. When do OEMs provide full packages as OTA? Pretty rare, isn't it? Still, thank you for the quick response.