From d27df1dfd872f68dfb8c3b523c75df4f97d70d86 Mon Sep 17 00:00:00 2001 From: Zheng Yongjun Date: Thu, 23 Jun 2022 11:30:38 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E4=BD=BF=E8=83=BD=E9=83=A8=E5=88=86?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=9C=BA=E6=99=AF=E7=9A=84=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E6=B2=99=E7=AE=B1"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 7037e5c1ae657f462131ae081168e7d7f90a9877. Signed-off-by: Zheng Yongjun --- util/src/sandbox_utils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/src/sandbox_utils.cpp b/util/src/sandbox_utils.cpp index 7bb17947..32bfec3e 100755 --- a/util/src/sandbox_utils.cpp +++ b/util/src/sandbox_utils.cpp @@ -78,6 +78,7 @@ namespace { const char *TARGET_NAME = "target-name"; const char *FLAGS_POINT = "flags-point"; const char *FLAGS = "flags"; + const char *WARGNAR_DEVICE_PATH = "/3rdmodem"; } nlohmann::json SandboxUtils::appSandboxConfig_; @@ -756,7 +757,7 @@ int32_t SandboxUtils::SetAppSandboxProperty(const ClientSocket::AppProperty *app } // to make wargnar work and check app sandbox switch - if ((CheckTotalSandboxSwitchStatus(appProperty) == false) || + if (access(WARGNAR_DEVICE_PATH, F_OK) == 0 || (CheckTotalSandboxSwitchStatus(appProperty) == false) || (CheckAppSandboxSwitchStatus(appProperty) == false)) { rc = DoSandboxRootFolderCreateAdapt(sandboxPackagePath); } else { -- Gitee