public class SafeUpdater extends Object
Error code | DAM update | Firmware update |
---|---|---|
0 | GINA_NOERROR | GINA_NOERROR |
139264 | GINA_ERROR_UPDATE_FLASH_NOERROR | GINA_STATUS_FOTA |
139265 | GINA_ERROR_UPDATE_FLASH_FAIL | GINA_ERROR_UPDATE_FLASH_FAIL |
139266 | GINA_ERROR_UPDATE_FLASH_FULL | GINA_ERROR_UPDATE_FLASH_FULL |
139267 | GINA_ERROR_UPDATE_FLASH_WRONG_PARA | GINA_ERROR_UPDATE_FLASH_WRONG_PARA |
139268 | GINA_ERROR_UPDATE_FLASH_SCRUB_PENDING | GINA_ERROR_UPDATE_FLASH_SCRUB_PENDING |
139269 | GINA_ERROR_UPDATE_FLASH_SCRUB_ERROR | GINA_ERROR_UPDATE_FLASH_SCRUB_ERROR |
139295 | GINA_ERROR_UPDATE_RESULT_CRC_ERROR | GINA_ERROR_UPDATE_RESULT_CRC_ERROR |
139296 | \ | GINA_ERROR_UPDATE_RESULT_SAME_FW |
139297 | \ | GINA_ERROR_UPDATE_RESULT_FW_MISMATCH |
139298 | GINA_ERROR_UPDATE_RESULT_FATAL | GINA_ERROR_UPDATE_RESULT_FATAL |
139303 | GINA_ERROR_UPDATE_RESULT_NO_DAM | GINA_ERROR_UPDATE_RESULT_NO_FOTA |
Modifier and Type | Method and Description |
---|---|
static void |
updateFirmware(InputStream binaryToFlash)
For firmware update, a delta file can be use instead of a complete firmware binary.
|
static void |
updateFirmware(String binaryURL)
For firmware update, a delta file can be use instead of a complete firmware binary.
|
static void |
updateKernel(InputStream binaryToFlash) |
static void |
updateKernel(String binaryURL) |
public static void updateFirmware(InputStream binaryToFlash) throws SafeUpdaterException
binaryToFlash
- the InputStream containing the binary file to use.SafeUpdaterException
- for any error that happens during update.public static void updateFirmware(String binaryURL) throws SafeUpdaterException
binaryURL
- URL to the binary file to use.SafeUpdaterException
- for any error that happens during update.public static void updateKernel(InputStream binaryToFlash) throws SafeUpdaterException
binaryToFlash
- stream that contains the Kernel binary data.SafeUpdaterException
- for any error that happens during update.public static void updateKernel(String binaryURL) throws SafeUpdaterException
binaryURL
- URL of the Kernel binary file.SafeUpdaterException
- for any error that happens during update.