diff --git a/runtime/main/extend/systemplugin/napi/ohos_update.js b/runtime/main/extend/systemplugin/napi/ohos_update.js index 1e45391fbb83d56240842a114e80180de78d83af..a6a5f0c536c27cebbc4ec498dd8af3ebd06416f1 100644 --- a/runtime/main/extend/systemplugin/napi/ohos_update.js +++ b/runtime/main/extend/systemplugin/napi/ohos_update.js @@ -345,16 +345,18 @@ const Order = { } const UpgradeStatus = { - WAITING_DOWNLOAD: 20, - DOWNLOADING: 21, - DOWNLOAD_PAUSED: 22, + CHECK_SUCCESS: 12, + DOWNLOADING: 20, + DOWNLOAD_PAUSED: 21, + DOWNLOAD_CANCEL: 22, DOWNLOAD_FAIL: 23, - WAITING_INSTALL: 30, - UPDATING: 31, - WAITING_APPLY: 40, - APPLYING: 41, - UPGRADE_SUCCESS: 50, - UPGRADE_FAIL: 51, + DOWNLOAD_SUCCESS: 24, + APPLYING: 80, + APPLY_FAILED: 81, + APPLY_SUCCESS: 82, + UPGRADING: 90, + UPGRADE_FAIL: 91, + UPGRADE_SUCCESS: 92 } const EventClassify = { @@ -507,4 +509,19 @@ const ComponentDescription = { const DescriptionFormat = { STANDARD: 0, SIMPLIFIED : 1, +} + +const CallResult = { + SUCCESS: 0, + FAIL: 100, + UN_SUPPORT: 801, + DEV_UPG_INFO_ERR: 102, + FORBIDDEN: 103, + IPC_ERR: 104, + APP_NOT_GRANTED: 201, + PARAM_ERR: 401, + TIME_OUT: 402, + DB_ERROR: 501, + IO_ERROR: 502, + NET_ERROR: 503 } \ No newline at end of file