diff --git a/Media/VideoPlayer/entry/src/main/module.json5 b/Media/VideoPlayer/entry/src/main/module.json5 index 4b0bd75383db55593ba736efaf10b05a101ea3b7..bf390bbadd6358dfb44187039a649d7ae669a858 100644 --- a/Media/VideoPlayer/entry/src/main/module.json5 +++ b/Media/VideoPlayer/entry/src/main/module.json5 @@ -35,13 +35,28 @@ ], "requestPermissions": [ { - "name": "ohos.permission.READ_MEDIA" + "name": "ohos.permission.READ_MEDIA", + "reason": "$string:reason_read", + "usedScene": { + "abilities": ["EntryAbility"], + "when": "inuse" + } }, { - "name": "ohos.permission.MEDIA_LOCATION" + "name": "ohos.permission.MEDIA_LOCATION", + "reason": "$string:reason_location", + "usedScene": { + "abilities": ["EntryAbility"], + "when": "inuse" + } }, { - "name": "ohos.permission.INTERNET" + "name": "ohos.permission.INTERNET", + "reason": "$string:reason_internet", + "usedScene": { + "abilities": ["EntryAbility"], + "when": "inuse" + } } ] } diff --git a/Media/VideoPlayer/entry/src/main/resources/base/element/string.json b/Media/VideoPlayer/entry/src/main/resources/base/element/string.json index e3fdc61b3c90756cf220b2e512102da33fb01cd5..9d01b62f50ebee70320383ef860211a0d41ebfd0 100644 --- a/Media/VideoPlayer/entry/src/main/resources/base/element/string.json +++ b/Media/VideoPlayer/entry/src/main/resources/base/element/string.json @@ -87,6 +87,18 @@ { "name": "place_holder_name", "value": "Please enter a file name" + }, + { + "name": "reason_read", + "value": "Reading Local Videos." + }, + { + "name": "reason_location", + "value": "Obtaining Local Videos." + }, + { + "name": "reason_internet", + "value": "Network video rights." } ] } \ No newline at end of file diff --git a/Media/VideoPlayer/entry/src/main/resources/en_US/element/string.json b/Media/VideoPlayer/entry/src/main/resources/en_US/element/string.json index 734eace73e22f1e782bd9a5f205d0fc9d0a55383..96ebf8c074d4015abfa0be9971a618e117157e05 100644 --- a/Media/VideoPlayer/entry/src/main/resources/en_US/element/string.json +++ b/Media/VideoPlayer/entry/src/main/resources/en_US/element/string.json @@ -87,6 +87,18 @@ { "name": "place_holder_name", "value": "Please enter a file name" + }, + { + "name": "reason_read", + "value": "Reading Local Videos." + }, + { + "name": "reason_location", + "value": "Obtaining Local Videos." + }, + { + "name": "reason_internet", + "value": "Network video rights." } ] } \ No newline at end of file diff --git a/Media/VideoPlayer/entry/src/main/resources/zh_CN/element/string.json b/Media/VideoPlayer/entry/src/main/resources/zh_CN/element/string.json index c4cf09987c0b319a01d7c0de6e9d89a223b51eeb..c5c51e9622f7c8c2bb22e614dda06a8a8a2c53e1 100644 --- a/Media/VideoPlayer/entry/src/main/resources/zh_CN/element/string.json +++ b/Media/VideoPlayer/entry/src/main/resources/zh_CN/element/string.json @@ -87,6 +87,18 @@ { "name": "place_holder_name", "value": "请输入文件名称" + }, + { + "name": "reason_read", + "value": "本地媒体读取权限" + }, + { + "name": "reason_location", + "value": "获取本地视频" + }, + { + "name": "reason_internet", + "value": "获取网络权限" } ] } \ No newline at end of file diff --git a/Security/AccessPermission/entry/src/main/module.json5 b/Security/AccessPermission/entry/src/main/module.json5 index b11676acde4cf9087fd900358ace6229c6c10ea8..5e66762644c5d57431fd11a17490284db8bace53 100644 --- a/Security/AccessPermission/entry/src/main/module.json5 +++ b/Security/AccessPermission/entry/src/main/module.json5 @@ -34,7 +34,12 @@ ], "requestPermissions": [ { - "name" : "ohos.permission.DISTRIBUTED_DATASYNC" + "name" : "ohos.permission.DISTRIBUTED_DATASYNC", + "reason": "$string:reason", + "usedScene": { + "abilities": ["EntryAbility"], + "when": "inuse" + } } ] } diff --git a/Security/AccessPermission/entry/src/main/resources/base/element/string.json b/Security/AccessPermission/entry/src/main/resources/base/element/string.json index 6ba4bca1ea23ba35968c002f475a421e1bb81530..5397cc82a3ecb9dd110c693cde5ea9456853a713 100644 --- a/Security/AccessPermission/entry/src/main/resources/base/element/string.json +++ b/Security/AccessPermission/entry/src/main/resources/base/element/string.json @@ -43,6 +43,10 @@ { "name": "clear_permission", "value": "To apply for a new permission, go to Settings > Applications > App Management > Application name > Storage > Delete data and clear the cache." + }, + { + "name": "reason", + "value": "Querying Peripheral Untrusted Devices." } ] } \ No newline at end of file diff --git a/Security/AccessPermission/entry/src/main/resources/en_US/element/string.json b/Security/AccessPermission/entry/src/main/resources/en_US/element/string.json index 6ba4bca1ea23ba35968c002f475a421e1bb81530..5397cc82a3ecb9dd110c693cde5ea9456853a713 100644 --- a/Security/AccessPermission/entry/src/main/resources/en_US/element/string.json +++ b/Security/AccessPermission/entry/src/main/resources/en_US/element/string.json @@ -43,6 +43,10 @@ { "name": "clear_permission", "value": "To apply for a new permission, go to Settings > Applications > App Management > Application name > Storage > Delete data and clear the cache." + }, + { + "name": "reason", + "value": "Querying Peripheral Untrusted Devices." } ] } \ No newline at end of file diff --git a/Security/AccessPermission/entry/src/main/resources/zh_CN/element/string.json b/Security/AccessPermission/entry/src/main/resources/zh_CN/element/string.json index 065405232d1e7ef5b5be4cbd82cf9aed7c07d717..c41a81efa651f9b65b3796516a569180ccc5b8a8 100644 --- a/Security/AccessPermission/entry/src/main/resources/zh_CN/element/string.json +++ b/Security/AccessPermission/entry/src/main/resources/zh_CN/element/string.json @@ -43,6 +43,10 @@ { "name": "clear_permission", "value": "如需重新申请权限,请在设置-应用-应用管理-应用名-存储-删除数据、清空缓存" + }, + { + "name": "reason", + "value": "查询周边不可信设备" } ] } \ No newline at end of file