From 28a3d44536337605511856cdfa6544b573cb7cf1 Mon Sep 17 00:00:00 2001 From: Peter Qiu Date: Mon, 14 Nov 2016 15:18:09 -0800 Subject: [PATCH] osu: remove calls to deprecated APIs The hidden APIs WifiManager#addPasspointManagmentObject and WifiManager#addPasspointManagementObject will removed, so remove all callsites. The OSU app is still under developement and is not included in any device builds. However, it is being built by the Treehugger for generic AOSP builds. So fix it to allow the API removal CLs to be submitted. Bug: 32509661 Test: None Merged-In: Ic405695ee8edfd0c08b831834797f163fe445595 Change-Id: If418c64e69f1836575257b9d5b2f5c4373050a31 --- packages/Osu/src/com/android/hotspot2/WifiNetworkAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/Osu/src/com/android/hotspot2/WifiNetworkAdapter.java b/packages/Osu/src/com/android/hotspot2/WifiNetworkAdapter.java index 518e64e1eb90b..63b190332de18 100644 --- a/packages/Osu/src/com/android/hotspot2/WifiNetworkAdapter.java +++ b/packages/Osu/src/com/android/hotspot2/WifiNetworkAdapter.java @@ -134,8 +134,8 @@ public class WifiNetworkAdapter { public HomeSP addSP(MOTree instanceTree) throws IOException, SAXException { WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); String xml = instanceTree.toXml(); - wifiManager.addPasspointManagementObject(xml); - return MOManager.buildSP(xml); + // TODO(b/32883320): use the new API for adding Passpoint configuration. + return null; } public void removeSP(String fqdn) throws IOException {