查看: 85|回复: 0

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

[复制链接]

1

主题

1

回帖

13

积分

新手上路

积分
13
发表于 2025-3-30 15:39:00 | 显示全部楼层 |阅读模式
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 pidoffhilog -b Dhilog -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.hap01-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 851971501-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
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表