OTA updates allow a device to download new firmware, install it, and reboot itself into the new version. Convenient? Yes. Secure? It definitely needs to be. Fortunately, over-the-air (OTA ...
To complete the update ... of each partition that needs to be updated and then applies the patches in the OTA update file to the snapshot. Android then checks if the patched snapshot can boot.