From: Caisking Date: Sat, 20 Sep 2025 14:50:35 +0000 (+0800) Subject: 修改恢复出厂路径 X-Git-Tag: leiniao_debug_1.0.0_20250922_020716~20 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F2348%2Fhead;p=mirrors%2FFD230.git 修改恢复出厂路径 --- 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();