2.6 System Software Update
MIUI supports Android's native OTA (Over the Air) mechanism and provides more secure and efficient Android-based management for system upgrades.
The system update program checks the integrity of the ROM file downloaded via OTA or copied offline to the phone's storage by verifying its size and hash value before updating the system software.
Different upgrade modes are automatically selected based on the phone model:
- For Virtual A/B ("VAB") models, the phone will call the dual partition upgrade mode during the upgrade. The underlying system will verify the integrity of the ROM again, and if the verification is successful, it will write the updated content to another system. When the updated phone restarts, it will automatically synchronize the updated content and complete the upgrade.
- For non-VAB models, the phone will reboot and call the underlying recovery mode to verify the correctness of the signing key. The recovery mode will only write the updated content to the system storage if the verification is successful.