ããè·åAndroidå¯ä¸æ è¯å¯ä»¥ç¨ä»¥ä¸ä¸¤ç§æ¹æ³ï¼ãã1ãThe IMEI: ä»
ä»
åªå¯¹Androidææºææ:ããTelephonyManager TelephonyMgr = ( TelephonyManager)getSystemService(TELEPHONY_SERVICE); String szImei = TelephonyMgr.getDeviceId(); ããéç¨æ¤ç§æ¹æ³ï¼éè¦å¨AndroidManifest.xmlä¸å å
¥ä¸ä¸ªè®¸å¯ï¼ android.permission. READ_PHONE_STATEï¼å¹¶ä¸ç¨æ·åºå½å
许å®è£
æ¤åºç¨ãä½ä¸ºææºæ¥è®²ï¼IMEIæ¯å¯ä¸çï¼å®åºè¯¥ç±»ä¼¼äº 359881030314356ããã2ãPseudo-Unique ID, è¿ä¸ªå¨ä»»ä½Androidææºä¸é½æææä¸äºç¹æ®çæ
åµï¼ä¸äºå¦å¹³æ¿çµèç设置没æéè¯åè½ï¼æè
ä½ ä¸æ¿å å
¥READ_PHONE _STATE许å¯ãèä»ç¶æ³è·å¾å¯ä¸åºåå·ä¹ç±»çä¸è¥¿ãè¿æ¶å¯ä»¥éè¿ååºROMçæ¬ãå¶é åãCPUåå·ã以åå
¶ä»ç¡¬ä»¶ä¿¡æ¯æ¥å®ç°è¿ä¸ç¹ãè¿æ ·è®¡ç®åºæ¥çIDä¸æ¯å¯ä¸çï¼å 为å¦æ两个ææºåºç¨äºåæ ·ç硬件以åRom éåï¼ãä½åºå½æç½çæ¯ï¼åºç°ç±»ä¼¼æ
åµçå¯è½æ§åºæ¬å¯ä»¥å¿½ç¥ãè¦å®ç°è¿ä¸ç¹ï¼å¯ä»¥ä½¿ç¨Buildç±»ããã String m_szDevIDShort = "35" + Build.BOARD.length()%10 + Build.BRAND.length()%10 + Build.CPU_ABI.length()%10 + Build.DEVICE.length()%10 + Build.DISPLAY.length()%10 + Build.HOST.length()%10 + Build.ID.length()%10 + Build.MANUFACTURER.length()%10 + Build.MODEL.length()%10 + Build.PRODUCT.length()%10 + Build.TAGS.length()%10 + Build.TYPE.length()%10 + Build.USER.length()%10 ; //13 digits ãã大å¤æ°çBuildæåé½æ¯å符串形å¼çï¼æ们åªåä»ä»¬çé¿åº¦ä¿¡æ¯ãæ们åå°13个æ°åï¼å¹¶å¨åé¢å ä¸â35âãè¿æ ·è¿ä¸ªIDçèµ·æ¥å°±å15ä½IMEIä¸æ ·äºã
温馨提示:内容为网友见解,仅供参考