Merge "Add a method to start the captive portal login app." am: 30f2544f0c

am: f238a96172

Change-Id: Ie42fa5148bc7fcaf5b64b767c06aba9f618c0aa7
This commit is contained in:
Hugo Benichi
2017-05-19 02:48:01 +00:00
committed by android-build-merger
5 changed files with 105 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ package android.net;
import android.annotation.IntDef;
import android.annotation.Nullable;
import android.annotation.RequiresPermission;
import android.annotation.SdkConstant;
import android.annotation.SdkConstant.SdkConstantType;
import android.annotation.SystemApi;
@@ -3467,6 +3468,22 @@ public class ConnectivityManager {
}
}
/**
* Requests that the system open the captive portal app on the specified network.
*
* @param network The network to log into.
*
* @hide
*/
@RequiresPermission(android.Manifest.permission.CONNECTIVITY_INTERNAL)
public void startCaptivePortalApp(Network network) {
try {
mService.startCaptivePortalApp(network);
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}
}
/**
* It is acceptable to briefly use multipath data to provide seamless connectivity for
* time-sensitive user-facing operations when the system default network is temporarily

View File

@@ -161,6 +161,7 @@ interface IConnectivityManager
void setAcceptUnvalidated(in Network network, boolean accept, boolean always);
void setAvoidUnvalidated(in Network network);
void startCaptivePortalApp(in Network network);
int getMultipathPreference(in Network Network);