blob: 42c7a5680d114991b8e24070413f1694e2eaf408 [file] [log] [blame]
Jim Millerdcb3d842012-08-23 19:18:12 -07001/*
2 * Copyright (C) 2012 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Jim Miller5ecd8112013-01-09 18:50:26 -080017package com.android.keyguard;
Jim Millerdcb3d842012-08-23 19:18:12 -070018
Daniel Sandler53149e62012-11-01 22:00:07 -040019import com.android.internal.telephony.ITelephony;
Jim Miller52a61332014-11-12 19:29:51 -080020import com.android.internal.telephony.IccCardConstants;
21import com.android.internal.telephony.IccCardConstants.State;
Wink Savilleb896b9f2013-10-23 15:44:26 -070022import com.android.internal.telephony.PhoneConstants;
Daniel Sandler53149e62012-11-01 22:00:07 -040023
24import android.content.Context;
Jorim Jaggid05064b2014-11-20 21:35:33 +010025import android.content.res.ColorStateList;
Jorim Jaggiad371b22015-09-23 11:52:12 -070026import android.content.res.Configuration;
Jim Miller52a61332014-11-12 19:29:51 -080027import android.content.res.Resources;
Wink Savilleb896b9f2013-10-23 15:44:26 -070028import android.app.AlertDialog;
29import android.app.AlertDialog.Builder;
Jim Millerdcb3d842012-08-23 19:18:12 -070030import android.app.Dialog;
31import android.app.ProgressDialog;
Jorim Jaggid05064b2014-11-20 21:35:33 +010032import android.graphics.Color;
Jim Millerdcb3d842012-08-23 19:18:12 -070033import android.os.RemoteException;
34import android.os.ServiceManager;
Jim Miller52a61332014-11-12 19:29:51 -080035import android.telephony.SubscriptionInfo;
36import android.telephony.SubscriptionManager;
37import android.telephony.TelephonyManager;
qingxi3d768742017-04-12 11:07:11 -070038import android.telephony.euicc.EuiccManager;
Jim Millerdcb3d842012-08-23 19:18:12 -070039import android.util.AttributeSet;
Wink Savilleb896b9f2013-10-23 15:44:26 -070040import android.util.Log;
qingxi12f2de42017-05-24 15:33:13 -070041import android.view.View;
Jim Millerdcb3d842012-08-23 19:18:12 -070042import android.view.WindowManager;
Jorim Jaggid05064b2014-11-20 21:35:33 +010043import android.widget.ImageView;
Jim Millerdcb3d842012-08-23 19:18:12 -070044
45/**
Daniel Sandler53149e62012-11-01 22:00:07 -040046 * Displays a PIN pad for unlocking.
Jim Millerdcb3d842012-08-23 19:18:12 -070047 */
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070048public class KeyguardSimPinView extends KeyguardPinBasedInputView {
Wink Savilleb896b9f2013-10-23 15:44:26 -070049 private static final String LOG_TAG = "KeyguardSimPinView";
Jim Miller52a61332014-11-12 19:29:51 -080050 private static final boolean DEBUG = KeyguardConstants.DEBUG_SIM_STATES;
Jim Miller4fc2b012013-11-04 16:47:48 -080051 public static final String TAG = "KeyguardSimPinView";
Jim Millerdcb3d842012-08-23 19:18:12 -070052
Jim Millerd6c48842012-11-01 21:40:47 -070053 private ProgressDialog mSimUnlockProgressDialog = null;
Jim Miller4fc2b012013-11-04 16:47:48 -080054 private CheckSimPin mCheckSimPinThread;
Jim Millerd6c48842012-11-01 21:40:47 -070055
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +053056 // Below flag is set to true during power-up or when a new SIM card inserted on device.
57 // When this is true and when SIM card is PIN locked state, on PIN lock screen, message would
58 // be displayed to inform user about the number of remaining PIN attempts left.
59 private boolean mShowDefaultMessage = true;
60 private int mRemainingAttempts = -1;
Wink Savilleb896b9f2013-10-23 15:44:26 -070061 private AlertDialog mRemainingAttemptsDialog;
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +053062 private int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
Jorim Jaggid05064b2014-11-20 21:35:33 +010063 private ImageView mSimImageView;
Jim Miller52a61332014-11-12 19:29:51 -080064
65 KeyguardUpdateMonitorCallback mUpdateMonitorCallback = new KeyguardUpdateMonitorCallback() {
66 @Override
67 public void onSimStateChanged(int subId, int slotId, State simState) {
Brad Ebinger4cd3bdc2017-08-21 14:58:52 -070068 if (DEBUG) Log.v(TAG, "onSimStateChanged(subId=" + subId + ",state=" + simState + ")");
69 switch(simState) {
70 // If the SIM is removed, then we must remove the keyguard. It will be put up
71 // again when the PUK locked SIM is re-entered.
72 case ABSENT: {
73 KeyguardUpdateMonitor.getInstance(getContext()).reportSimUnlocked(mSubId);
Brad Ebinger71306752017-10-05 11:39:06 -070074 // onSimStateChanged callback can fire when the SIM PIN lock is not currently
75 // active and mCallback is null.
76 if (mCallback != null) {
77 mCallback.dismiss(true, KeyguardUpdateMonitor.getCurrentUser());
78 }
Brad Ebinger4cd3bdc2017-08-21 14:58:52 -070079 break;
80 }
felkachangb48c1b42018-04-10 12:47:29 +080081 case READY: {
82 mRemainingAttempts = -1;
83 resetState();
84 break;
85 }
Brad Ebinger4cd3bdc2017-08-21 14:58:52 -070086 default:
87 resetState();
88 }
89 }
Jim Miller52a61332014-11-12 19:29:51 -080090 };
Wink Savilleb896b9f2013-10-23 15:44:26 -070091
Jim Millerd6c48842012-11-01 21:40:47 -070092 public KeyguardSimPinView(Context context) {
Jim Millerdcb3d842012-08-23 19:18:12 -070093 this(context, null);
94 }
95
96 public KeyguardSimPinView(Context context, AttributeSet attrs) {
97 super(context, attrs);
Jim Millerdcb3d842012-08-23 19:18:12 -070098 }
99
Jim Miller4db942c2016-05-16 18:06:50 -0700100 @Override
Daniel Sandler53149e62012-11-01 22:00:07 -0400101 public void resetState() {
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700102 super.resetState();
Jim Miller52a61332014-11-12 19:29:51 -0800103 if (DEBUG) Log.v(TAG, "Resetting state");
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530104 handleSubInfoChangeIfNeeded();
105 if (mShowDefaultMessage) {
106 showDefaultMessage();
Jim Miller52a61332014-11-12 19:29:51 -0800107 }
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530108 boolean isEsimLocked = KeyguardEsimArea.isEsimLocked(mContext, mSubId);
109
qingxi12f2de42017-05-24 15:33:13 -0700110 KeyguardEsimArea esimButton = findViewById(R.id.keyguard_esim_area);
111 esimButton.setVisibility(isEsimLocked ? View.VISIBLE : View.GONE);
Daniel Sandler53149e62012-11-01 22:00:07 -0400112 }
113
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530114 private void showDefaultMessage() {
115 if (mRemainingAttempts >= 0) {
116 mSecurityMessageDisplay.setMessage(getPinPasswordErrorMessage(
117 mRemainingAttempts, true));
118 return;
119 }
120
121 boolean isEsimLocked = KeyguardEsimArea.isEsimLocked(mContext, mSubId);
122 int count = TelephonyManager.getDefault().getSimCount();
123 Resources rez = getResources();
124 String msg;
125 int color = Color.WHITE;
126 if (count < 2) {
127 msg = rez.getString(R.string.kg_sim_pin_instructions);
128 } else {
129 SubscriptionInfo info = KeyguardUpdateMonitor.getInstance(mContext).
130 getSubscriptionInfoForSubId(mSubId);
131 CharSequence displayName = info != null ? info.getDisplayName() : ""; // don't crash
132 msg = rez.getString(R.string.kg_sim_pin_instructions_multi, displayName);
133 if (info != null) {
134 color = info.getIconTint();
135 }
136 }
137
138 if (isEsimLocked) {
Qingxi Li2febffb2018-01-23 16:16:35 -0800139 msg = rez.getString(R.string.kg_sim_lock_esim_instructions, msg);
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530140 }
141
142 mSecurityMessageDisplay.setMessage(msg);
143 mSimImageView.setImageTintList(ColorStateList.valueOf(color));
144
145 // Sending empty PIN here to query the number of remaining PIN attempts
146 new CheckSimPin("", mSubId) {
147 void onSimCheckResponse(final int result, final int attemptsRemaining) {
148 Log.d(LOG_TAG, "onSimCheckResponse " + " dummy One result" + result +
149 " attemptsRemaining=" + attemptsRemaining);
150 if (attemptsRemaining >= 0) {
151 mRemainingAttempts = attemptsRemaining;
152 mSecurityMessageDisplay.setMessage(
153 getPinPasswordErrorMessage(attemptsRemaining, true));
154 }
155 }
156 }.start();
157 }
158
159 private void handleSubInfoChangeIfNeeded() {
160 KeyguardUpdateMonitor monitor = KeyguardUpdateMonitor.getInstance(mContext);
161 int subId = monitor.getNextSubIdForState(IccCardConstants.State.PIN_REQUIRED);
162 if (subId != mSubId && SubscriptionManager.isValidSubscriptionId(subId)) {
163 mSubId = subId;
164 mShowDefaultMessage = true;
165 mRemainingAttempts = -1;
166 }
167 }
168
Selim Cinek3122fa82015-06-18 01:38:59 -0700169 @Override
Jorim Jaggiad371b22015-09-23 11:52:12 -0700170 protected void onConfigurationChanged(Configuration newConfig) {
171 super.onConfigurationChanged(newConfig);
172 resetState();
173 }
174
175 @Override
Lucas Dupinc80c67e2017-12-04 14:29:10 -0800176 protected int getPromptReasonStringRes(int reason) {
Selim Cinek3122fa82015-06-18 01:38:59 -0700177 // No message on SIM Pin
178 return 0;
179 }
180
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530181 private String getPinPasswordErrorMessage(int attemptsRemaining, boolean isDefault) {
Wink Savilleb896b9f2013-10-23 15:44:26 -0700182 String displayMessage;
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530183 int msgId;
Wink Savilleb896b9f2013-10-23 15:44:26 -0700184 if (attemptsRemaining == 0) {
185 displayMessage = getContext().getString(R.string.kg_password_wrong_pin_code_pukked);
186 } else if (attemptsRemaining > 0) {
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530187 msgId = isDefault ? R.plurals.kg_password_default_pin_message :
188 R.plurals.kg_password_wrong_pin_code;
Wink Savilleb896b9f2013-10-23 15:44:26 -0700189 displayMessage = getContext().getResources()
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530190 .getQuantityString(msgId, attemptsRemaining, attemptsRemaining);
Wink Savilleb896b9f2013-10-23 15:44:26 -0700191 } else {
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530192 msgId = isDefault ? R.string.kg_sim_pin_instructions : R.string.kg_password_pin_failed;
193 displayMessage = getContext().getString(msgId);
Wink Savilleb896b9f2013-10-23 15:44:26 -0700194 }
Qingxi Li2febffb2018-01-23 16:16:35 -0800195 if (KeyguardEsimArea.isEsimLocked(mContext, mSubId)) {
196 displayMessage = getResources()
197 .getString(R.string.kg_sim_lock_esim_instructions, displayMessage);
198 }
Wink Savilleb896b9f2013-10-23 15:44:26 -0700199 if (DEBUG) Log.d(LOG_TAG, "getPinPasswordErrorMessage:"
200 + " attemptsRemaining=" + attemptsRemaining + " displayMessage=" + displayMessage);
201 return displayMessage;
202 }
203
Daniel Sandler53149e62012-11-01 22:00:07 -0400204 @Override
Jim Miller7d5e00a2013-10-11 22:45:57 -0700205 protected boolean shouldLockout(long deadline) {
206 // SIM PIN doesn't have a timed lockout
207 return false;
208 }
209
210 @Override
Daniel Sandler53149e62012-11-01 22:00:07 -0400211 protected int getPasswordTextViewId() {
Jorim Jaggifa9189f2014-04-17 20:17:30 +0200212 return R.id.simPinEntry;
Jim Millerdcb3d842012-08-23 19:18:12 -0700213 }
214
215 @Override
216 protected void onFinishInflate() {
217 super.onFinishInflate();
218
Jorim Jaggi40a0b382014-05-27 21:12:27 +0200219 if (mEcaView instanceof EmergencyCarrierArea) {
220 ((EmergencyCarrierArea) mEcaView).setCarrierTextVisible(true);
221 }
Alan Viverette51efddb2017-04-05 10:00:01 -0400222 mSimImageView = findViewById(R.id.keyguard_sim);
Jim Millerdcb3d842012-08-23 19:18:12 -0700223 }
224
Adam Cohen6fb841f2012-10-24 13:15:38 -0700225 @Override
Jim Miller52a61332014-11-12 19:29:51 -0800226 protected void onAttachedToWindow() {
227 super.onAttachedToWindow();
228 KeyguardUpdateMonitor.getInstance(mContext).registerCallback(mUpdateMonitorCallback);
229 }
230
231 @Override
232 protected void onDetachedFromWindow() {
233 super.onDetachedFromWindow();
234 KeyguardUpdateMonitor.getInstance(mContext).removeCallback(mUpdateMonitorCallback);
235 }
236
237 @Override
Adam Cohen6fb841f2012-10-24 13:15:38 -0700238 public void showUsabilityHint() {
239 }
240
Daniel Sandler53149e62012-11-01 22:00:07 -0400241 @Override
242 public void onPause() {
Jim Millerdcb3d842012-08-23 19:18:12 -0700243 // dismiss the dialog.
244 if (mSimUnlockProgressDialog != null) {
245 mSimUnlockProgressDialog.dismiss();
246 mSimUnlockProgressDialog = null;
247 }
248 }
249
250 /**
251 * Since the IPC can block, we want to run the request in a separate thread
252 * with a callback.
253 */
254 private abstract class CheckSimPin extends Thread {
255 private final String mPin;
Jim Miller52a61332014-11-12 19:29:51 -0800256 private int mSubId;
Jim Millerdcb3d842012-08-23 19:18:12 -0700257
Jim Miller52a61332014-11-12 19:29:51 -0800258 protected CheckSimPin(String pin, int subId) {
Jim Millerdcb3d842012-08-23 19:18:12 -0700259 mPin = pin;
Jim Miller52a61332014-11-12 19:29:51 -0800260 mSubId = subId;
Jim Millerdcb3d842012-08-23 19:18:12 -0700261 }
262
Wink Savilleb896b9f2013-10-23 15:44:26 -0700263 abstract void onSimCheckResponse(final int result, final int attemptsRemaining);
Jim Millerdcb3d842012-08-23 19:18:12 -0700264
265 @Override
266 public void run() {
267 try {
Jim Miller52a61332014-11-12 19:29:51 -0800268 if (DEBUG) {
269 Log.v(TAG, "call supplyPinReportResultForSubscriber(subid=" + mSubId + ")");
270 }
Wink Savilleb896b9f2013-10-23 15:44:26 -0700271 final int[] result = ITelephony.Stub.asInterface(ServiceManager
Jim Miller52a61332014-11-12 19:29:51 -0800272 .checkService("phone")).supplyPinReportResultForSubscriber(mSubId, mPin);
273 if (DEBUG) {
274 Log.v(TAG, "supplyPinReportResult returned: " + result[0] + " " + result[1]);
275 }
Jim Millerdcb3d842012-08-23 19:18:12 -0700276 post(new Runnable() {
Jim Miller4db942c2016-05-16 18:06:50 -0700277 @Override
Jim Millerdcb3d842012-08-23 19:18:12 -0700278 public void run() {
Wink Savilleb896b9f2013-10-23 15:44:26 -0700279 onSimCheckResponse(result[0], result[1]);
Jim Millerdcb3d842012-08-23 19:18:12 -0700280 }
281 });
282 } catch (RemoteException e) {
Jim Miller4fc2b012013-11-04 16:47:48 -0800283 Log.e(TAG, "RemoteException for supplyPinReportResult:", e);
Jim Millerdcb3d842012-08-23 19:18:12 -0700284 post(new Runnable() {
Jim Miller4db942c2016-05-16 18:06:50 -0700285 @Override
Jim Millerdcb3d842012-08-23 19:18:12 -0700286 public void run() {
Wink Savilleb896b9f2013-10-23 15:44:26 -0700287 onSimCheckResponse(PhoneConstants.PIN_GENERAL_FAILURE, -1);
Jim Millerdcb3d842012-08-23 19:18:12 -0700288 }
289 });
290 }
291 }
292 }
293
Jim Millerdcb3d842012-08-23 19:18:12 -0700294 private Dialog getSimUnlockProgressDialog() {
295 if (mSimUnlockProgressDialog == null) {
296 mSimUnlockProgressDialog = new ProgressDialog(mContext);
297 mSimUnlockProgressDialog.setMessage(
298 mContext.getString(R.string.kg_sim_unlock_progress_dialog_message));
299 mSimUnlockProgressDialog.setIndeterminate(true);
300 mSimUnlockProgressDialog.setCancelable(false);
Wink Savilleb896b9f2013-10-23 15:44:26 -0700301 mSimUnlockProgressDialog.getWindow().setType(
302 WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
Jim Millerdcb3d842012-08-23 19:18:12 -0700303 }
304 return mSimUnlockProgressDialog;
305 }
306
Wink Savilleb896b9f2013-10-23 15:44:26 -0700307 private Dialog getSimRemainingAttemptsDialog(int remaining) {
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530308 String msg = getPinPasswordErrorMessage(remaining, false);
Wink Savilleb896b9f2013-10-23 15:44:26 -0700309 if (mRemainingAttemptsDialog == null) {
310 Builder builder = new AlertDialog.Builder(mContext);
311 builder.setMessage(msg);
312 builder.setCancelable(false);
313 builder.setNeutralButton(R.string.ok, null);
314 mRemainingAttemptsDialog = builder.create();
315 mRemainingAttemptsDialog.getWindow().setType(
316 WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
317 } else {
318 mRemainingAttemptsDialog.setMessage(msg);
319 }
320 return mRemainingAttemptsDialog;
321 }
322
Daniel Sandler53149e62012-11-01 22:00:07 -0400323 @Override
324 protected void verifyPasswordAndUnlock() {
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700325 String entry = mPasswordEntry.getText();
Jim Miller7d5e00a2013-10-11 22:45:57 -0700326
Daniel Sandler53149e62012-11-01 22:00:07 -0400327 if (entry.length() < 4) {
Jim Millerdcb3d842012-08-23 19:18:12 -0700328 // otherwise, display a message to the user, and don't submit.
Adrian Roosdb327e92016-10-12 16:41:28 -0700329 mSecurityMessageDisplay.setMessage(R.string.kg_invalid_sim_pin_hint);
Jim Miller4db942c2016-05-16 18:06:50 -0700330 resetPasswordText(true /* animate */, true /* announce */);
Jorim Jaggib690f0d2014-07-03 23:25:44 +0200331 mCallback.userActivity();
Jim Millerdcb3d842012-08-23 19:18:12 -0700332 return;
333 }
334
335 getSimUnlockProgressDialog().show();
336
Jim Miller4fc2b012013-11-04 16:47:48 -0800337 if (mCheckSimPinThread == null) {
Jim Miller52a61332014-11-12 19:29:51 -0800338 mCheckSimPinThread = new CheckSimPin(mPasswordEntry.getText(), mSubId) {
Jim Miller4db942c2016-05-16 18:06:50 -0700339 @Override
Wink Savilleb896b9f2013-10-23 15:44:26 -0700340 void onSimCheckResponse(final int result, final int attemptsRemaining) {
Jim Miller4b09dd32012-09-04 14:27:25 -0700341 post(new Runnable() {
Jim Miller4db942c2016-05-16 18:06:50 -0700342 @Override
Jim Miller4b09dd32012-09-04 14:27:25 -0700343 public void run() {
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530344 mRemainingAttempts = attemptsRemaining;
Jim Miller4b09dd32012-09-04 14:27:25 -0700345 if (mSimUnlockProgressDialog != null) {
346 mSimUnlockProgressDialog.hide();
347 }
Jim Miller4db942c2016-05-16 18:06:50 -0700348 resetPasswordText(true /* animate */,
349 result != PhoneConstants.PIN_RESULT_SUCCESS /* announce */);
Wink Savilleb896b9f2013-10-23 15:44:26 -0700350 if (result == PhoneConstants.PIN_RESULT_SUCCESS) {
Jim Miller52a61332014-11-12 19:29:51 -0800351 KeyguardUpdateMonitor.getInstance(getContext())
352 .reportSimUnlocked(mSubId);
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530353 mRemainingAttempts = -1;
354 mShowDefaultMessage = true;
355 if (mCallback != null) {
356 mCallback.dismiss(true, KeyguardUpdateMonitor.getCurrentUser());
357 }
Jim Miller4b09dd32012-09-04 14:27:25 -0700358 } else {
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530359 mShowDefaultMessage = false;
Wink Savilleb896b9f2013-10-23 15:44:26 -0700360 if (result == PhoneConstants.PIN_PASSWORD_INCORRECT) {
361 if (attemptsRemaining <= 2) {
362 // this is getting critical - show dialog
363 getSimRemainingAttemptsDialog(attemptsRemaining).show();
364 } else {
365 // show message
366 mSecurityMessageDisplay.setMessage(
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530367 getPinPasswordErrorMessage(attemptsRemaining, false));
Wink Savilleb896b9f2013-10-23 15:44:26 -0700368 }
369 } else {
370 // "PIN operation failed!" - no idea what this was and no way to
371 // find out. :/
372 mSecurityMessageDisplay.setMessage(getContext().getString(
Adrian Roosdb327e92016-10-12 16:41:28 -0700373 R.string.kg_password_pin_failed));
Wink Savilleb896b9f2013-10-23 15:44:26 -0700374 }
375 if (DEBUG) Log.d(LOG_TAG, "verifyPasswordAndUnlock "
376 + " CheckSimPin.onSimCheckResponse: " + result
377 + " attemptsRemaining=" + attemptsRemaining);
Jim Miller4b09dd32012-09-04 14:27:25 -0700378 }
Jorim Jaggib690f0d2014-07-03 23:25:44 +0200379 mCallback.userActivity();
Jim Miller4fc2b012013-11-04 16:47:48 -0800380 mCheckSimPinThread = null;
Jim Millerdcb3d842012-08-23 19:18:12 -0700381 }
Jim Miller4b09dd32012-09-04 14:27:25 -0700382 });
383 }
Jim Miller4fc2b012013-11-04 16:47:48 -0800384 };
385 mCheckSimPinThread.start();
Jim Miller4b09dd32012-09-04 14:27:25 -0700386 }
Jim Millerdcb3d842012-08-23 19:18:12 -0700387 }
Jorim Jaggic14f8292014-05-27 02:25:45 +0200388
389 @Override
390 public void startAppearAnimation() {
391 // noop.
392 }
Jorim Jaggi76a16232014-08-08 17:00:47 +0200393
394 @Override
395 public boolean startDisappearAnimation(Runnable finishRunnable) {
396 return false;
397 }
Phil Weaver7d847b02018-02-13 16:02:35 -0800398
399 @Override
400 public CharSequence getTitle() {
401 return getContext().getString(
402 com.android.internal.R.string.keyguard_accessibility_sim_pin_unlock);
403 }
Jim Millerdcb3d842012-08-23 19:18:12 -0700404}
Daniel Sandler53149e62012-11-01 22:00:07 -0400405