summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2015-11-03 17:47:24 +0100
committerArne Schwabe <arne@rfc2549.org>2015-11-03 17:47:24 +0100
commit755714993eec14c8d8962f7a2d7bd087f302114c (patch)
tree4d6dfb015e8484f07c58c2d33a140e3e3542a2cf
parent2e6a575fb8232fbb652d9f3dadefe90e628a51ca (diff)
Log when Android revokes the VPN permissions for easier debugging (closes #415)
-rw-r--r--main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java1
-rwxr-xr-xmain/src/main/res/values/strings.xml1
2 files changed, 2 insertions, 0 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java b/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
index b88d7090..7637df95 100644
--- a/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
+++ b/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
@@ -108,6 +108,7 @@ public class OpenVPNService extends VpnService implements StateListener, Callbac
@Override
public void onRevoke() {
+ VpnStatus.logInfo(R.string.permission_revoked);
mManagement.stopVPN();
endVpnService();
}
diff --git a/main/src/main/res/values/strings.xml b/main/src/main/res/values/strings.xml
index 487a6a62..5bafcc04 100755
--- a/main/src/main/res/values/strings.xml
+++ b/main/src/main/res/values/strings.xml
@@ -393,5 +393,6 @@
<string name="months_left">%d months left</string>
<string name="days_left">%d days left</string>
<string name="hours_left">%d hours left</string>
+ <string name="permission_revoked">VPN permission revoked by OS (e.g. other VPN program started), stopping VPN</string>
</resources>