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

Commit 94f77dbb authored by Navtej Singh Mann's avatar Navtej Singh Mann Committed by Vinit Deshpande
Browse files

Fixed bypass of ConnectivityInternal permission

Removed public function 'getWifiStateMachineMessenger' of
WifiManager to fix bypass of ConnectivityInternal permission
by application, which is security concern

Bug: 13749822

Change-Id: I3ae73e33b77ee8ae0133ca9dc8cc03c504f09e40
parent 337a63ae
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -111,8 +111,6 @@ interface IWifiManager

    Messenger getWifiServiceMessenger();

    Messenger getWifiStateMachineMessenger();

    String getConfigFile();

    void enableTdls(String remoteIPAddress, boolean enable);
+0 −12
Original line number Diff line number Diff line
@@ -1783,18 +1783,6 @@ public class WifiManager {
        }
    }

    /**
     * Get a reference to WifiStateMachine handler.
     * @return Messenger pointing to the WifiService handler
     * @hide
     */
    public Messenger getWifiStateMachineMessenger() {
        try {
            return mService.getWifiStateMachineMessenger();
        } catch (RemoteException e) {
            return null;
        }
    }

    /**
     * Returns the file in which IP and proxy configuration data is stored