From 0eba7ec76ea0f814caa05d78adb3f3d334138b1a Mon Sep 17 00:00:00 2001 From: VincentPPP Date: Mon, 1 Aug 2022 06:24:35 +0000 Subject: [PATCH] make app separation work --- appdata-sandbox.json | 31 ++++++++++++++++------ appdata-sandbox64.json | 60 +++++++++++++++++++----------------------- 2 files changed, 50 insertions(+), 41 deletions(-) diff --git a/appdata-sandbox.json b/appdata-sandbox.json index edb87a4c..60f23949 100755 --- a/appdata-sandbox.json +++ b/appdata-sandbox.json @@ -153,15 +153,30 @@ } ], "flags-point" : [{ - "flags": "NOT_SUPPORTED", - "sandbox-root" : "/mnt/sandbox/", - "mount-paths" : [{ - "src-path" : "/data/app/el1/bundle/public/", - "sandbox-path" : "/data/bundles/", - "sandbox-flags" : [ "bind", "rec" ], - "check-action-status": "true" + "flags": "DLP_MANAGER", + "sandbox-root" : "/mnt/sandbox/", + "mount-paths" : [{ + "src-path" : "/data/app/el2//base/", + "sandbox-path" : "/data/storage/el2/base", + "sandbox-flags" : [ "bind", "rec" ], + "check-action-status": "false" + },{ + "src-path" : "/data/app/el1//database/", + "sandbox-path" : "/data/storage/el1/database", + "sandbox-flags" : [ "bind", "rec" ], + "check-action-status": "false" + }, { + "src-path" : "/data/app/el2//database/", + "sandbox-path" : "/data/storage/el2/database", + "sandbox-flags" : [ "bind", "rec" ], + "check-action-status": "false" + }, { + "src-path" : "/data/app/el1//base/", + "sandbox-path" : "/data/storage/el1/base", + "sandbox-flags" : [ "bind", "rec" ], + "check-action-status": "false" } - ]} + ]} ], "symbol-links" : [ ] diff --git a/appdata-sandbox64.json b/appdata-sandbox64.json index e8aaf963..507d5db3 100644 --- a/appdata-sandbox64.json +++ b/appdata-sandbox64.json @@ -161,6 +161,33 @@ "check-action-status": "false" } ], + "flags-point" : [{ + "flags": "DLP_MANAGER", + "sandbox-root" : "/mnt/sandbox/", + "mount-paths" : [{ + "src-path" : "/data/app/el2//base/", + "sandbox-path" : "/data/storage/el2/base", + "sandbox-flags" : [ "bind", "rec" ], + "check-action-status": "false" + },{ + "src-path" : "/data/app/el1//database/", + "sandbox-path" : "/data/storage/el1/database", + "sandbox-flags" : [ "bind", "rec" ], + "check-action-status": "false" + }, { + "src-path" : "/data/app/el2//database/", + "sandbox-path" : "/data/storage/el2/database", + "sandbox-flags" : [ "bind", "rec" ], + "check-action-status": "false" + }, { + "src-path" : "/data/app/el1//base/", + "sandbox-path" : "/data/storage/el1/base", + "sandbox-flags" : [ "bind", "rec" ], + "check-action-status": "false" + } + ]} + ], + "symbol-links" : [ ] }] @@ -214,39 +241,6 @@ ], "symbol-links" : [] }], - "com.ohos.wps" : [{ - "sandbox-switch": "ON", - "sandbox-root" : "/mnt/sandbox/", - "mount-paths" : [ - ], - "flags-point" : [{ - "flags": "DLP_MANAGER", - "sandbox-root" : "/mnt/sandbox/", - "mount-paths" : [{ - "src-path" : "/data/app/el2//base/", - "sandbox-path" : "/data/storage/el2/base", - "sandbox-flags" : [ "bind", "rec" ], - "check-action-status": "false" - },{ - "src-path" : "/data/app/el1//database/", - "sandbox-path" : "/data/storage/el1/database", - "sandbox-flags" : [ "bind", "rec" ], - "check-action-status": "false" - }, { - "src-path" : "/data/app/el2//database/", - "sandbox-path" : "/data/storage/el2/database", - "sandbox-flags" : [ "bind", "rec" ], - "check-action-status": "false" - }, { - "src-path" : "/data/app/el1//base/", - "sandbox-path" : "/data/storage/el1/base", - "sandbox-flags" : [ "bind", "rec" ], - "check-action-status": "false" - } - ]} - ], - "symbol-links" : [] - }], "com.ohos.dlpmanager" : [{ "sandbox-switch": "ON", "sandbox-root" : "/mnt/sandbox/", -- Gitee