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

 

Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐