From bcdb81af9e48e827c265b7ab5df7db75b69b9e50 Mon Sep 17 00:00:00 2001 From: gaoshuaixing <530353222@qq.com> Date: Sun, 17 May 2026 17:11:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E6=9D=83=E9=99=90=E7=94=B3?= =?UTF-8?q?=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ohos_hap/electron/src/main/module.json5 | 120 ++++++++++++++++++++++++ 1 file changed, 120 insertions(+) diff --git a/ohos_hap/electron/src/main/module.json5 b/ohos_hap/electron/src/main/module.json5 index 6f8f0f6..5c431e2 100644 --- a/ohos_hap/electron/src/main/module.json5 +++ b/ohos_hap/electron/src/main/module.json5 @@ -18,6 +18,126 @@ "value": "" } ], + "requestPermissions": [ + { + "name": "ohos.permission.INTERNET" + }, + { + "name": "ohos.permission.GET_NETWORK_INFO" + }, + { + "name": "ohos.permission.ACCESS_CERT_MANAGER" + }, + { + "name": "ohos.permission.RUNNING_LOCK" + }, + { + "name": "ohos.permission.PRINT" + }, + { + "name": "ohos.permission.PREPARE_APP_TERMINATE" + }, + { + "name": "ohos.permission.ACCESS_BIOMETRIC" + }, + { + "name": "ohos.permission.FILE_ACCESS_PERSIST" + }, + { + "name": "ohos.permission.PRIVACY_WINDOW" + }, + { + "name": "ohos.permission.WINDOW_TOPMOST" + }, + { + "name": "ohos.permission.GYROSCOPE" + }, + { + "name": "ohos.permission.ACCELEROMETER" + }, + { + "name": "ohos.permission.SET_ABILITY_INSTANCE_INFO" + }, + { + "name": "ohos.permission.GET_FILE_ICON" + }, + { + "name": "ohos.permission.LOCK_WINDOW_CURSOR" + }, + { + "name": "ohos.permission.WEB_NATIVE_MESSAGING" + }, + { + "name": "ohos.permission.READ_PASTEBOARD", + "reason": "$string:access_pasteboard", + "usedScene": { + "abilities": [ + "FormAbility" + ], + "when":"always" + } + }, + { + "name": "ohos.permission.READ_WRITE_DOWNLOAD_DIRECTORY", + "reason": "$string:download_dir", + "usedScene": { + "abilities": [ + "FormAbility" + ], + "when":"always" + } + }, + { + "name": "ohos.permission.READ_WRITE_DOCUMENTS_DIRECTORY", + "reason": "$string:documents_dir", + "usedScene": { + "abilities": [ + "FormAbility" + ], + "when":"always" + } + }, + { + "name": "ohos.permission.READ_WRITE_DESKTOP_DIRECTORY", + "reason": "$string:desktop_dir", + "usedScene": { + "abilities": [ + "FormAbility" + ], + "when":"always" + } + }, + { + "name": "ohos.permission.LOCATION", + "reason": "$string:location", + "usedScene": { + "abilities": [ + "FormAbility" + ], + "when":"always" + } + }, + { + "name": "ohos.permission.MICROPHONE", + "reason": "$string:microphone", + "usedScene": { + "abilities": [ + "FormAbility" + ], + "when":"always" + } + }, + { + "name": "ohos.permission.CAMERA", + "reason": "$string:camera", + "usedScene": { + "abilities": [ + "FormAbility" + ], + "when":"always" + } + }, + ], "abilities": [ { "name": "EntryAbility",