diff --git a/api/current.txt b/api/current.txt index 8cd83fdfa5116..da6f102c6e2e4 100644 --- a/api/current.txt +++ b/api/current.txt @@ -36244,6 +36244,7 @@ package android.telephony { method public java.lang.String getDeviceId(int); method public java.lang.String getDeviceSoftwareVersion(); method public java.lang.String getGroupIdLevel1(); + method public java.lang.String getIccSimChallengeResponse(int, java.lang.String); method public java.lang.String getLine1Number(); method public java.lang.String getMmsUAProfUrl(); method public java.lang.String getMmsUserAgent(); diff --git a/api/system-current.txt b/api/system-current.txt index e6ae46acfb362..c67f4f1270500 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -38589,6 +38589,7 @@ package android.telephony { method public java.lang.String getDeviceId(int); method public java.lang.String getDeviceSoftwareVersion(); method public java.lang.String getGroupIdLevel1(); + method public java.lang.String getIccSimChallengeResponse(int, java.lang.String); method public java.lang.String getLine1Number(); method public java.lang.String getMmsUAProfUrl(); method public java.lang.String getMmsUserAgent(); diff --git a/api/test-current.txt b/api/test-current.txt index 4824f6868d855..59f2b45f3e237 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -36258,6 +36258,7 @@ package android.telephony { method public java.lang.String getDeviceId(int); method public java.lang.String getDeviceSoftwareVersion(); method public java.lang.String getGroupIdLevel1(); + method public java.lang.String getIccSimChallengeResponse(int, java.lang.String); method public java.lang.String getLine1Number(); method public java.lang.String getMmsUAProfUrl(); method public java.lang.String getMmsUserAgent(); diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index d3c1aec154b36..7eaa6a69d0739 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -3494,10 +3494,13 @@ 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 getIccSimChallengeResponse(getDefaultSubscription(), appType, data);