From a3df56450b03b917e43b4ffcf5ef5764443ce8f2 Mon Sep 17 00:00:00 2001 From: Junda Liu Date: Wed, 13 Apr 2016 15:24:39 -0700 Subject: [PATCH] Remove deprecated API for sim authentication. The new getIccAuthentication should be used. All callers have been updated to the new API. Remove the old API in this change. Bug: b/27360179 Change-Id: I160974d53bb6477666b3e1d457accac45cc06bfc --- .../java/android/telephony/TelephonyManager.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 638b286987b68..0bca62828be46 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -3643,22 +3643,6 @@ public class TelephonyManager { } } - /** - * Returns the response of SIM Authentication through RIL for the default subscription. - * Returns null if the Authentication hasn't been successful - * - *

Requires that the calling app has carrier privileges. - * @see #hasCarrierPrivileges - * - * @param appType ICC application type (@see com.android.internal.telephony.PhoneConstants#APPTYPE_xxx) - * @param data authentication challenge data - * @return the response of SIM Authentication, or null if not available - * @hide - */ - public String getIccSimChallengeResponse(int appType, String data) { - return getIccAuthentication(getDefaultSubscription(), appType, AUTHTYPE_EAP_SIM, data); - } - /** * Get P-CSCF address from PCO after data connection is established or modified. * @param apnType the apnType, "ims" for IMS APN, "emergency" for EMERGENCY APN