diff --git a/api/system-current.txt b/api/system-current.txt index 28dd71f4a34a8..acc9e4f1f73b5 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -38560,7 +38560,6 @@ package android.telephony { method public boolean isOffhook(); method public boolean isRadioOn(); method public boolean isRinging(); - method public boolean isSimPinEnabled(); method public boolean isSmsCapable(); method public boolean isTtyModeSupported(); method public boolean isVideoCallingEnabled(); diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 913cb18c6ab79..43fe9d100b234 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -3996,19 +3996,6 @@ public class TelephonyManager { return false; } - /** @hide */ - @SystemApi - public boolean isSimPinEnabled() { - try { - ITelephony telephony = getITelephony(); - if (telephony != null) - return telephony.isSimPinEnabled(getOpPackageName()); - } catch (RemoteException e) { - Log.e(TAG, "Error calling ITelephony#isSimPinEnabled", e); - } - return false; - } - /** @hide */ @SystemApi public boolean supplyPin(String pin) { diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl index d1badc9e7f335..62f294c3a197a 100644 --- a/telephony/java/com/android/internal/telephony/ITelephony.aidl +++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl @@ -181,13 +181,6 @@ interface ITelephony { */ boolean isRadioOnForSubscriber(int subId, String callingPackage); - /** - * Check if the SIM pin lock is enabled. - * @return true if the SIM pin lock is enabled. - * @param callingPackage The package making the call. - */ - boolean isSimPinEnabled(String callingPackage); - /** * Supply a pin to unlock the SIM. Blocks until a result is determined. * @param pin The pin to check.