File based OTA update along with Block-based OTA

OTA is the mechanism by which OEMs remotely update the system partition of a device: File based OTA update in not available beyond AOSP Android 5.0. Sometimes it is require to provide few configuration files along with OTA. We have solutions that provide file based OTA supports along with block-based OTA file. This solution requires…


OTA is the mechanism by which OEMs remotely update the system partition of a device:

  • Android 5.0 and later versions use block OTA updates to ensure that each device uses the exact same partition. Instead of comparing individual files and computing binary patches, block OTA handles the entire partition as one file and computes a single binary patch, ensuring the resultant partition contains exactly the intended bits. This allows the device system image to achieve the same state via fastboot or OTA.
  • Android 4.4 and earlier versions used file OTA updates, which ensured devices contained similar file contents, permissions, and modes, but allowed metadata such as timestamps and the layout of the underlying storage to vary between devices based on the update method.

File based OTA update in not available beyond AOSP Android 5.0. Sometimes it is require to provide few configuration files along with OTA.

We have solutions that provide file based OTA supports along with block-based OTA file. This solution requires to add few codes in AOSP recovery files and few changes in AOSP code.


  1. Block-based OTA – Updates raw blocks of the system partition.
  2. File-based OTA – Updates files individually using filesystem-level operations.

Block-based OTA rewrites raw data blocks in the target partition, ensuring exact binary consistency with the update package.

  • Ensures partition is bit-for-bit identical to the target image.
  • Reliable against modified files or filesystem inconsistencies.
  • Faster in many cases since it works at block level.

  • Cannot be applied if partition has been modified (e.g., rooted or custom recovery).
  • Larger update size if only small parts of large files change (entire block must be updated).
  • Requires device to reboot into recovery for update.

File-based OTA works at the filesystem level, applying changes to individual files instead of raw blocks.

  • More tolerant to minor modifications in partitions.
  • Efficient if only a small portion of files are changed (smaller patch size).
  • Easier to debug because changes are at file level.

  • Cannot guarantee binary identical partitions (may differ due to fs metadata).
  • More processing overhead during update.
  • Risk of mismatched states if unexpected filesystem corruption exists.

Block-based OTA is the standard since Android 5.0 (Lollipop). File-based OTA was used in earlier Android versions (pre-5.0).

  • In theory, yes. But in practice, most modern Android build systems generate only block-based OTAs.
  • File-based OTA is still supported for certain legacy use cases or embedded devices with constraints.

To ensure bit-for-bit reproducibility of partitions, improve reliability, and reduce issues caused by filesystem variations.


Leave a Reply