Package com.unitech.api.fota
Class FotaCtrl
java.lang.Object
com.unitech.api.fota.FotaCtrl
The type Fota ctrl.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionandroid.os.BundlesilentOSUpdate(String updateZipPath) Silent os update.
-
Field Details
-
BUNDLE_ERROR_CODE
- See Also:
-
BUNDLE_ERROR_MSG
- See Also:
-
RESULT_CODE_ERROR
public static final int RESULT_CODE_ERROR- See Also:
-
RESULT_CODE_SUCCESS
public static final int RESULT_CODE_SUCCESS- See Also:
-
-
Constructor Details
-
FotaCtrl
public FotaCtrl(android.content.Context context) Instantiates a new Fota ctrl.- Parameters:
context- the context
-
-
Method Details
-
silentOSUpdate
Silent os update.- Parameters:
updateZipPath- the update zip path (String)- Returns:
- A bundle contains the error code and message
int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
String errorMsg = bundle.getString("errorMsg");
-