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

Commit aaccd364 authored by Amit Mahajan's avatar Amit Mahajan Committed by Automerger Merge Worker
Browse files

Merge "DUT fail to unlock SIM after selecting Home IMSI from STK" am: c8e082cd

Change-Id: Ifbc099dac83d5d560c2cfe6ce0884be9cdf080ed
parents e66cfd2d c8e082cd
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.os.Message;
import android.os.Registrant;
import android.os.RegistrantList;

import com.android.internal.telephony.CommandException;
import com.android.internal.telephony.CommandsInterface;
import com.android.internal.telephony.PhoneConstants;
import com.android.internal.telephony.uicc.IccCardApplicationStatus.AppState;
@@ -388,6 +389,18 @@ public class UiccCardApplication {
            if (mDestroyed) {
                loge("Received message " + msg + "[" + msg.what
                        + "] while being destroyed. Ignoring.");
                //When UiccCardApp dispose,unlock SIM PIN message and need return exception.
                if (msg.what == EVENT_PIN1_PUK1_DONE) {
                    ar = (AsyncResult) msg.obj;
                    if (ar != null) {
                        ar.exception = new CommandException(CommandException.Error.ABORTED);
                        Message response = (Message) ar.userObj;
                        if (response != null) {
                            AsyncResult.forMessage(response).exception = ar.exception;
                            response.sendToTarget();
                        }
                    }
                }
                return;
            }