ofrak icon indicating copy to clipboard operation
ofrak copied to clipboard

Detect Android Spareseimage blocksize

Open rbs-afflitto opened this issue 2 months ago • 0 comments

What is the use case for the feature?

The Android Sparseimage packer always uses the default block size of 4096. The original block size of the image should be detected by an analyzer to allow repacking at the original block size.

Does the feature contain any proprietary information about another company's intellectual property?

No

How would you implement this feature?

Implement an Android Sparseimage Analyzer which can detect the block size of a sparseimage, add a field to the AndroidSparseimage dataclass to store the block size, and have the packer call img2simg with the block size from the AndroidSparseimage.

Are there any (reasonable) alternative approaches?

N/A

Are you interested in implementing it yourself?

rbs-afflitto avatar Oct 28 '25 16:10 rbs-afflitto