diff --git a/example/ohos/entry/src/main/module.json5 b/example/ohos/entry/src/main/module.json5 index 5e0b06a2703f8e510054fbc7946dbe3a52004269..3baf6e69fbc7442e8541f1f73a912c0820aee390 100644 --- a/example/ohos/entry/src/main/module.json5 +++ b/example/ohos/entry/src/main/module.json5 @@ -47,7 +47,26 @@ } ], "requestPermissions": [ - {"name" : "ohos.permission.INTERNET"}, + { + "name": "ohos.permission.INTERNET", + "usedScene": { + "abilities": [ + "EntryAbility" + ], + "when": "inuse" + }, + "reason": "$string:module_desc" + }, + { + "name": "ohos.permission.CAMERA", + "usedScene": { + "abilities": [ + "EntryAbility" + ], + "when": "inuse" + }, + "reason": "$string:module_desc" + } ] } } \ No newline at end of file diff --git a/ohos/src/main/module.json5 b/ohos/src/main/module.json5 index 1ccc0ea19e94812d609bbceba343b5e22e1815ca..b4c1c99f392fb103697da138a6855391032246f2 100644 --- a/ohos/src/main/module.json5 +++ b/ohos/src/main/module.json5 @@ -4,15 +4,6 @@ "type": "har", "deviceTypes": [ "default", - ], - "requestPermissions": [ - { - "name": "ohos.permission.CAMERA", - "reason": "$string:request_perm", - "usedScene": { - "when": "inuse" - } - } ] }, } \ No newline at end of file