Add configurable captive portal probes
The probes allow testing for a configurable status code and location header (regexes). They are disabled by default, so this CL is a no-op unless the probe configurations are pushed. Bug: b/79499239 Test: tests in CL pass, manual: captive portal login works Merged-In: Iec7a74bbf2569a91e958c497200d77e8451cbf7b Merged-In: Ia958815325d1466345e9626efc8f62fc9d08d774 (clean cherry-pick of pi-dev I785723aaed06054b9aa8ebff77803f23d7836db9) Change-Id: I18b3f263fed08fa4fee20d5e88f3ec8647d7f835
This commit is contained in:
@@ -237,6 +237,14 @@ public class ConnectivityManager {
|
|||||||
*/
|
*/
|
||||||
public static final String EXTRA_CAPTIVE_PORTAL_URL = "android.net.extra.CAPTIVE_PORTAL_URL";
|
public static final String EXTRA_CAPTIVE_PORTAL_URL = "android.net.extra.CAPTIVE_PORTAL_URL";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key for passing a {@link android.net.captiveportal.CaptivePortalProbeSpec} to the captive
|
||||||
|
* portal login activity.
|
||||||
|
* {@hide}
|
||||||
|
*/
|
||||||
|
public static final String EXTRA_CAPTIVE_PORTAL_PROBE_SPEC =
|
||||||
|
"android.net.extra.CAPTIVE_PORTAL_PROBE_SPEC";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Key for passing a user agent string to the captive portal login activity.
|
* Key for passing a user agent string to the captive portal login activity.
|
||||||
* {@hide}
|
* {@hide}
|
||||||
|
|||||||
Reference in New Issue
Block a user