mirror of
https://gitee.com/openharmony/startup_init
synced 2024-11-23 16:20:00 +00:00
delete private param when get param form public persistfile
Signed-off-by: cat <chenjinxiang3@huawei.com>
This commit is contained in:
parent
decf9d2ddc
commit
4b38a9d9fb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user