diff --git a/util/src/sandbox_utils.cpp b/util/src/sandbox_utils.cpp index 88a46f40a12f9908a491323527b7caba0a182d1d..2f1beed3e13bddb9f902ca0a9c5cf79f193a1d6b 100644 --- a/util/src/sandbox_utils.cpp +++ b/util/src/sandbox_utils.cpp @@ -77,7 +77,6 @@ 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_; @@ -723,7 +722,7 @@ int32_t SandboxUtils::SetAppSandboxProperty(const ClientSocket::AppProperty *app APPSPAWN_CHECK(rc == 0, return rc, "unshare failed, packagename is %s", bundleName.c_str()); // to make wargnar work and check app sandbox switch - if (access(WARGNAR_DEVICE_PATH, F_OK) == 0 || (CheckTotalSandboxSwitchStatus(appProperty) == false) || + if ((CheckTotalSandboxSwitchStatus(appProperty) == false) || (CheckAppSandboxSwitchStatus(appProperty) == false)) { rc = DoSandboxRootFolderCreateAdapt(sandboxPackagePath); } else {