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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.