From 1b0ca9dace3fb3b84f8a87e539c0179e6093b423 Mon Sep 17 00:00:00 2001 From: Robert Greenwalt Date: Mon, 22 Apr 2013 11:13:02 -0700 Subject: Listen for network disconnect. VPN used to just watch the interface, but that is insufficient. There is no promise that the interface will go down when we're done with it. Now that wifi stays on in scan-only mode despite user turning it off it seems that the interface is left up, even in AP mode. Now listening for ConnectivityService broadcast that the network we were on has disconnected and tearing down the VPN then or when the interface goes away. bug:8550083 Change-Id: Icf414497bc55bead69de04e91f39f90ac2e6578a --- core/java/android/net/IConnectivityManager.aidl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/java/android/net/IConnectivityManager.aidl') diff --git a/core/java/android/net/IConnectivityManager.aidl b/core/java/android/net/IConnectivityManager.aidl index 9e9b43d..e5d6e51 100644 --- a/core/java/android/net/IConnectivityManager.aidl +++ b/core/java/android/net/IConnectivityManager.aidl @@ -129,4 +129,6 @@ interface IConnectivityManager void captivePortalCheckComplete(in NetworkInfo info); void supplyMessenger(int networkType, in Messenger messenger); + + int findConnectionTypeForIface(in String iface); } -- cgit v1.1