From c2cc94aaab39de5b460aa1583a7784642b22aa67 Mon Sep 17 00:00:00 2001 From: qp Date: Wed, 8 Jun 2022 16:18:59 +0800 Subject: [PATCH] Reason for modifying application permission Signed-off-by: qp --- product/phone/src/main/module.json5 | 12 +++++++---- .../main/resources/base/element/string.json | 20 +++++++++++++++++++ .../main/resources/zh_CN/element/string.json | 20 +++++++++++++++++++ product/tablet/src/main/module.json5 | 14 ++++++++----- .../main/resources/base/element/string.json | 20 +++++++++++++++++++ .../main/resources/zh_CN/element/string.json | 20 +++++++++++++++++++ 6 files changed, 97 insertions(+), 9 deletions(-) create mode 100644 product/phone/src/main/resources/base/element/string.json create mode 100644 product/phone/src/main/resources/zh_CN/element/string.json create mode 100644 product/tablet/src/main/resources/base/element/string.json create mode 100644 product/tablet/src/main/resources/zh_CN/element/string.json diff --git a/product/phone/src/main/module.json5 b/product/phone/src/main/module.json5 index 6794925..8f918d2 100644 --- a/product/phone/src/main/module.json5 +++ b/product/phone/src/main/module.json5 @@ -25,16 +25,20 @@ ], "requestPermissions": [ { - "name": "ohos.permission.READ_MEDIA" + "name": "ohos.permission.READ_MEDIA", + "reason": "$string:read_media_permission" }, { - "name": "ohos.permission.WRITE_MEDIA" + "name": "ohos.permission.WRITE_MEDIA", + "reason": "$string:write_media_permission" }, { - "name": "ohos.permission.MEDIA_LOCATION" + "name": "ohos.permission.MEDIA_LOCATION", + "reason": "$string:media_location_permission" }, { - "name": "ohos.permission.DISTRIBUTED_DATASYNC" + "name": "ohos.permission.DISTRIBUTED_DATASYNC", + "reason": "$string:distributed_dataSync_permission" }, ], "deliveryWithInstall": true, diff --git a/product/phone/src/main/resources/base/element/string.json b/product/phone/src/main/resources/base/element/string.json new file mode 100644 index 0000000..44c6221 --- /dev/null +++ b/product/phone/src/main/resources/base/element/string.json @@ -0,0 +1,20 @@ +{ + "string": [ + { + "name": "read_media_permission", + "value": "Whether to allow memos to access media resources" + }, + { + "name": "write_media_permission", + "value": "Whether to allow memos to open gallery resources" + }, + { + "name": "media_location_permission", + "value": "Whether to allow memos to access shooting location information" + }, + { + "name": "distributed_dataSync_permission", + "value": "Whether to allow memos to be transferred to other equipment" + } + ] +} \ No newline at end of file diff --git a/product/phone/src/main/resources/zh_CN/element/string.json b/product/phone/src/main/resources/zh_CN/element/string.json new file mode 100644 index 0000000..7a92784 --- /dev/null +++ b/product/phone/src/main/resources/zh_CN/element/string.json @@ -0,0 +1,20 @@ +{ + "string": [ + { + "name": "read_media_permission", + "value": "是否允许备忘录访问媒体资源" + }, + { + "name": "write_media_permission", + "value": "是否允许备忘录打开图库资源" + }, + { + "name": "media_location_permission", + "value": "是否允许备忘录访问拍摄位置信息" + }, + { + "name": "distributed_dataSync_permission", + "value": "是否允许备忘录流转到其他设备" + } + ] +} \ No newline at end of file diff --git a/product/tablet/src/main/module.json5 b/product/tablet/src/main/module.json5 index 3bba09c..4ce3e06 100644 --- a/product/tablet/src/main/module.json5 +++ b/product/tablet/src/main/module.json5 @@ -25,17 +25,21 @@ ], "requestPermissions": [ { - "name": "ohos.permission.READ_MEDIA" + "name": "ohos.permission.READ_MEDIA", + "reason": "$string:read_media_permission" }, { - "name": "ohos.permission.WRITE_MEDIA" + "name": "ohos.permission.WRITE_MEDIA", + "reason": "$string:write_media_permission" }, { - "name": "ohos.permission.MEDIA_LOCATION" + "name": "ohos.permission.MEDIA_LOCATION", + "reason": "$string:media_location_permission" }, { - "name": "ohos.permission.DISTRIBUTED_DATASYNC" - }, + "name": "ohos.permission.DISTRIBUTED_DATASYNC", + "reason": "$string:distributed_dataSync_permission" + } ], "deliveryWithInstall": true, "installationFree": false, diff --git a/product/tablet/src/main/resources/base/element/string.json b/product/tablet/src/main/resources/base/element/string.json new file mode 100644 index 0000000..44c6221 --- /dev/null +++ b/product/tablet/src/main/resources/base/element/string.json @@ -0,0 +1,20 @@ +{ + "string": [ + { + "name": "read_media_permission", + "value": "Whether to allow memos to access media resources" + }, + { + "name": "write_media_permission", + "value": "Whether to allow memos to open gallery resources" + }, + { + "name": "media_location_permission", + "value": "Whether to allow memos to access shooting location information" + }, + { + "name": "distributed_dataSync_permission", + "value": "Whether to allow memos to be transferred to other equipment" + } + ] +} \ No newline at end of file diff --git a/product/tablet/src/main/resources/zh_CN/element/string.json b/product/tablet/src/main/resources/zh_CN/element/string.json new file mode 100644 index 0000000..7a92784 --- /dev/null +++ b/product/tablet/src/main/resources/zh_CN/element/string.json @@ -0,0 +1,20 @@ +{ + "string": [ + { + "name": "read_media_permission", + "value": "是否允许备忘录访问媒体资源" + }, + { + "name": "write_media_permission", + "value": "是否允许备忘录打开图库资源" + }, + { + "name": "media_location_permission", + "value": "是否允许备忘录访问拍摄位置信息" + }, + { + "name": "distributed_dataSync_permission", + "value": "是否允许备忘录流转到其他设备" + } + ] +} \ No newline at end of file -- Gitee