OTA update

OTA update is another major function of recovery. OTA packages can be updated using the recovery user interface after entering the recovery mode manually. It can also be updated automatically after an update notification is received. In both cases, the path of the update package may be different, but the installation process is the same. In this section, we will look at the flow after the device received an OTA update notification. Then, we will look into the details of the installation process:

  1. After an OTA update notification is received by the device, main system downloads the OTA package to /cache/update.zip.
  2. Main system writes a --update_package=/cache/update.zip command to /cache/recovery/command.
  3. Main system reboots the ...

Get Android System Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.