From c4e32328fc44b79fd45a2634180a1789a35297de Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 4 Jun 2018 04:51:10 +0200 Subject: [PATCH] TunnelManager: disable dangerous intents for now We need to think about how to allow this securely. It's not okay for all apps to be allowed to twiddle with VPN settings. Signed-off-by: Jason A. Donenfeld --- .../java/com/wireguard/android/model/TunnelManager.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/com/wireguard/android/model/TunnelManager.java b/app/src/main/java/com/wireguard/android/model/TunnelManager.java index 4267e76c..91d98842 100644 --- a/app/src/main/java/com/wireguard/android/model/TunnelManager.java +++ b/app/src/main/java/com/wireguard/android/model/TunnelManager.java @@ -284,6 +284,12 @@ public final class TunnelManager extends BaseObservable { return; } + /* We disable the below, for now, as the security model of allowing this + * might take a bit more consideration. + */ + if (true) + return; + final State state; if ("com.wireguard.android.action.SET_TUNNEL_UP".equals(action)) state = State.UP;