Merge "Fix supplimentary network connections with VPNs"

This commit is contained in:
Geremy Condra 2013-07-23 17:58:33 +00:00 • committed by Android (Google) Code Review
commit 2b07accdee

View file

@ -479,6 +479,22 @@ public class ConnectivityManager {
}
}
/**
* Checks if the given network type should be exempt from VPN routing rules
*
* @hide
*/
public static boolean isNetworkTypeExempt(int networkType) {
switch (networkType) {
case TYPE_MOBILE_MMS:
case TYPE_MOBILE_SUPL:
case TYPE_MOBILE_HIPRI:
return true;
default:
return false;
}
}
/**
* Specifies the preferred network type. When the device has more
* than one type available the preferred network type will be used.