wifi: remove unused hidden Hotspot 2.0 Release 1 API
WifiManager#buildWifiConfig was used by the Hotspot 2.0 Release 1 app (WifiInstaller) for parsing Release 1 installation data into a WifiConfiguration object. WifiInstaller will be updated to use the new framework API (android.net.wifi.hotspot2.ConfigBuilder) instead. So this API is no longer needed. Bug: 32509661 Test: frameworks/base/wifi/tests/runtests.sh Change-Id: Iacee739a9ed12ea00b1b7457e22e790ef4a177da
This commit is contained in:
@@ -127,8 +127,6 @@ interface IWifiManager
|
|||||||
|
|
||||||
WifiConfiguration getWifiApConfiguration();
|
WifiConfiguration getWifiApConfiguration();
|
||||||
|
|
||||||
WifiConfiguration buildWifiConfig(String uriString, String mimeType, in byte[] data);
|
|
||||||
|
|
||||||
void setWifiApConfiguration(in WifiConfiguration wifiConfig);
|
void setWifiApConfiguration(in WifiConfiguration wifiConfig);
|
||||||
|
|
||||||
Messenger getWifiServiceMessenger();
|
Messenger getWifiServiceMessenger();
|
||||||
|
|||||||
@@ -1595,20 +1595,6 @@ public class WifiManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Builds a WifiConfiguration from Hotspot 2.0 MIME file.
|
|
||||||
* @return AP details in WifiConfiguration
|
|
||||||
*
|
|
||||||
* @hide Dont open yet
|
|
||||||
*/
|
|
||||||
public WifiConfiguration buildWifiConfig(String uriString, String mimeType, byte[] data) {
|
|
||||||
try {
|
|
||||||
return mService.buildWifiConfig(uriString, mimeType, data);
|
|
||||||
} catch (RemoteException e) {
|
|
||||||
throw e.rethrowFromSystemServer();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the Wi-Fi AP Configuration.
|
* Sets the Wi-Fi AP Configuration.
|
||||||
* @return {@code true} if the operation succeeded, {@code false} otherwise
|
* @return {@code true} if the operation succeeded, {@code false} otherwise
|
||||||
|
|||||||
Reference in New Issue
Block a user