{
#if !defined(_WIN32)
#ifndef XTS_SUPPORT
- int ret = UtilsSetEnv("/user");
+ int ret = UtilsSetEnv("/user/system");
WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "UtilsSetEnv /user ret = %d", ret);
#endif
#else
#ifndef SYSTEM_UPGRADE_VIEW_H
#define SYSTEM_UPGRADE_VIEW_H
-#ifndef XTS_SUPPORT
+#if !defined(XTS_SUPPORT) && !defined(SUPPORT_CAT1_SERVICE)
#include "View.h"
#include "components/ui_image_view.h"
#include "components/ui_label.h"
#include "components/ui_label_ext.h"
#include "components/ui_label_button_ext.h"
+#ifdef SUPPORT_CAT1_SERVICE
#include "cat1_ctl.h"
+#endif
#include "upg_common_porting.h"
#if USE_THISIOT
-#ifndef XTS_SUPPORT
+#if defined(XTS_SUPPORT) && defined(SUPPORT_CAT1_SERVICE)
#include "system/include/Systemupgrade.h"
#include "system/include/SystemPresenter.h"
#include <fstream>
#include "cJSON.h"
#include "ConfigModel.h"
+#ifdef SUPPORT_CAT1_SERVICE
#include "lwip/err.h"
+#include "lwip/apps/http_client.h"
+#endif
#include "power_display_service.h"
#include "cmsis_os2.h"
#include "los_memory.h"
#include "thread_init.h"
- #include "lwip/apps/http_client.h"
#include "tcxo.h"
#include "cat1_server.h"
#include "linux/delay.h"
{
#if !defined(_WIN32)
#ifndef XTS_SUPPORT
- int ret = UtilsSetEnv("/user");
+ int ret = UtilsSetEnv("/user/system");
WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "UtilsSetEnv /user ret = %d", ret);
#endif
#else
#include "ohos_types.h"
#include "utils_config.h"
-#ifdef XTS_SUPPORT
#define KVSTORE_PATH "kvstore"
-#else
-#define KVSTORE_PATH "user/system/kvstore"
-#endif
#define MAX_KEY_PATH 256
#define MAX_GET_VALUE_LEN 0x7FFFFFFF
static pthread_mutex_t g_kvGlobalMutex = PTHREAD_MUTEX_INITIALIZER;