mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2025-02-17 02:29:23 +00:00
delete field
Signed-off-by: xuqian <xuqian65@huawei.com>
This commit is contained in:
parent
c8b3e5a839
commit
3365723200
@ -154,7 +154,6 @@ SandboxContext *GetSandboxContext(void)
|
||||
context->bundleHasWps = 0;
|
||||
context->dlpBundle = 0;
|
||||
context->appFullMountEnable = 0;
|
||||
context->dlpUiExtType = 0;
|
||||
context->sandboxSwitch = 1;
|
||||
context->sandboxShared = false;
|
||||
context->message = NULL;
|
||||
@ -188,7 +187,6 @@ static int InitSandboxContext(SandboxContext *context,
|
||||
context->bundleHasWps = strstr(context->bundleName, "wps") != NULL;
|
||||
context->dlpBundle = strcmp(GetProcessName(property), "com.ohos.dlpmanager") == 0;
|
||||
context->appFullMountEnable = sandbox->appFullMountEnable;
|
||||
context->dlpUiExtType = strstr(GetProcessName(property), "sys/commonUI") != NULL;
|
||||
|
||||
context->sandboxSwitch = 1;
|
||||
context->sandboxShared = false;
|
||||
|
@ -215,7 +215,6 @@ typedef struct TagSandboxContext {
|
||||
uint32_t sandboxShared : 1;
|
||||
uint32_t bundleHasWps : 1;
|
||||
uint32_t dlpBundle : 1;
|
||||
uint32_t dlpUiExtType : 1;
|
||||
uint32_t appFullMountEnable : 1;
|
||||
uint32_t nwebspawn : 1;
|
||||
uint32_t sandboxNsFlags;
|
||||
|
@ -82,9 +82,8 @@ static SandboxContext *TestGetSandboxContext(const AppSpawningCtx *property, int
|
||||
context->nwebspawn = nwebspawn;
|
||||
context->bundleName = GetBundleName(property);
|
||||
context->bundleHasWps = strstr(context->bundleName, "wps") != nullptr;
|
||||
context->dlpBundle = strstr(context->bundleName, "com.ohos.dlpmanager") != nullptr;
|
||||
context->dlpBundle = strcmp(GetProcessName(property), "com.ohos.dlpmanager") == 0;
|
||||
context->appFullMountEnable = 0;
|
||||
context->dlpUiExtType = strstr(GetProcessName(property), "sys/commonUI") != nullptr;
|
||||
|
||||
context->sandboxSwitch = 1;
|
||||
context->sandboxShared = false;
|
||||
|
@ -328,7 +328,6 @@ static SandboxContext *TestGetSandboxContext(const AppSpawningCtx *property, int
|
||||
context->bundleHasWps = strstr(context->bundleName, "wps") != NULL;
|
||||
context->dlpBundle = strcmp(GetProcessName(property), "com.ohos.dlpmanager") == 0;
|
||||
context->appFullMountEnable = 0;
|
||||
context->dlpUiExtType = strstr(GetProcessName(property), "sys/commonUI") != nullptr;
|
||||
|
||||
context->sandboxSwitch = 1;
|
||||
context->sandboxShared = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user