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

Commit e50a607a authored by Amin Shaikh's avatar Amin Shaikh
Browse files

Update hidden WifiManager API.

- Refactor getWpsNfcConfigurationToken(int) to getCurrentNetworkWpsNfcConfigurationToken()

Bug: 35725168
Test: runtest frameworks-wifi
Change-Id: Ia362e4d781297d7f89a4437a0c5ae6edecff24e5
parent 424c8c17
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ interface IWifiManager

    void enableTdlsWithMacAddress(String remoteMacAddress, boolean enable);

    String getWpsNfcConfigurationToken(int netId);
    String getCurrentNetworkWpsNfcConfigurationToken();

    void enableVerboseLogging(int verbose);

+5 −5
Original line number Diff line number Diff line
@@ -1437,15 +1437,15 @@ public class WifiManager {
    }

    /**
     * Creates a configuration token describing the network referenced by {@code netId}
     * of MIME type application/vnd.wfa.wsc. Can be used to configure WiFi networks via NFC.
     * Creates a configuration token describing the current network of MIME type
     * application/vnd.wfa.wsc. Can be used to configure WiFi networks via NFC.
     *
     * @return hex-string encoded configuration token
     * @return hex-string encoded configuration token or null if there is no current network
     * @hide
     */
    public String getWpsNfcConfigurationToken(int netId) {
    public String getCurrentNetworkWpsNfcConfigurationToken() {
        try {
            return mService.getWpsNfcConfigurationToken(netId);
            return mService.getCurrentNetworkWpsNfcConfigurationToken();
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }