blob: df9fb355ce2f702c3420be9c444f349642cf0882 [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) {
felkachangb48c1b42018-04-10 12:47:29 +080070 case READY: {
71 mRemainingAttempts = -1;
72 resetState();
73 break;
74 }
Brad Ebinger4cd3bdc2017-08-21 14:58:52 -070075 default:
76 resetState();
77 }
78 }
Jim Miller52a61332014-11-12 19:29:51 -080079 };
Wink Savilleb896b9f2013-10-23 15:44:26 -070080
Jim Millerd6c48842012-11-01 21:40:47 -070081 public KeyguardSimPinView(Context context) {
Jim Millerdcb3d842012-08-23 19:18:12 -070082 this(context, null);
83 }
84
85 public KeyguardSimPinView(Context context, AttributeSet attrs) {
86 super(context, attrs);
Jim Millerdcb3d842012-08-23 19:18:12 -070087 }
88
Jim Miller4db942c2016-05-16 18:06:50 -070089 @Override
Daniel Sandler53149e62012-11-01 22:00:07 -040090 public void resetState() {
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070091 super.resetState();
Jim Miller52a61332014-11-12 19:29:51 -080092 if (DEBUG) Log.v(TAG, "Resetting state");
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +053093 handleSubInfoChangeIfNeeded();
94 if (mShowDefaultMessage) {
95 showDefaultMessage();
Jim Miller52a61332014-11-12 19:29:51 -080096 }
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +053097 boolean isEsimLocked = KeyguardEsimArea.isEsimLocked(mContext, mSubId);
98
qingxi12f2de42017-05-24 15:33:13 -070099 KeyguardEsimArea esimButton = findViewById(R.id.keyguard_esim_area);
100 esimButton.setVisibility(isEsimLocked ? View.VISIBLE : View.GONE);
Daniel Sandler53149e62012-11-01 22:00:07 -0400101 }
102
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530103 private void showDefaultMessage() {
104 if (mRemainingAttempts >= 0) {
105 mSecurityMessageDisplay.setMessage(getPinPasswordErrorMessage(
106 mRemainingAttempts, true));
107 return;
108 }
109
110 boolean isEsimLocked = KeyguardEsimArea.isEsimLocked(mContext, mSubId);
111 int count = TelephonyManager.getDefault().getSimCount();
112 Resources rez = getResources();
113 String msg;
114 int color = Color.WHITE;
115 if (count < 2) {
116 msg = rez.getString(R.string.kg_sim_pin_instructions);
117 } else {
118 SubscriptionInfo info = KeyguardUpdateMonitor.getInstance(mContext).
119 getSubscriptionInfoForSubId(mSubId);
120 CharSequence displayName = info != null ? info.getDisplayName() : ""; // don't crash
121 msg = rez.getString(R.string.kg_sim_pin_instructions_multi, displayName);
122 if (info != null) {
123 color = info.getIconTint();
124 }
125 }
126
127 if (isEsimLocked) {
Qingxi Li2febffb2018-01-23 16:16:35 -0800128 msg = rez.getString(R.string.kg_sim_lock_esim_instructions, msg);
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530129 }
130
131 mSecurityMessageDisplay.setMessage(msg);
132 mSimImageView.setImageTintList(ColorStateList.valueOf(color));
133
134 // Sending empty PIN here to query the number of remaining PIN attempts
135 new CheckSimPin("", mSubId) {
136 void onSimCheckResponse(final int result, final int attemptsRemaining) {
137 Log.d(LOG_TAG, "onSimCheckResponse " + " dummy One result" + result +
138 " attemptsRemaining=" + attemptsRemaining);
139 if (attemptsRemaining >= 0) {
140 mRemainingAttempts = attemptsRemaining;
141 mSecurityMessageDisplay.setMessage(
142 getPinPasswordErrorMessage(attemptsRemaining, true));
143 }
144 }
145 }.start();
146 }
147
148 private void handleSubInfoChangeIfNeeded() {
149 KeyguardUpdateMonitor monitor = KeyguardUpdateMonitor.getInstance(mContext);
150 int subId = monitor.getNextSubIdForState(IccCardConstants.State.PIN_REQUIRED);
151 if (subId != mSubId && SubscriptionManager.isValidSubscriptionId(subId)) {
152 mSubId = subId;
153 mShowDefaultMessage = true;
154 mRemainingAttempts = -1;
155 }
156 }
157
Selim Cinek3122fa82015-06-18 01:38:59 -0700158 @Override
Jorim Jaggiad371b22015-09-23 11:52:12 -0700159 protected void onConfigurationChanged(Configuration newConfig) {
160 super.onConfigurationChanged(newConfig);
161 resetState();
162 }
163
164 @Override
Lucas Dupinc80c67e2017-12-04 14:29:10 -0800165 protected int getPromptReasonStringRes(int reason) {
Selim Cinek3122fa82015-06-18 01:38:59 -0700166 // No message on SIM Pin
167 return 0;
168 }
169
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530170 private String getPinPasswordErrorMessage(int attemptsRemaining, boolean isDefault) {
Wink Savilleb896b9f2013-10-23 15:44:26 -0700171 String displayMessage;
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530172 int msgId;
Wink Savilleb896b9f2013-10-23 15:44:26 -0700173 if (attemptsRemaining == 0) {
174 displayMessage = getContext().getString(R.string.kg_password_wrong_pin_code_pukked);
175 } else if (attemptsRemaining > 0) {
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530176 msgId = isDefault ? R.plurals.kg_password_default_pin_message :
177 R.plurals.kg_password_wrong_pin_code;
Wink Savilleb896b9f2013-10-23 15:44:26 -0700178 displayMessage = getContext().getResources()
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530179 .getQuantityString(msgId, attemptsRemaining, attemptsRemaining);
Wink Savilleb896b9f2013-10-23 15:44:26 -0700180 } else {
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530181 msgId = isDefault ? R.string.kg_sim_pin_instructions : R.string.kg_password_pin_failed;
182 displayMessage = getContext().getString(msgId);
Wink Savilleb896b9f2013-10-23 15:44:26 -0700183 }
Qingxi Li2febffb2018-01-23 16:16:35 -0800184 if (KeyguardEsimArea.isEsimLocked(mContext, mSubId)) {
185 displayMessage = getResources()
186 .getString(R.string.kg_sim_lock_esim_instructions, displayMessage);
187 }
Wink Savilleb896b9f2013-10-23 15:44:26 -0700188 if (DEBUG) Log.d(LOG_TAG, "getPinPasswordErrorMessage:"
189 + " attemptsRemaining=" + attemptsRemaining + " displayMessage=" + displayMessage);
190 return displayMessage;
191 }
192
Daniel Sandler53149e62012-11-01 22:00:07 -0400193 @Override
Jim Miller7d5e00a2013-10-11 22:45:57 -0700194 protected boolean shouldLockout(long deadline) {
195 // SIM PIN doesn't have a timed lockout
196 return false;
197 }
198
199 @Override
Daniel Sandler53149e62012-11-01 22:00:07 -0400200 protected int getPasswordTextViewId() {
Jorim Jaggifa9189f2014-04-17 20:17:30 +0200201 return R.id.simPinEntry;
Jim Millerdcb3d842012-08-23 19:18:12 -0700202 }
203
204 @Override
205 protected void onFinishInflate() {
206 super.onFinishInflate();
207
Jorim Jaggi40a0b382014-05-27 21:12:27 +0200208 if (mEcaView instanceof EmergencyCarrierArea) {
209 ((EmergencyCarrierArea) mEcaView).setCarrierTextVisible(true);
210 }
Alan Viverette51efddb2017-04-05 10:00:01 -0400211 mSimImageView = findViewById(R.id.keyguard_sim);
Jim Millerdcb3d842012-08-23 19:18:12 -0700212 }
213
Adam Cohen6fb841f2012-10-24 13:15:38 -0700214 @Override
Jim Miller52a61332014-11-12 19:29:51 -0800215 protected void onAttachedToWindow() {
216 super.onAttachedToWindow();
217 KeyguardUpdateMonitor.getInstance(mContext).registerCallback(mUpdateMonitorCallback);
218 }
219
220 @Override
221 protected void onDetachedFromWindow() {
222 super.onDetachedFromWindow();
223 KeyguardUpdateMonitor.getInstance(mContext).removeCallback(mUpdateMonitorCallback);
224 }
225
226 @Override
Adam Cohen6fb841f2012-10-24 13:15:38 -0700227 public void showUsabilityHint() {
228 }
229
Daniel Sandler53149e62012-11-01 22:00:07 -0400230 @Override
231 public void onPause() {
Jim Millerdcb3d842012-08-23 19:18:12 -0700232 // dismiss the dialog.
233 if (mSimUnlockProgressDialog != null) {
234 mSimUnlockProgressDialog.dismiss();
235 mSimUnlockProgressDialog = null;
236 }
237 }
238
239 /**
240 * Since the IPC can block, we want to run the request in a separate thread
241 * with a callback.
242 */
243 private abstract class CheckSimPin extends Thread {
244 private final String mPin;
Jim Miller52a61332014-11-12 19:29:51 -0800245 private int mSubId;
Jim Millerdcb3d842012-08-23 19:18:12 -0700246
Jim Miller52a61332014-11-12 19:29:51 -0800247 protected CheckSimPin(String pin, int subId) {
Jim Millerdcb3d842012-08-23 19:18:12 -0700248 mPin = pin;
Jim Miller52a61332014-11-12 19:29:51 -0800249 mSubId = subId;
Jim Millerdcb3d842012-08-23 19:18:12 -0700250 }
251
Wink Savilleb896b9f2013-10-23 15:44:26 -0700252 abstract void onSimCheckResponse(final int result, final int attemptsRemaining);
Jim Millerdcb3d842012-08-23 19:18:12 -0700253
254 @Override
255 public void run() {
256 try {
Jim Miller52a61332014-11-12 19:29:51 -0800257 if (DEBUG) {
258 Log.v(TAG, "call supplyPinReportResultForSubscriber(subid=" + mSubId + ")");
259 }
Wink Savilleb896b9f2013-10-23 15:44:26 -0700260 final int[] result = ITelephony.Stub.asInterface(ServiceManager
Jim Miller52a61332014-11-12 19:29:51 -0800261 .checkService("phone")).supplyPinReportResultForSubscriber(mSubId, mPin);
262 if (DEBUG) {
263 Log.v(TAG, "supplyPinReportResult returned: " + result[0] + " " + result[1]);
264 }
Jim Millerdcb3d842012-08-23 19:18:12 -0700265 post(new Runnable() {
Jim Miller4db942c2016-05-16 18:06:50 -0700266 @Override
Jim Millerdcb3d842012-08-23 19:18:12 -0700267 public void run() {
Wink Savilleb896b9f2013-10-23 15:44:26 -0700268 onSimCheckResponse(result[0], result[1]);
Jim Millerdcb3d842012-08-23 19:18:12 -0700269 }
270 });
271 } catch (RemoteException e) {
Jim Miller4fc2b012013-11-04 16:47:48 -0800272 Log.e(TAG, "RemoteException for supplyPinReportResult:", e);
Jim Millerdcb3d842012-08-23 19:18:12 -0700273 post(new Runnable() {
Jim Miller4db942c2016-05-16 18:06:50 -0700274 @Override
Jim Millerdcb3d842012-08-23 19:18:12 -0700275 public void run() {
Wink Savilleb896b9f2013-10-23 15:44:26 -0700276 onSimCheckResponse(PhoneConstants.PIN_GENERAL_FAILURE, -1);
Jim Millerdcb3d842012-08-23 19:18:12 -0700277 }
278 });
279 }
280 }
281 }
282
Jim Millerdcb3d842012-08-23 19:18:12 -0700283 private Dialog getSimUnlockProgressDialog() {
284 if (mSimUnlockProgressDialog == null) {
285 mSimUnlockProgressDialog = new ProgressDialog(mContext);
286 mSimUnlockProgressDialog.setMessage(
287 mContext.getString(R.string.kg_sim_unlock_progress_dialog_message));
288 mSimUnlockProgressDialog.setIndeterminate(true);
289 mSimUnlockProgressDialog.setCancelable(false);
Wink Savilleb896b9f2013-10-23 15:44:26 -0700290 mSimUnlockProgressDialog.getWindow().setType(
291 WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
Jim Millerdcb3d842012-08-23 19:18:12 -0700292 }
293 return mSimUnlockProgressDialog;
294 }
295
Wink Savilleb896b9f2013-10-23 15:44:26 -0700296 private Dialog getSimRemainingAttemptsDialog(int remaining) {
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530297 String msg = getPinPasswordErrorMessage(remaining, false);
Wink Savilleb896b9f2013-10-23 15:44:26 -0700298 if (mRemainingAttemptsDialog == null) {
299 Builder builder = new AlertDialog.Builder(mContext);
300 builder.setMessage(msg);
301 builder.setCancelable(false);
302 builder.setNeutralButton(R.string.ok, null);
303 mRemainingAttemptsDialog = builder.create();
304 mRemainingAttemptsDialog.getWindow().setType(
305 WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
306 } else {
307 mRemainingAttemptsDialog.setMessage(msg);
308 }
309 return mRemainingAttemptsDialog;
310 }
311
Daniel Sandler53149e62012-11-01 22:00:07 -0400312 @Override
313 protected void verifyPasswordAndUnlock() {
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700314 String entry = mPasswordEntry.getText();
Jim Miller7d5e00a2013-10-11 22:45:57 -0700315
Daniel Sandler53149e62012-11-01 22:00:07 -0400316 if (entry.length() < 4) {
Jim Millerdcb3d842012-08-23 19:18:12 -0700317 // otherwise, display a message to the user, and don't submit.
Adrian Roosdb327e92016-10-12 16:41:28 -0700318 mSecurityMessageDisplay.setMessage(R.string.kg_invalid_sim_pin_hint);
Jim Miller4db942c2016-05-16 18:06:50 -0700319 resetPasswordText(true /* animate */, true /* announce */);
Jorim Jaggib690f0d2014-07-03 23:25:44 +0200320 mCallback.userActivity();
Jim Millerdcb3d842012-08-23 19:18:12 -0700321 return;
322 }
323
324 getSimUnlockProgressDialog().show();
325
Jim Miller4fc2b012013-11-04 16:47:48 -0800326 if (mCheckSimPinThread == null) {
Jim Miller52a61332014-11-12 19:29:51 -0800327 mCheckSimPinThread = new CheckSimPin(mPasswordEntry.getText(), mSubId) {
Jim Miller4db942c2016-05-16 18:06:50 -0700328 @Override
Wink Savilleb896b9f2013-10-23 15:44:26 -0700329 void onSimCheckResponse(final int result, final int attemptsRemaining) {
Jim Miller4b09dd32012-09-04 14:27:25 -0700330 post(new Runnable() {
Jim Miller4db942c2016-05-16 18:06:50 -0700331 @Override
Jim Miller4b09dd32012-09-04 14:27:25 -0700332 public void run() {
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530333 mRemainingAttempts = attemptsRemaining;
Jim Miller4b09dd32012-09-04 14:27:25 -0700334 if (mSimUnlockProgressDialog != null) {
335 mSimUnlockProgressDialog.hide();
336 }
Jim Miller4db942c2016-05-16 18:06:50 -0700337 resetPasswordText(true /* animate */,
338 result != PhoneConstants.PIN_RESULT_SUCCESS /* announce */);
Wink Savilleb896b9f2013-10-23 15:44:26 -0700339 if (result == PhoneConstants.PIN_RESULT_SUCCESS) {
Jim Miller52a61332014-11-12 19:29:51 -0800340 KeyguardUpdateMonitor.getInstance(getContext())
341 .reportSimUnlocked(mSubId);
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530342 mRemainingAttempts = -1;
343 mShowDefaultMessage = true;
344 if (mCallback != null) {
345 mCallback.dismiss(true, KeyguardUpdateMonitor.getCurrentUser());
346 }
Jim Miller4b09dd32012-09-04 14:27:25 -0700347 } else {
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530348 mShowDefaultMessage = false;
Wink Savilleb896b9f2013-10-23 15:44:26 -0700349 if (result == PhoneConstants.PIN_PASSWORD_INCORRECT) {
350 if (attemptsRemaining <= 2) {
351 // this is getting critical - show dialog
352 getSimRemainingAttemptsDialog(attemptsRemaining).show();
353 } else {
354 // show message
355 mSecurityMessageDisplay.setMessage(
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530356 getPinPasswordErrorMessage(attemptsRemaining, false));
Wink Savilleb896b9f2013-10-23 15:44:26 -0700357 }
358 } else {
359 // "PIN operation failed!" - no idea what this was and no way to
360 // find out. :/
361 mSecurityMessageDisplay.setMessage(getContext().getString(
Adrian Roosdb327e92016-10-12 16:41:28 -0700362 R.string.kg_password_pin_failed));
Wink Savilleb896b9f2013-10-23 15:44:26 -0700363 }
364 if (DEBUG) Log.d(LOG_TAG, "verifyPasswordAndUnlock "
365 + " CheckSimPin.onSimCheckResponse: " + result
366 + " attemptsRemaining=" + attemptsRemaining);
Jim Miller4b09dd32012-09-04 14:27:25 -0700367 }
Jorim Jaggib690f0d2014-07-03 23:25:44 +0200368 mCallback.userActivity();
Jim Miller4fc2b012013-11-04 16:47:48 -0800369 mCheckSimPinThread = null;
Jim Millerdcb3d842012-08-23 19:18:12 -0700370 }
Jim Miller4b09dd32012-09-04 14:27:25 -0700371 });
372 }
Jim Miller4fc2b012013-11-04 16:47:48 -0800373 };
374 mCheckSimPinThread.start();
Jim Miller4b09dd32012-09-04 14:27:25 -0700375 }
Jim Millerdcb3d842012-08-23 19:18:12 -0700376 }
Jorim Jaggic14f8292014-05-27 02:25:45 +0200377
378 @Override
379 public void startAppearAnimation() {
380 // noop.
381 }
Jorim Jaggi76a16232014-08-08 17:00:47 +0200382
383 @Override
384 public boolean startDisappearAnimation(Runnable finishRunnable) {
385 return false;
386 }
Phil Weaver7d847b02018-02-13 16:02:35 -0800387
388 @Override
389 public CharSequence getTitle() {
390 return getContext().getString(
391 com.android.internal.R.string.keyguard_accessibility_sim_pin_unlock);
392 }
Jim Millerdcb3d842012-08-23 19:18:12 -0700393}
Daniel Sandler53149e62012-11-01 22:00:07 -0400394