android更改暗码
16lz
2021-01-23
在Contact应用程序下的SpecialCharSequenceMgr.java下的
static boolean handleSecretCode(Context context, String input) { // Secret codes are in the form *#*#<code>#*#* int len = input.length(); if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) { Intent intent = new Intent(Intents.SECRET_CODE_ACTION, Uri.parse("android_secret_code://" + input.substring(4, len - 4))); context.sendBroadcast(intent); return true; }else if (input.equals("*998#")) { Intent intent2 = new Intent(); intent2.setAction("com.android.phone.ACTION_FACTORY_MODE"); context.sendBroadcast(intent2); return true; } return false; }
更多相关文章
- 【Android】遍历系统中所有应用程序
- Android应用程序键盘(Keyboard)消息处理机制分析(19)
- android 怎样通过暗码启动应用程序
- android 使用html做应用程序界面初探
- 关于android应用程序签名的一些事儿
- Android应用程序的消息处理机制