diff --git a/util/src/sandbox_utils.cpp b/util/src/sandbox_utils.cpp index 7bb17947684eba141e60b01af868aedd8559831c..32bfec3eaf57b708c0cb28a6c3f0fd391a9d189a 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 {