OpenHarmony开发者论坛

标题: OpenHarmony应用安装失败 错误码:9568293 失败原因:MSG\_ERR\_INSTALL\_CHECK\_SYSCAP\_FAILED 类分析 [打印本页]

作者: onefan    时间: 2025-1-13 09:07
标题: OpenHarmony应用安装失败 错误码:9568293 失败原因:MSG\_ERR\_INSTALL\_CHECK\_SYSCAP\_FAILED 类分析
[md]### 1.错误码:9568293 失败原因:MSG\_ERR\_INSTALL\_CHECK\_SYSCAP\_FAILED 类分析

安装报错信息:
C:\\Users\\Administrator>hdc install -p D:\\backup\\n017036\\Desktop\\xxx.hap
[Info]App install path:\\backup\\n017036\\Desktop\\xxx.hap, queuesize:0, msg:error: failed to install bundle. code:9568293 message:[MSG\_ERR\_INSTALL\_CHECK\_SYSCAP\_FAILED]
AppMod finish

##### 日志开关:

hilog -Q pidoff
hilog -b D
hilog -p off

##### 日志打印过滤关键字:

hilog | grep -i syscap

##### 日志打印:

01-09 23:49:43.729 2957 3401 D C01120/BundleMgrService: [bundle\_install\_checker.cpp(CheckSysCap):154] check hap syscaps start.
01-09 23:49:43.729 2957 3401 D C01120/BundleMgrService: [bundle\_parser.cpp(ParseSysCap):176] Parse sysCaps from /data/service/el1/public/bms/bundle\_manager\_service/security\_stream\_install/1736437779194/17364377761/b0ac394bc.hap
01-09 23:49:43.740 2957 3401 D C01120/BundleMgrService: [bundle\_parser.cpp(ParseSysCap):214] Parse sysCaps str success01-09 23:49:43.741 2957 3401 D C01120/BundleMgrService: [bundle\_install\_checker.cpp(CheckSysCap):171] check syscap(SystemCapability.ArkUI.ArkUI.Full)
01-09 23:49:43.741 2957 3401 D C01120/BundleMgrService: [bundle\_install\_checker.cpp(CheckSysCap):171] check syscap(SystemCapability.ArkUI.ArkUI.Napi)
01-09 23:49:43.741 2957 3401 D C01120/BundleMgrService: [bundle\_install\_checker.cpp(CheckSysCap):171] check syscap(SystemCapability.ArkUI.ArkUI.Lite)
01-09 23:49:43.742 2957 3401 E C02c0b/BEGET: [init\_syscap.c:51]Failed get paramName.

##### 01-09 23:49:43.742 2957 3401 E C01120/BundleMgrService: [bundle\_install\_checker.cpp(CheckSysCap):174] check syscap failed which SystemCapability.ArkUI.ArkUI.Lite is not exsit

01-09 23:49:43.742 2957 3401 E C01120/BundleMgrService: [base\_bundle\_installer.cpp(ProcessBundleInstall):829] hap syscap check failed 8519715
01-09 23:49:43.742 2957 3401 D C01120/BundleMgrService: [status\_receiver\_proxy.cpp(TransformResult):641] result transformed is 9568293, [MSG\_ERR\_INSTALL\_CHECK\_SYSCAP\_FAILED]
01-09 23:49:43.841 3385 3389 I C01120/BundleTool: [status\_receiver\_impl.cpp(OnFinished):43] on finished result is 9568293, [MSG\_ERR\_INSTALL\_CHECK\_SYSCAP\_FAILED]
01-09 23:49:43.841 3385 3385 I C01120/BundleTool: message:[MSG\_ERR\_INSTALL\_CHECK\_SYSCAP\_FAILED]

#### 原因:当前开发板不支持SystemCapability.ArkUI.ArkUI.Lite能力。

check syscap failed which SystemCapability.ArkUI.ArkUI.Lite is not exsit

#### 解决方案:

OpenHarmony-4.0-Release分支的arkui\_ace\_engine仓的bundle.json中增加SystemCapability.ArkUI.ArkUI.Lite
“syscap”: [
“SystemCapability.ArkUI.ArkUI.Full”
],
**改为**
“syscap”: [
“SystemCapability.ArkUI.ArkUI.Full”,
“SystemCapability.ArkUI.ArkUI.Lite”
],
重新编译版本即可。

##### 也可以直接修改以下三个文件替换到开发板支持。

路径如下:
./system/etc/syscap.json:
./system/etc/param/syscap.para
./system/etc/SystemCapability.json
[/md]
作者: wangzhongjie    时间: 3 天前
应用模型 ArkUI 编译构建
814  0
onefan 只看该作者 发表于 2025-1-13 09:07:24
1.错误码:9568293 失败原因:MSG_ERR_INSTALL_CHECK_SYSCAP_FAILED 类分析
安装报错信息:
C:\Users\Administrator>hdc install -p D:\backup\n017036\Desktop\xxx.hap
[Info]App install path:\backup\n017036\Desktop\xxx.hap, queuesize:0, msg:error: failed to install bundle. code:9568293 message:[MSG_ERR_INSTALL_CHECK_SYSCAP_FAILED]
AppMod finish

日志开关:
hilog -Q pidoff
hilog -b D
hilog -p off

日志打印过滤关键字:
hilog | grep -i syscap

日志打印:
01-09 23:49:43.729 2957 3401 D C01120/BundleMgrService: [bundle_install_checker.cpp(CheckSysCap):154] check hap syscaps start.
01-09 23:49:43.729 2957 3401 D C01120/BundleMgrService: [bundle_parser.cpp(ParseSysCap):176] Parse sysCaps from /data/service/el1/public/bms/bundle_manager_service/security_stream_install/1736437779194/17364377761/b0ac394bc.hap
01-09 23:49:43.740 2957 3401 D C01120/BundleMgrService: [bundle_parser.cpp(ParseSysCap):214] Parse sysCaps str success01-09 23:49:43.741 2957 3401 D C01120/BundleMgrService: [bundle_install_checker.cpp(CheckSysCap):171] check syscap(SystemCapability.ArkUI.ArkUI.Full)
01-09 23:49:43.741 2957 3401 D C01120/BundleMgrService: [bundle_install_checker.cpp(CheckSysCap):171] check syscap(SystemCapability.ArkUI.ArkUI.Napi)
01-09 23:49:43.741 2957 3401 D C01120/BundleMgrService: [bundle_install_checker.cpp(CheckSysCap):171] check syscap(SystemCapability.ArkUI.ArkUI.Lite)
01-09 23:49:43.742 2957 3401 E C02c0b/BEGET: [init_syscap.c:51]Failed get paramName.

01-09 23:49:43.742 2957 3401 E C01120/BundleMgrService: [bundle_install_checker.cpp(CheckSysCap):174] check syscap failed which SystemCapability.ArkUI.ArkUI.Lite is not exsit
01-09 23:49:43.742 2957 3401 E C01120/BundleMgrService: [base_bundle_installer.cpp(ProcessBundleInstall):829] hap syscap check failed 8519715
01-09 23:49:43.742 2957 3401 D C01120/BundleMgrService: [status_receiver_proxy.cpp(TransformResult):641] result transformed is 9568293, [MSG_ERR_INSTALL_CHECK_SYSCAP_FAILED]
01-09 23:49:43.841 3385 3389 I C01120/BundleTool: [status_receiver_impl.cpp(OnFinished):43] on finished result is 9568293, [MSG_ERR_INSTALL_CHECK_SYSCAP_FAILED]
01-09 23:49:43.841 3385 3385 I C01120/BundleTool: message:[MSG_ERR_INSTALL_CHECK_SYSCAP_FAILED]

原因:当前开发板不支持 SystemCapability.ArkUI.ArkUI.Lite 能力。
check syscap failed which SystemCapability.ArkUI.ArkUI.Lite is not exsit

解决方案:
OpenHarmony-4.0-Release 分支的 arkui_ace_engine 仓的 bundle.json 中增加 SystemCapability.ArkUI.ArkUI.Lite
“syscap”: [
“SystemCapability.ArkUI.ArkUI.Full”
],
改为
“syscap”: [
“SystemCapability.ArkUI.ArkUI.Full”,
“SystemCapability.ArkUI.ArkUI.Lite”
],
重新编译版本即可。

也可以直接修改以下三个文件替换到开发板支持。
路径如下:
./system/etc/syscap.json:
./system/etc/param/syscap.para
./system/etc/SystemCapability.json
请教下这三个文件修改哪些内容替换包下呢
作者: onefan    时间: 3 天前
回复 wangzhongjie: 要看你实际安装应用时 缺少的syscap日志信息




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5