1 Star 0 Fork 4.9K

bill / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
utils-faq.md 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
NEEN 提交于 2021-03-12 17:59 . !197 Docs Update version 1.0.1

Utils FAQ

1. Failure in running the KV store on the LiteOS Cortex-A kernel (Hi3516 or Hi3518) due to incorrect path setting for the KV store

Problem

When the LiteOS Cortex-A kernel (Hi3516 or Hi3518 platform) directly calls the API provided by the KV store, the compiled executable program fails to run.

Possible Causes

The compiled executable program is run directly without being converted to an application using AbilityKit APIs. In this case, the Bundle Manager Service (BMS) cannot correctly set the path for storing application data during application installation. As a result, the KV store fails to run.

Solution

Call the UtilsSetEnv function of the KV store to set the data storage path.

UtilsSetEnv("/storage/com.huawei.kv");
1
https://gitee.com/ximeibaba/docs.git
git@gitee.com:ximeibaba/docs.git
ximeibaba
docs
docs
master

搜索帮助