Loading services/core/java/com/android/server/connectivity/Vpn.java +8 −0 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading
services/core/java/com/android/server/connectivity/Vpn.java +8 −0 Original line number Diff line number Diff line Loading @@ -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(); Loading