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

Commit 2cd5113a 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:...

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

Change-Id: I5a17ebc2fa69a44b4c2164478a098fac8e44b3c1
parents 72b2e1ee bd393e29
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;
            }