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

Commit 306e7073 authored by Randy Pan's avatar Randy Pan Committed by android-build-merger
Browse files

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

am: 429b9fcb

* commit '429b9fcb':
  Enable/disable WifiConnectivityManager at runtime

Change-Id: I093d1c3c3fba444a1869e910ff04e453ebb56a6b
parents 968e6e94 429b9fcb
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();
        }
    }
}