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

来源:互联网 发布:mac steam游戏目录 编辑:程序博客网 时间:2024/05/22 05:30

*#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]

0 0