您的位置:首页 > 移动开发 > Android开发

[Android]Hot key IMEI *#06# and *#07#

2015-11-05 16:57 549 查看
*#06# and *#07# 這兩個字串定義在以下檔案中:

packages/services/Telephony/src/com/android/phone/SpecialCharSequenceMgr.java

定義MMI_IMEI_DISPLAY 和 MMI_REGULATORY_INFO_DISPLAY 如下:

public class SpecialCharSequenceMgr {
private static final String TAG = PhoneGlobals.LOG_TAG;
private static final boolean DBG = false;

private static final String MMI_IMEI_DISPLAY = "*#06#";
private static final String MMI_REGULATORY_INFO_DISPLAY = "*#07#";

//...
}


此類的說明,也涉及到有關PIN的東西,不清楚PUK 的在什麼地方處理。

/**
* Helper class to listen for some magic dialpad character sequences
* that are handled specially by the Phone app.
*
* Note the Contacts app also handles these sequences too, so there's a
* separate version of this class under apps/Contacts.
*
* In fact, the most common use case for these special sequences is typing
* them from the regular "Dialer" used for outgoing calls, which is part
* of the contacts app; see DialtactsActivity and DialpadFragment.
* *This* version of SpecialCharSequenceMgr is used for only a few
* relatively obscure places in the UI:
* - The "SIM network unlock" PIN entry screen (see
*   IccNetworkDepersonalizationPanel.java)
* - The emergency dialer (see EmergencyDialer.java).
*
* TODO: there's lots of duplicated code between this class and the
* corresponding class under apps/Contacts.  Let's figure out a way to
* unify these two classes (in the framework? in a common shared library?)
*/


以上記錄下,以便日後查找。

[end]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: