Click or drag to resize

Intents.ActionSystemFirmwareUpgrade Field

ACTION_SYSTEM_FIRMWARE_UPGRADE This intent allows to request a device firmware upgrade.

Namespace: Com.Datalogic.Device
Assembly: datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
VB
public const String ActionSystemFirmwareUpgrade = "value"

Field Value

Type: String
Remarks
ACTION_SYSTEM_FIRMWARE_UPGRADE This intent allows to request a device firmware upgrade.

The intent will have the following extra values:

EXTRA_SYSTEM_FIRMWARE_UPGRADE_FILE_PATH - Path of the fw to be used for the upgrade.
EXTRA_SYSTEM_FIRMWARE_UPGRADE_REBOOT - To request a reboot device after a successful update.
EXTRA_SYSTEM_FIRMWARE_UPGRADE_RESET - To request a device reset after a successful update.
EXTRA_SYSTEM_FIRMWARE_UPGRADE_WIPE_ESIM_PROFILES - To request the wipe of all the eSIM profiles after a successful update.
The intent can be sent as a broadcast intent, a startService intent or a startActivity intent.

broadcast intent adb example:

 adb shell am broadcast -a com.datalogic.systemupdate.action.FIRMWARE_UPDATE -n com.datalogic.systemupdate/.SystemUpgradeReceiver
 --es path /sdcard/ota.zip
 --ei reset 0
 --ei reboot 1
 --ei wipe_esim_profiles 1
 

In addition to the broadcast intent a startService intent or a startActivity intent can be used with the same extra data of the broadcast intent.
Pay attention that with startService intent the extra data EXTRA_SYSTEM_FIRMWARE_UPGRADE_ACTION must be specified with the value 2 while for the broadcast and the startActivity intents it is implicit.

startService intent adb example:

 adb shell am startservice -n com.datalogic.systemupdate/.SystemUpgradeService
 --ei action 2
 --es path /sdcard/ota.zip
 --ei reset 0
 --ei reboot 1
 --ei wipe_esim_profiles 1
 

startActivity intent adb example:

 adb shell am start -n com.datalogic.systemupdate/.SystemUpgradeActivity
 --es path /sdcard/ota.zip
 --ei reset 0
 --ei reboot 1
 --ei wipe_esim_profiles 1
 

[Android Documentation]

See Also