From 240f6d1a9b1d81d6c5b3a337c04c516513249e53 Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Sat, 9 Apr 2022 17:24:47 +0800 Subject: [PATCH] IssueNo: #I51VJD:modify permission flag Description:modify permission flag Sig:SIG_ApplicaitonFramework Feature or Bugfix:BugFix Binary Source:No Signed-off-by: wangtiantian --- services/bundlemgr/src/bundle_permission_mgr.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/bundlemgr/src/bundle_permission_mgr.cpp b/services/bundlemgr/src/bundle_permission_mgr.cpp index 15223c0c..284fc149 100644 --- a/services/bundlemgr/src/bundle_permission_mgr.cpp +++ b/services/bundlemgr/src/bundle_permission_mgr.cpp @@ -317,7 +317,7 @@ std::vector BundlePermissionMgr::GetPermission perState.isGeneral = true; perState.resDeviceID.emplace_back(innerBundleInfo.GetBaseApplicationInfo().deviceId); perState.grantStatus.emplace_back(AccessToken::PermissionState::PERMISSION_DENIED); - perState.grantFlags.emplace_back(AccessToken::PermissionFlag::PERMISSION_USER_SET); + perState.grantFlags.emplace_back(AccessToken::DEFAULT_PERMISSION_FLAGS); permStateFullList.emplace_back(perState); } } else { @@ -351,7 +351,8 @@ bool BundlePermissionMgr::InnerGrantRequestPermissions(const std::vector