6#include <UserEvent.idl>
Firmware management methods
Info getInfo()
Retrieve the firmware information.
string getVersion()
Returns the currently installed firmware version.
ImageStatus getImageStatus()
Get the current firmware image upload/download status.
void factoryReset()
Reset the device configuration to factory defaults.
void startUpdate(in vector< UpdateFlags > flags)
Launch the firmware update process.
int manufacturingReset()
Semi-hard factory reset for manufacturing.
void discardImage()
Discard the currently uploaded firmware image, cancel the update.
int hardFactoryReset()
Reset all device data to factory defaults.
void reboot()
Reboot the device.
vector< UpdateHistoryEntry > getUpdateHistory()
Fetch the firmware update history.
boolean getImageInfo(out ImageInfo info)
Return information about a currently uploaded firmware image.
UpdateFlags
Flags for startUpdate() method.
@ CROSS_OEM
Ignore version, product and OEM constraints.
@ ALLOW_UNTRUSTED
Allow untrusted firmwares (ignored when secure boot is active)
@ CROSS_HW
Ignore hardware constraints.
UpdateHistoryStatus
Firmware update history status
@ FAILED
The update failed.
@ INCOMPLETE
The update was not completed.
@ SUCCESSFUL
The update was successfully completed.
ImageState
Image upload/download state.
@ UPLOADING
A firmware image is currently being uploaded.
@ COMPLETE
A complete image has been successfully uploaded/downloaded.
@ UPLOAD_FAILED
There was a problem uploading an image to the device.
@ DOWNLOADING
The device is downloading a firmware image from a URL.
@ DOWNLOAD_FAILED
There was a problem downloading the image from a URL.
@ NONE
No firmware image has been uploaded/downloaded.
Event: Firmware updated successfully.
Event: Firmware update base event.
string newVersion
Firmware version the device is being upgraded to.
string oldVersion
Firmware version the device is being upgraded from.
Event: Firmware update failed.
Event: Firmware update started.
Event: Firmware validation failed.
string version
Firmware version number
string product
Firmware product type
string platform
Hardware platform.
Firmware image information
boolean signature_present
true if the image is signed
string hwid_blacklist
Hardware ID blacklist.
string version
Firmware image version
boolean model_list_present
true if the image includes a supported models list
string min_downgrade_version
Minimum image version for running firmware.
boolean signature_good
true if the signature is valid
string hwid_whitelist
Hardware ID whitelist.
string signed_by
Signature issuer.
boolean model_supported
true if the model is found on the support list
boolean compatible
true if the image is compatible with this device
string product
Product name.
boolean certificate_good
true if the key certificate is valid
string platform
Platform name.
string certified_by
Key certificate issuer.
boolean valid
The file is a valid firmware image.
string min_required_version
Minimum running firmware version for image.
Image upload/download status.
int size_done
Progress of the running upload or download (if available)
string error_message
Error message; empty if there was no error.
ImageState state
Image upload/download state.
time time_started
UNIX timestamp (UTC) of the last state change (if available)
int size_total
Total size of the image (if available)
Event: System shutdown started.
Event: System startup finished.
Firmware update history entry TODO: implement CR# 45668 on next interface change add comment field ba...
string oldVersion
Previous firmware version.
string imageMD5
MD5 hash of update image.
string imageVersion
Firmware version of update image.
UpdateHistoryStatus status
Update status.
time timestamp
UNIX timestamp (UTC) when the update was started.
Common base for all events.