Interface MitacOtaManager.UpdateOtaListener

  • Enclosing class:
    MitacOtaManager

    public static interface MitacOtaManager.UpdateOtaListener
    OTA update's progress and result callback
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onError​(int errorCode)
      OTA upgrade error listener, return base OTA upgrade status code.
      void onProgress​(int progress)
      OTA Upgrade progress listener
    • Method Detail

      • onError

        void onError​(int errorCode)
        OTA upgrade error listener, return base OTA upgrade status code.
        • -1:ERROR Request failed due to a generic error.
        • 0:SUCCESS Request finished successfully。
        • 2:LOOKUP_FILE_ERROR Didn't find OTA package or OTA package not meet update conditions.
        • 3:LOW_POWER_ERROR Battery less than 30%.
        • 4:FILESYSTEM_COPIER_ERROR An update failed to apply due to file system copier
        • 5:POST_INSTALL_RUNNER_ERROR An update failed to apply due to an error in running
        • 6:PAYLOAD_MISMATCHED_TYPE_ERROR An update failed to apply due to a mismatching payload.
        • 7:INSTALL_DEVICE_OPEN_ERROR An update failed to apply due to an error in opening
        • 8:KERNEL_DEVICE_OPEN_ERROR An update failed to apply due to an error in opening
        • 9:DOWNLOAD_TRANSFER_ERROR An update failed to apply due to an error in fetching the payload.
        • 10:PAYLOAD_HASH_MISMATCH_ERROR An update failed to apply due to a mismatch in payload hash.
        • 11:PAYLOAD_SIZE_MISMATCH_ERROR An update failed to apply due to a mismatch in payload size.
        • 12:DOWNLOAD_PAYLOAD_VERIFICATION_ERROR An update failed to apply due to failing to verify payload signatures.
        • 13:UPDATING_IS_EXECUTING_ERROR. An update is already updating.
        • 14:UPDATED_NEED_REBOOT_ERROR. An update has applied, need reboot.
        • 51:PAYLOAD_TIMESTAMP_ERROR An update failed to apply due to a downgrade in payload timestamp.
        • 52:UPDATED_BUT_NOT_ACTIVE An update has been applied successfully but the new slot hasn't been set to active.
        Parameters:
        errorCode - Updated status code
      • onProgress

        void onProgress​(int progress)
        OTA Upgrade progress listener
        Parameters:
        progress - Upgrade percents in int