ser
This commit is contained in:
1 parent
208da38586
commit
41a2648c6e
17 files changed
+1171
-216
No files matched your search
@@ -1,2 +1,8 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- The AmneziaWG GoBackend internally creates a VpnService.
|
||||
FOREGROUND_SERVICE permission must be present so the
|
||||
VPN notification and lifecycle work correctly. -->
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
|
||||
</manifest>
|
||||
+6
-1
@@ -237,8 +237,13 @@ class WireguardFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAware,
|
||||
scope.launch(Dispatchers.IO) {
|
||||
try {
|
||||
if (!havePermission) {
|
||||
// The permission dialog was already shown by setupTunnel /
|
||||
// checkPermission. Tell Flutter to wait and retry rather
|
||||
// than throwing a confusing error while the system dialog
|
||||
// is still on screen.
|
||||
checkPermission()
|
||||
throw Exception("Permissions are not given")
|
||||
flutterError(result, "VPN_PERMISSION_REQUESTED")
|
||||
return@launch
|
||||
}
|
||||
updateStage("prepare")
|
||||
val inputStream = ByteArrayInputStream(wgQuickConfig.toByteArray())
|
||||
|
||||
Reference in new issue
Block a user