diff --git a/frameworks/common/src/permission_map.cpp b/frameworks/common/src/permission_map.cpp index f5b3325e323906286124d88e02647f5387bf340b..b06c8950252252cda62908123df20f87c4ee00e5 100644 --- a/frameworks/common/src/permission_map.cpp +++ b/frameworks/common/src/permission_map.cpp @@ -626,7 +626,10 @@ const static std::vector> g_permMap = { {"ohos.permission.ACCESS_VIRTUAL_SCREEN", false}, {"ohos.permission.ACCESS_CUSTOM_RINGTONE", false}, {"ohos.permission.PERFORM_LOCAL_DEBUG", false}, - {"ohos.permission.ACCESS_STARTUPGUIDE", false} + {"ohos.permission.ACCESS_STARTUPGUIDE", false}, + {"ohos.permission.ACCESS_DEVAUTH_CRED_MGR", false}, + {"ohos.permission.ACCESS_DEVAUTH_CRED_PRIVILEGE", false}, + {"ohos.permission.ACCESS_DEVAUTH_CRED_AUTH", false} }; bool TransferPermissionToOpcode(const std::string& permission, uint32_t& opCode) diff --git a/services/accesstokenmanager/permission_definitions.json b/services/accesstokenmanager/permission_definitions.json index 16a9b0b9de96cd2a8a483212b2251dac97ce8f97..39972f7e9019701403a61dbc57eb7b10f550f1f7 100644 --- a/services/accesstokenmanager/permission_definitions.json +++ b/services/accesstokenmanager/permission_definitions.json @@ -4409,6 +4409,36 @@ "deprecated": "", "provisionEnable": true, "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_DEVAUTH_CRED_MGR", + "grantMode": "system_grant", + "availableLevel": "system_core", + "availableType": "SYSTEM", + "since": 16, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_DEVAUTH_CRED_PRIVILEGE", + "grantMode": "system_grant", + "availableLevel": "system_core", + "availableType": "SYSTEM", + "since": 16, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.ACCESS_DEVAUTH_CRED_AUTH", + "grantMode": "system_grant", + "availableLevel": "system_core", + "availableType": "SYSTEM", + "since": 16, + "deprecated": "", + "provisionEnable": true, + "distributedSceneEnable": false } ], "userGrantPermissions": [