Merge "Provide a way to override the avoid bad wifi configuration"

This commit is contained in:
Chiachang Wang
2021-06-23 00:48:17 +00:00
committed by Gerrit Code Review
5 changed files with 119 additions and 25 deletions

View File

@@ -4712,6 +4712,22 @@ public class ConnectivityManager {
}
}
/**
* Temporarily allow bad wifi to override {@code config_networkAvoidBadWifi} configuration.
*
* @param timeMs The expired current time. The value should be set within a limited time from
* now.
*
* @hide
*/
public void setTestAllowBadWifiUntil(long timeMs) {
try {
mService.setTestAllowBadWifiUntil(timeMs);
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}
}
/**
* Requests that the system open the captive portal app on the specified network.
*