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

Commit 9f47a5d8 authored by pkanwar's avatar pkanwar
Browse files

DO NOT MERGE: Add API to indicate carrier networks.

Bug: 31003437
Change-Id: I3e3989256588f509c45e50374b8b7168589d6c5d
parent 9ec4256a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -52,6 +52,8 @@ interface IWifiManager

    List<WifiConfiguration> getConfiguredNetworks();

    boolean hasCarrierConfiguredNetworks();

    List<WifiConfiguration> getPrivilegedConfiguredNetworks();

    WifiConfiguration getMatchingWifiConfig(in ScanResult scanResult);
+9 −0
Original line number Diff line number Diff line
@@ -746,6 +746,15 @@ public class WifiManager {
        }
    }

    /** @hide */
    public boolean hasCarrierConfiguredNetworks() {
        try {
            return mService.hasCarrierConfiguredNetworks();
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }
    }

    /** @hide */
    @SystemApi
    public List<WifiConfiguration> getPrivilegedConfiguredNetworks() {