summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/AndroidManifest.xml
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-06-04 02:50:08 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-06-04 07:06:28 +0200
commita2ccbf003cc10369c177a3a354558f903df44e39 (patch)
treef66cf36a19961907881543f8f0257606c5e7b6d2 /app/src/main/AndroidManifest.xml
parent10ca2c86814a0719f15fce4bf6fc22707f22bb49 (diff)
TunnelManager: new intents
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/AndroidManifest.xml')
-rw-r--r--app/src/main/AndroidManifest.xml15
1 files changed, 13 insertions, 2 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index e83f8841..13c5a223 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -8,6 +8,13 @@
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+ <permission
+ android:name="com.wireguard.android.permission.CONTROL_TUNNELS"
+ android:protectionLevel="dangerous"
+ android:icon="@mipmap/ic_launcher"
+ android:label="@string/permission_label"
+ android:description="@string/permission_description" />
+
<application
android:name=".Application"
android:allowBackup="false"
@@ -50,9 +57,13 @@
</intent-filter>
</receiver>
- <receiver android:name=".backend.WgQuickBackend$WgQuickChangeReceiver">
+ <receiver
+ android:name=".model.TunnelManager$IntentReceiver"
+ android:permission="com.wireguard.android.permission.CONTROL_TUNNELS">
<intent-filter>
- <action android:name="com.wireguard.android.WGQUICK_CHANGE" />
+ <action android:name="com.wireguard.android.action.REFRESH_TUNNEL_STATES" />
+ <action android:name="com.wireguard.android.action.SET_TUNNEL_UP" />
+ <action android:name="com.wireguard.android.action.SET_TUNNEL_DOWN" />
</intent-filter>
</receiver>