[经验分享] OpenHarmony应用安装失败 错误码:9568293 失败原因:MSG\_ERR\_INSTALL\_CHECK\_SYSCAP\_FAILED 类分析

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:D:\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

©著作权归作者所有,转载或内容合作请联系作者

您尚未登录,无法参与评论,登录后可以:
参与开源共建问题交流
认同或收藏高质量问答
获取积分成为开源共建先驱

精彩评论2

wangzhongjie

沙发 发表于 昨天 13:46
应用模型 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

发表于 2025-4-14 17:06  IP属地: 河南省郑州市

回复 wangzhongjie: 要看你实际安装应用时 缺少的syscap日志信息

【1 条回复】

Copyright   ©2025  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部