From 1c3054ea8740f29af7d8285c4d86a1ca375b4b77 Mon Sep 17 00:00:00 2001 From: Peter Qiu Date: Mon, 31 Oct 2016 15:55:15 -0700 Subject: [PATCH] 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 --- wifi/java/android/net/wifi/IWifiManager.aidl | 2 -- wifi/java/android/net/wifi/WifiManager.java | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/wifi/java/android/net/wifi/IWifiManager.aidl b/wifi/java/android/net/wifi/IWifiManager.aidl index b3ae030af803e..9e897bff1122d 100644 --- a/wifi/java/android/net/wifi/IWifiManager.aidl +++ b/wifi/java/android/net/wifi/IWifiManager.aidl @@ -127,8 +127,6 @@ interface IWifiManager WifiConfiguration getWifiApConfiguration(); - WifiConfiguration buildWifiConfig(String uriString, String mimeType, in byte[] data); - void setWifiApConfiguration(in WifiConfiguration wifiConfig); Messenger getWifiServiceMessenger(); diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index de3fbf7af59c5..a42bef465b752 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -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. * @return {@code true} if the operation succeeded, {@code false} otherwise