mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-06-13 11:14:37 +08:00
应用权限申请
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user