subsys-utils-faqs.md 858 字节
Newer Older
W
wusongqing 已提交
1 2
# Utils FAQ<a name="EN-US_TOPIC_0000001058735275"></a>

3
## 1. Failed to run the KV store on the LiteOS Cortex-A kernel \(Hi3516 or Hi3518\) due to incorrect path setting for the KV store<a name="section2041345718513"></a>
W
wusongqing 已提交
4

5
**Symptom**
W
wusongqing 已提交
6 7 8 9 10

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**

11
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.
W
wusongqing 已提交
12 13 14

**Solution**

15
Call the **UtilsSetEnv** function of the KV store to set the data storage path.
W
wusongqing 已提交
16 17

```
18
UtilsSetEnv("/storage/com.example.kv");
W
wusongqing 已提交
19 20
```