From 9eb31e761eceaec81d2ee2a037ad3b85878a11f9 Mon Sep 17 00:00:00 2001 From: SoftSquirrel Date: Fri, 27 May 2022 11:28:18 +0800 Subject: [PATCH 1/2] IssueNo: #I59JKK: add permission define, about default application. Description: add permission define, about default application. Sig: SIG_ApplicaitonFramework Feature or Bugfix: Feature Binary Source: No Signed-off-by: SoftSquirrel --- systemres/main/config.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/systemres/main/config.json b/systemres/main/config.json index 9f93940..b49d9a7 100644 --- a/systemres/main/config.json +++ b/systemres/main/config.json @@ -32,6 +32,20 @@ "moduleType": "entry" }, "definePermissions": [ + { + "name": "ohos.permission.GET_DEFAULT_APPLICATION", + "grantMode": "system_grant", + "availableLevel": "system_core", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.SET_DEFAULT_APPLICATION", + "grantMode": "system_grant", + "availableLevel": "system_core", + "provisionEnable": true, + "distributedSceneEnable": false + }, { "name": "ohos.permission.ANSWER_CALL", "grantMode": "user_grant", From 529927657972b052978cd3637c952132be193d31 Mon Sep 17 00:00:00 2001 From: SoftSquirrel Date: Fri, 27 May 2022 16:23:21 +0800 Subject: [PATCH 2/2] IssueNo: #I59JKK: add permission define, about default application. Description: add permission define, about default application. Sig: SIG_ApplicaitonFramework Feature or Bugfix: Feature Binary Source: No Signed-off-by: SoftSquirrel --- systemres/main/config.json | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/systemres/main/config.json b/systemres/main/config.json index b49d9a7..d5b492d 100644 --- a/systemres/main/config.json +++ b/systemres/main/config.json @@ -32,20 +32,6 @@ "moduleType": "entry" }, "definePermissions": [ - { - "name": "ohos.permission.GET_DEFAULT_APPLICATION", - "grantMode": "system_grant", - "availableLevel": "system_core", - "provisionEnable": true, - "distributedSceneEnable": false - }, - { - "name": "ohos.permission.SET_DEFAULT_APPLICATION", - "grantMode": "system_grant", - "availableLevel": "system_core", - "provisionEnable": true, - "distributedSceneEnable": false - }, { "name": "ohos.permission.ANSWER_CALL", "grantMode": "user_grant", @@ -1024,6 +1010,20 @@ "availableLevel": "system_basic", "provisionEnable": true, "distributedSceneEnable": false + }, + { + "name": "ohos.permission.GET_DEFAULT_APPLICATION", + "grantMode": "system_grant", + "availableLevel": "system_core", + "provisionEnable": true, + "distributedSceneEnable": false + }, + { + "name": "ohos.permission.SET_DEFAULT_APPLICATION", + "grantMode": "system_grant", + "availableLevel": "system_core", + "provisionEnable": true, + "distributedSceneEnable": false } ] }