Skip to content

Use of CurrentBlockDataEntry.dwBlockCount #7

@tristanleboss

Description

@tristanleboss

Hello,

I have a question about your ffutoimg python script.

I don’t understand line 104, when you seek at the location where to copy the data in the final image:

imgfp.seek(CurrentBlockDataEntry.dwBlockCount*FFUStoreHeader.dwBlockSizeInBytes)

Indeed, you use “CurrentBlockDataEntry.dwBlockCount” but, I tried with a FFU (Xiaomi Mi4) and this value is always 0 or 1. Because “FFUStoreHeader.dwBlockSizeInBytes” is always the same, the final value is always the same.

Shouldn't we use “CurrentBlockDataEntry.dwBlockIndex” instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions