diff --git a/en/device-dev/subsystems/subsys-toolchain.md b/en/device-dev/subsystems/subsys-toolchain.md index 193fb093ce8836530a90726e93a5c7aa1a226ce6..baceec80d1887fd681d94908a126adeb34706aca 100644 --- a/en/device-dev/subsystems/subsys-toolchain.md +++ b/en/device-dev/subsystems/subsys-toolchain.md @@ -2,6 +2,6 @@ - **[bytrace Usage Guidelines](subsys-toolchain-bytrace-guide.md)** -- **[hdc\_std Usage Guidelines](oem_subsys_toolchain_hdc_guide.md)** +- **[hdc\_std Usage Guidelines](subsys_toolchain_hdc_guide.md)** diff --git a/en/device-dev/subsystems/subsys-utils.md b/en/device-dev/subsystems/subsys-utils.md index 53ee39995f7021e3f563ee7cc6ceb08a2353f247..d9da7eb8e4903fcaeae188a8f45367037d9a848c 100644 --- a/en/device-dev/subsystems/subsys-utils.md +++ b/en/device-dev/subsystems/subsys-utils.md @@ -1,9 +1,9 @@ # Utils -- **[Utils Overview](oem_subsys_utils_des.md)** +- **[Utils Overview](subsys_utils_overview.md)** -- **[Utils Development Guidelines](oem_subsys_utils_guide.md)** +- **[Utils Development Guidelines](subsys_utils_guide.md)** -- **[Utils FAQ](oem_subsys_utils_faq.md)** +- **[Utils FAQ](subsys_utils_faqs.md)** diff --git a/en/device-dev/subsystems/subsys_utils_faqs.md b/en/device-dev/subsystems/subsys_utils_faqs.md new file mode 100644 index 0000000000000000000000000000000000000000..0f1ed0e9f06e62e99e05c81ea78333f80bffd007 --- /dev/null +++ b/en/device-dev/subsystems/subsys_utils_faqs.md @@ -0,0 +1,20 @@ +# 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"); +``` + diff --git a/en/device-dev/subsystems/subsys_utils_guide.md b/en/device-dev/subsystems/subsys_utils_guide.md new file mode 100644 index 0000000000000000000000000000000000000000..1988c6b9c43fb96ab6cd04a24fb5148dc8a3648e --- /dev/null +++ b/en/device-dev/subsystems/subsys_utils_guide.md @@ -0,0 +1,284 @@ +# Utils Development Guidelines + +## Available APIs + +**Table 1** APIs for file operations + + +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | +Key that identifies the device. The value is in the IP address:Port number format or is a USB serial number. + |
+
+ | ++ | +
+ + | ++ + | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ + | ++ + | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ + | ++ + | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ + | ++ + | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ + | ++ + | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ + | ++ + | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ + | ++ + | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ + | ++ + | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ + | ++ + | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ + | ++ + | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ + | ++ + | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +
+ | ++ | +