未验证 提交 940d85e8 编写于 作者: O openharmony_ci 提交者: Gitee

!2939 【communication】适配location权限校验问题

Merge pull request !2939 from 权力/myfeature1
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
}, },
"deviceConfig": {}, "deviceConfig": {},
"module": { "module": {
"package": "ohos.acts.location.geolocation", "package": "ohos.acts.location.geolocation.function",
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "ohos.acts.location.geolocation.function.MainAbility", "mainAbility": "ohos.acts.location.geolocation.function.MainAbility",
"deviceType": [ "deviceType": [
...@@ -48,14 +48,34 @@ ...@@ -48,14 +48,34 @@
], ],
"defPermissions": [ "defPermissions": [
{ {
"availableScope": [],
"grantMode": "user_grant",
"name": "ohos.permission.ACCESS_LOCATION",
"availableLevel": "system_basic",
"provisionEnable": true,
"distributedSceneEnable": true,
"label": "ACCESS_LOCATION label",
"description": "ACCESS_LOCATION description"
},
{
"availableScope": [], "availableScope": [],
"grantMode": "system_grant", "grantMode": "system_grant",
"name": "ohos.permission.ACCESS_LOCATION" "name": "ohos.permission.MANAGE_SECURE_SETTINGS",
"availableLevel": "system_basic",
"provisionEnable": true,
"distributedSceneEnable": false,
"label": "MANAGE_SECURE_SETTINGS label",
"description": "MANAGE_SECURE_SETTINGS description"
}, },
{ {
"availableScope": [], "availableScope": [],
"grantMode": "system_grant", "grantMode": "user_grant",
"name": "ohos.permission.LOCATION" "name": "ohos.permission.LOCATION",
"availableLevel": "system_basic",
"provisionEnable": true,
"distributedSceneEnable": true,
"label": "LOCATION label",
"description": "LOCATION description"
} }
], ],
"reqPermissions": [ "reqPermissions": [
...@@ -89,10 +109,9 @@ ...@@ -89,10 +109,9 @@
"when": "inuse" "when": "inuse"
} }
}, },
{
{ "name":"ohos.permission.MANAGE_SECURE_SETTINGS",
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", "reason":"need use ohos.permission.MANAGE_SECURE_SETTINGS",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"usedScene": { "usedScene": {
"ability": [ "ability": [
"ohos.acts.location.geolocation.function.MainAbility" "ohos.acts.location.geolocation.function.MainAbility"
...@@ -100,25 +119,19 @@ ...@@ -100,25 +119,19 @@
"when": "inuse" "when": "inuse"
} }
}, },
{
"name": "ohos.permission.GRANT_SENSITIVE_PERMISSIONS",
"reason": "use ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
},
{ {
"name":"ohos.permission.GET_WIFI_LOCAL_MAC", "name": "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS",
"reason":"need use ohos.permission.GET_WIFI_LOCAL_MAC", "reason": "use ohos.permission.REVOKE_SENSITIVE_PERMISSIONS"
"usedScene": {
"ability": [
"ohos.acts.location.geolocation.function.MainAbility"
],
"when": "inuse"
}
}, },
{ {
"name":"ohos.permission.GET_WIFI_INFO_INTERNAL", "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
"reason":"need use ohos.permission.GET_WIFI_INFO_INTERNAL", },
"usedScene": { {
"ability": [ "name": "ohos.permission.GET_BUNDLE_INFO"
"ohos.acts.location.geolocation.function.MainAbility"
],
"when": "inuse"
}
} }
], ],
"js": [ "js": [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册