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

Commit 74638cdb authored by Randy Pan's avatar Randy Pan
Browse files

Enable/disable WifiConnectivityManager at runtime

Add support to turn on and off WifiConnectivityManager at
runtime.

Bug: 27968625
Change-Id: I57d3604bfb2a4e816fb16f6389f7cbaa2460c24b
parent 467400a2
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -152,6 +152,8 @@ interface IWifiManager
    boolean enableAutoJoinWhenAssociated(boolean enabled);
    boolean enableAutoJoinWhenAssociated(boolean enabled);
    boolean getEnableAutoJoinWhenAssociated();
    boolean getEnableAutoJoinWhenAssociated();


    void enableWifiConnectivityManager(boolean enabled);

    WifiConnectionStatistics getConnectionStatistics();
    WifiConnectionStatistics getConnectionStatistics();


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

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