From a2454e26c941c382d95abaf35fef9ca20ea62a0f Mon Sep 17 00:00:00 2001 From: cuiruibin Date: Thu, 27 Jun 2024 21:03:05 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=20Signed-off-by:=20cuiruibin=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interfaces/innerkits/native/file_uri/src/file_uri.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/interfaces/innerkits/native/file_uri/src/file_uri.cpp b/interfaces/innerkits/native/file_uri/src/file_uri.cpp index 2973a554a..6333a18e5 100644 --- a/interfaces/innerkits/native/file_uri/src/file_uri.cpp +++ b/interfaces/innerkits/native/file_uri/src/file_uri.cpp @@ -88,7 +88,6 @@ string FileUri::GetRealPath() (access(realPath.c_str(), F_OK) == 0 || CheckFileManagerFullMountEnable())) { return realPath; } - if (((bundleName != "") && (bundleName != CommonFunc::GetSelfBundleName())) || uri_.ToString().find(NETWORK_PARA) != string::npos) { realPath = PATH_SHARE + MODE_RW + bundleName + sandboxPath; -- Gitee From 7bf231326901af6af754b96e53b167e2efbdd9c1 Mon Sep 17 00:00:00 2001 From: cuiruibin Date: Tue, 16 Jul 2024 01:57:42 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E6=9B=B4=E6=96=B0=20Signed-off-by:=20cuiruib?= =?UTF-8?q?in=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interfaces/innerkits/native/file_uri/src/file_uri.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/interfaces/innerkits/native/file_uri/src/file_uri.cpp b/interfaces/innerkits/native/file_uri/src/file_uri.cpp index 6333a18e5..0f1ab8176 100644 --- a/interfaces/innerkits/native/file_uri/src/file_uri.cpp +++ b/interfaces/innerkits/native/file_uri/src/file_uri.cpp @@ -39,6 +39,7 @@ const std::string MEDIA_AUTHORITY = "media"; const std::string NETWORK_PARA = "?networkid="; const std::string BACKFLASH = "/"; const std::string FULL_MOUNT_ENABLE_PARAMETER = "const.filemanager.full_mount.enable"; + static bool CheckFileManagerFullMountEnable() { char value[] = "false"; -- Gitee