!3265 从非加密文件加载安全参数时跳过

Merge pull request !3265 from cat/newpersist1016
This commit is contained in:
openharmony_ci 2024-10-16 10:24:55 +00:00 committed by Gitee
commit 9bae39dd6d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -78,6 +78,8 @@ static bool IsPrivateParam(const char *param)
"persist.kernel.bundle_name.clouddrive",
"persist.kernel.bundle_name.photos",
"persist.kernel.bundle_name.filemanager",
"persist.hdc.mode",
"persist.hdc.mode.usb"
};
int size = sizeof(privatePersistParams) / sizeof(char*);
for (int i = 0; i < size; i++) {
@ -132,6 +134,7 @@ static bool GetPersistFilePath(char **path, char **tmpPath, int fileType)
if (ret != 0) {
PARAM_LOGE("rename failed %s", PARAM_PERSIST_SAVE_PATH);
}
isFullLoad = false;
} else {
CheckAndCreateDir(PARAM_PUBLIC_PERSIST_SAVE_PATH);
isFullLoad = false;