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

Commit 1cba30a7 authored by Andrew Dodd's avatar Andrew Dodd Committed by Gerrit Code Review
Browse files

wifi: Allow Settings to retrieve country code (2/3)

Support for access to operational wifi country

Cherry-Picked: http://review.cyanogenmod.org/#/c/54997/4
Require: I429326a77649c77ba40b00eb2236de3ca8839e57

JIRA: CML-118

Change-Id: Id9f00d3a678642c6c142fd1511af820d729507a7
parent 25ea5bb0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -80,6 +80,8 @@ interface IWifiManager

    void setCountryCode(String country, boolean persist);

    String getCountryCode();

    void setFrequencyBand(int band, boolean persist);

    int getFrequencyBand();
+12 −0
Original line number Diff line number Diff line
@@ -1243,6 +1243,18 @@ public class WifiManager {
        } catch (RemoteException e) { }
    }

    /**
     * Get the operational country code.
     * @hide
     */
    public String getCountryCode() {
        try {
            return mService.getCountryCode();
        } catch (RemoteException e) {
            return null;
        }
    }

    /**
     * Set the operational frequency band.
     * @param band  One of