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
This commit is contained in:
Navtej Singh Mann
2014-04-09 18:06:37 -07:00
committed by Vinit Deshpande
parent 337a63aea7
commit 94f77dbb02
2 changed files with 0 additions and 14 deletions

View File

@ -111,8 +111,6 @@ interface IWifiManager
Messenger getWifiServiceMessenger();
Messenger getWifiStateMachineMessenger();
String getConfigFile();
void enableTdls(String remoteIPAddress, boolean enable);

View File

@ -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