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.
FAQs
What are the two main types of OTA updates in Android?
- Block-based OTA – Updates raw blocks of the system partition.
- File-based OTA – Updates files individually using filesystem-level operations.
What is a block-based OTA update?
Block-based OTA rewrites raw data blocks in the target partition, ensuring exact binary consistency with the update package.
What are the advantages of block-based OTA?
- 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.
What are the disadvantages of block-based OTA?
- 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.
What is a file-based OTA update?
File-based OTA works at the filesystem level, applying changes to individual files instead of raw blocks.
What are the advantages of file-based OTA?
- 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.
What are the disadvantages of file-based OTA?
- 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.
Which one is more common today in Android devices?
Block-based OTA is the standard since Android 5.0 (Lollipop). File-based OTA was used in earlier Android versions (pre-5.0).
Can file-based OTA and block-based OTA coexist in the same device?
- 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.
Why did Android move from file-based OTA to block-based OTA?
To ensure bit-for-bit reproducibility of partitions, improve reliability, and reduce issues caused by filesystem variations.



Leave a Reply