提交 fa43cbd5 编写于 作者: Q q00313334

add location user grant

Signed-off-by: Nq00313334 <quanli1@huawei.com>
上级 5477de5d
...@@ -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.
先完成此消息的编辑!
想要评论请 注册