mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 16:35:36 +00:00
Add new permission: networkstate
For android this provides ACCESS_NETWORK_STATE Signed-off-by: Peter Sanford <psanford@sanford.io>
This commit is contained in:
committed by
Elias Naur
parent
5393a05110
commit
2aa1cc8112
@@ -0,0 +1,13 @@
|
||||
// SPDX-License-Identifier: Unlicense OR MIT
|
||||
|
||||
/*
|
||||
Package networkstate implements permissions to access network connectivity information.
|
||||
|
||||
Android
|
||||
|
||||
The following entries will be added to AndroidManifest.xml:
|
||||
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
||||
|
||||
*/
|
||||
package networkstate
|
||||
@@ -4,6 +4,9 @@ var AndroidPermissions = map[string][]string{
|
||||
"network": {
|
||||
"android.permission.INTERNET",
|
||||
},
|
||||
"networkstate": {
|
||||
"android.permission.ACCESS_NETWORK_STATE",
|
||||
},
|
||||
"bluetooth": {
|
||||
"android.permission.BLUETOOTH",
|
||||
"android.permission.BLUETOOTH_ADMIN",
|
||||
|
||||
Reference in New Issue
Block a user