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?
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?