Once you have generated an update package, you can use it to update your system.
Follow the steps to update your system from the Android settings menu using an already generated package:
-
Place the update package you have generated anywhere inside the Android file system. It can be located either in the internal memory or in any removable device such as micro SD or USB stick.
-
Navigate to the Android settings and select the System category.
-
Select the System update option. A file explorer opens.
-
Browse to your update package file in the Android file system and select it.
-
Confirm the update package you want to use by selecting OK in the Update firmware dialog. The firmware update process starts.
Remember that the system will be restarted during the update process. |
You can also install an update package from a custom Android application using the Firmware update service API provided by Digi. See Firmware update API
Firmware update process
Once the firmware update process is triggered, it follows these steps:
-
Device reboots into recovery mode. The kernel and system in the recovery partition are booted instead of the kernel in the boot partition.
-
Recovery binary is started by init. It finds command-line arguments in /cache/recovery/command that point it to the update package.
-
Data is pulled from the package and used to update the boot, vendor, and system partitions. One of the new files on the system partition contains the contents of the new recovery partition.
-
Device reboots normally.
-
The newly updated boot partition is loaded, and it mounts and starts the newly updated system partition.
-
As part of normal startup, the system checks the contents of the recovery partition against the desired contents (previously stored as a file in /system). They are different, so the recovery partition is reprogrammed with the desired contents. On subsequent boots, the recovery partition already contains the new contents, so no reprogram is necessary.
-
The system update is complete.