在android的手机里,进入拨号程序,输入*#*#4636#*#* 可以看到一个测试应用。
查看Phone的源代码,有一个函数专门处理*#*# 开头,#*#*结尾的拨号字符串。
SpecialCharSequenceMgr.java
/**
* Handles secret codes to launch arbitrary activities in the form of *#*#<code>#*#*.
* If a secret code is encountered an Intent is started with the android_secret_code://<code>
* URI.
*
* @param context the context to use
* @param input the text to check for a secret code in
* @return true if a secret code was encountered
*/
static private 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