Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 429b9fcb authored by Randy Pan's avatar Randy Pan Committed by Android (Google) Code Review
Browse files

Merge "Enable/disable WifiConnectivityManager at runtime" into nyc-dev

parents 41c1bb8f 74638cdb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -152,6 +152,8 @@ interface IWifiManager
    boolean enableAutoJoinWhenAssociated(boolean enabled);
    boolean getEnableAutoJoinWhenAssociated();

    void enableWifiConnectivityManager(boolean enabled);

    WifiConnectionStatistics getConnectionStatistics();

    void disableEphemeralNetwork(String SSID);
+12 −0
Original line number Diff line number Diff line
@@ -2719,4 +2719,16 @@ public class WifiManager {
            throw e.rethrowFromSystemServer();
        }
    }

    /**
     * Enable/disable WifiConnectivityManager
     * @hide
     */
    public void enableWifiConnectivityManager(boolean enabled) {
        try {
            mService.enableWifiConnectivityManager(enabled);
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }
    }
}