diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-02-27 21:24:18 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-02-28 12:55:48 +0000 |
| commit | 6f97e92edddd780730e2d4fb28919421063fa73b (patch) | |
| tree | f96a44e7ab3d2437d02e6ea26c8884d527d14b04 /android/src | |
| parent | c06f91c47421dd48edee8c078d1ba3033e59aacd (diff) | |
| download | mullvadvpn-6f97e92edddd780730e2d4fb28919421063fa73b.tar.xz mullvadvpn-6f97e92edddd780730e2d4fb28919421063fa73b.zip | |
Remove tunnel action permission
Diffstat (limited to 'android/src')
| -rw-r--r-- | android/src/main/AndroidManifest.xml | 3 | ||||
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt | 8 |
2 files changed, 2 insertions, 9 deletions
diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 8b55f36bf5..8f472d7f5b 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,12 +1,9 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="net.mullvad.mullvadvpn"> - <permission android:name="net.mullvad.mullvadvpn.permission.TUNNEL_ACTION" - android:protectionLevel="signature" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> <uses-permission android:name="android.permission.INTERNET" /> - <uses-permission android:name="net.mullvad.mullvadvpn.permission.TUNNEL_ACTION" /> <application android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher" diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt index 4fb1557d8c..733a885b09 100644 --- a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt +++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt @@ -22,7 +22,6 @@ val CHANNEL_ID = "vpn_tunnel_status" val FOREGROUND_NOTIFICATION_ID: Int = 1 val KEY_CONNECT_ACTION = "connect_action" val KEY_DISCONNECT_ACTION = "disconnect_action" -val PERMISSION_TUNNEL_ACTION = "net.mullvad.mullvadvpn.permission.TUNNEL_ACTION" class ForegroundNotificationManager( val service: MullvadVpnService, @@ -190,11 +189,8 @@ class ForegroundNotificationManager( } service.apply { - val connectFilter = IntentFilter(KEY_CONNECT_ACTION) - val disconnectFilter = IntentFilter(KEY_DISCONNECT_ACTION) - - registerReceiver(connectReceiver, connectFilter, PERMISSION_TUNNEL_ACTION, null) - registerReceiver(disconnectReceiver, disconnectFilter, PERMISSION_TUNNEL_ACTION, null) + registerReceiver(connectReceiver, IntentFilter(KEY_CONNECT_ACTION)) + registerReceiver(disconnectReceiver, IntentFilter(KEY_DISCONNECT_ACTION)) } updateNotification() |
