!257 修改dlp应用的包名

Merge pull request !257 from zyj-alex/zhengyongjun/fix-common
This commit is contained in:
openharmony_ci 2022-06-06 06:21:53 +00:00 committed by Gitee
commit 33a061f69a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 4 additions and 3 deletions

View File

@ -239,7 +239,7 @@
],
"symbol-links" : []
}],
"ohos.samples.dlp" : [{
"com.ohos.dlpmanager" : [{
"sandbox-switch": "ON",
"sandbox-root" : "/mnt/sandbox/<PackageName>",
"mount-paths" : [{

View File

@ -244,7 +244,7 @@
],
"symbol-links" : []
}],
"ohos.samples.dlp" : [{
"com.ohos.dlpmanager" : [{
"sandbox-switch": "ON",
"sandbox-root" : "/mnt/sandbox/<PackageName>",
"mount-paths" : [{

View File

@ -54,6 +54,7 @@ namespace {
const std::string SANDBOX_DIR = "/mnt/sandbox/";
const std::string STATUS_CHECK = "true";
const std::string SBX_SWITCH_CHECK = "ON";
const std::string DLP_BUNDLENAME = "com.ohos.dlpmanager";
const char *ACTION_STATUS = "check-action-status";
const char *APP_BASE = "app-base";
const char *APP_RESOURCES = "app-resources";
@ -336,7 +337,7 @@ static int32_t HandleSpecialAppMount(const ClientSocket::AppProperty *appPropert
/* dlp application mount strategy */
/* dlp is an example, we should change to real bundle name later */
if (bundleName.find("dlp") != -1) {
if (bundleName.find(DLP_BUNDLENAME) != -1) {
if (fsType.empty()) {
return -1;
} else {