am 4157cb24: am 02eab434: am 3f58ba89: Merge "If in a mobile captive portal is detected enable fail fast." into jb-mr2-dev
* commit '4157cb2477':
If in a mobile captive portal is detected enable fail fast.
This commit is contained in:
commit
78f8907ae1
2 changed files with 32 additions and 0 deletions
|
|
@ -1323,6 +1323,25 @@ public class ConnectivityManager {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Signal that the captive portal check on the indicated network
|
||||
* is complete and whether its a captive portal or not.
|
||||
*
|
||||
* @param info the {@link NetworkInfo} object for the networkType
|
||||
* in question.
|
||||
* @param isCaptivePortal true/false.
|
||||
*
|
||||
* <p>This method requires the call to hold the permission
|
||||
* {@link android.Manifest.permission#CONNECTIVITY_INTERNAL}.
|
||||
* {@hide}
|
||||
*/
|
||||
public void captivePortalCheckCompleted(NetworkInfo info, boolean isCaptivePortal) {
|
||||
try {
|
||||
mService.captivePortalCheckCompleted(info, isCaptivePortal);
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Supply the backend messenger for a network tracker
|
||||
*
|
||||
|
|
|
|||
|
|
@ -134,6 +134,8 @@ interface IConnectivityManager
|
|||
|
||||
void captivePortalCheckComplete(in NetworkInfo info);
|
||||
|
||||
void captivePortalCheckCompleted(in NetworkInfo info, boolean isCaptivePortal);
|
||||
|
||||
void supplyMessenger(int networkType, in Messenger messenger);
|
||||
|
||||
int findConnectionTypeForIface(in String iface);
|
||||
|
|
|
|||
Loading…
Reference in a new issue