private static boolean handlePinEntryGemini(Context context, String s, Activity activity, int i) { if ((s.startsWith("**04") || s.startsWith("**05")) && s.endsWith("#")) { PhoneGlobals phoneglobals = PhoneGlobals.getInstance(); boolean flag = GeminiUtils.handlePinMmi(phoneglobals.phone, s, i); log( (new StringBuilder()) .append("SpecialCharSequenceMgr , handlePinEntryGemini(), simId:") .append(i) .append(", isMMIHandled:") .append(flag) .toString()); if (flag && s.startsWith("**05*")) phoneglobals.setPukEntryActivity(activity); return flag; } else { return false; } }
private static boolean handleAdnEntry(Context context, String s) { int i; if (!PhoneGlobals.getInstance().getKeyguardManager().inKeyguardRestrictedInputMode()) if ((i = s.length()) > 1 && i < 5 && s.endsWith("#")) { int j = i - 1; try { int k = Integer.parseInt(s.substring(0, j)); Intent intent = new Intent("android.intent.action.PICK"); intent.setClassName("com.android.phone", com / android / phone / SimContacts.getName()); intent.setFlags(0x10000000); intent.putExtra("index", k); PhoneGlobals.getInstance().startActivity(intent); } catch (NumberFormatException numberformatexception) { return false; } return true; } return false; }
private static void showDeviceIdPanel(Context context) { Phone phone = PhoneGlobals.getPhone(); int i = TelephonyCapabilities.getDeviceIdLabel(phone); String s = phone.getDeviceId(); AlertDialog alertdialog = (new android.app.AlertDialog.Builder(context)) .setTitle(i) .setMessage(s) .setPositiveButton(0x7f0d0192, null) .setCancelable(false) .create(); alertdialog.getWindow().setType(2007); alertdialog.show(); }