summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Robert Greenwalt <rgreenwalt@google.com> 2015-03-26 22:53:44 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-03-26 22:53:44 +0000
commit94b17bdd99e322eaed174604d23934600cf0380b (patch)
tree7b2b7ce489b96d75e6fc8e01fcf8b5b9ead2584d
parente600ba7e0bb95b2aefc78c5486e6664b4556c3a3 (diff)
parent0a5abe58345404b1277eade547a54d67f8800190 (diff)
am 0a5abe58: am 727cac07: Merge "Add getLegacyVpnInfoPrivileged method"
* commit '0a5abe58345404b1277eade547a54d67f8800190': Add getLegacyVpnInfoPrivileged method
-rw-r--r--services/core/java/com/android/server/connectivity/Vpn.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/connectivity/Vpn.java b/services/core/java/com/android/server/connectivity/Vpn.java
index 7f47678d4f2f..0b430ea45624 100644
--- a/services/core/java/com/android/server/connectivity/Vpn.java
+++ b/services/core/java/com/android/server/connectivity/Vpn.java
@@ -1021,6 +1021,14 @@ public class Vpn {
public synchronized LegacyVpnInfo getLegacyVpnInfo() {
// Check if the caller is authorized.
enforceControlPermission();
+ return getLegacyVpnInfoPrivileged();
+ }
+
+ /**
+ * Return the information of the current ongoing legacy VPN.
+ * Callers are responsible for checking permissions if needed.
+ */
+ public synchronized LegacyVpnInfo getLegacyVpnInfoPrivileged() {
if (mLegacyVpnRunner == null) return null;
final LegacyVpnInfo info = new LegacyVpnInfo();