Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85692fd6 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

Document handling unsupported EAP-SIM/AKA

Bug: 369220073
Test: atest android.carrierapi.cts.CarrierApiTest
Flag: DOCS_ONLY
Change-Id: Id00f3f26881a7c7201f26915cd1f583a170a2e80
parent 72354784
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -8778,7 +8778,8 @@ public class TelephonyManager {
     *   Authentication error, no memory space available in EFMUK
     *
     * @throws UnsupportedOperationException If the device does not have
     *          {@link PackageManager#FEATURE_TELEPHONY_SUBSCRIPTION}.
     *          {@link PackageManager#FEATURE_TELEPHONY_SUBSCRIPTION} or doesn't support given
     *          authType.
     */
    // TODO(b/73660190): This should probably require MODIFY_PHONE_STATE, not
    // READ_PRIVILEGED_PHONE_STATE. It certainly shouldn't reference the permission in Javadoc since
@@ -8809,10 +8810,14 @@ public class TelephonyManager {
     *   Key freshness failure
     *   Authentication error, no memory space available
     *   Authentication error, no memory space available in EFMUK
     * @throws UnsupportedOperationException If the device does not have
     *          {@link PackageManager#FEATURE_TELEPHONY_SUBSCRIPTION} or doesn't support given
     *          authType.
     * @hide
     */
    @UnsupportedAppUsage
    public String getIccAuthentication(int subId, int appType,@AuthType int authType, String data) {
    public String getIccAuthentication(int subId, int appType, @AuthType int authType,
            String data) {
        try {
            IPhoneSubInfo info = getSubscriberInfoService();
            if (info == null)