From 5fad5dcee3b0294298e3e192ba02eae0d3021fab Mon Sep 17 00:00:00 2001 From: Caisking Date: Sat, 20 Sep 2025 22:50:35 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9=E6=81=A2=E5=A4=8D=E5=87=BA?= =?utf8?q?=E5=8E=82=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/thunderbird/src/ThunderBirdModel.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp index 86544a521..72fe64853 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp @@ -285,11 +285,18 @@ return false; } //删除kvstore - if(uapi_delete_folder("/user/kvstore")==-1) + if(uapi_delete_folder("/user/system/kvstore")==-1) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "恢复出厂: 删除kvstore失败 /user/kvstore"); return false; } + //删除configmodel.json + if(uapi_delete_folder("/user/system/ConfigModel.json")==-1) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "恢复出厂: 删除ConfigModel.json失败 /user/system/ConfigModel.json"); + return false; + } + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "恢复出厂: 成功"); //重启 uapi_reboot_device(); -- 2.17.1