IMEI number, Iesi number, phone model:
[Java] private void GetInfo () {Telephonymanager mTm = (telephonymanager) getsystemservice (Telephony_servi CE); String IMEI = Mtm.getdeviceid (); String IMSI = Mtm.getsubscriberid (); String mtype = Android.os.Build.MODEL; Phone model String Numer = Mtm.getline1number (); Mobile phone number, some available, some not available} model build.modelstringMODEL the end-user-visible name for the end product. SDK version Build.VERSION.SDKStringSDK This constant is deprecated. Use the sdk_int to easily get the as an integer.and Frimware version number (System version number) Build.VERSION.RELEASEStringRELEASE the user-visible version string. In fact, build can provide us with hardware manufacturers, hardware numbers, serial numbers and many other information call methods are also ibid, very simple. StringBOARD The name of the underlying BOARD, like "goldfish". StringBOOTLOADER The system BOOTLOADER version number. StringBrand the brand (e.g, carrier) the software is customized for, if any. StringCpu_abi The name of the instruction set (CPU type + ABI convention) of native code. StringCPU_ABI2 The name of the second instruction set (CPU type + ABI convention) of native code. StringDEVICE The name of the industrial design. StringDISPLAY A build ID string meant for displaying to the userStringfingerprint A String that uniquely identifies the this build. StringHARDWARE The name of the HARDWARE (from the kernel command line or/proc). StringHOSTStringID Either a changelist number, or a label like "M4-rc20". Stringmanufacturer the manufacturer of the product/hardware. StringMODEL the end-user-visible name for the end product. Stringproduct The name of the overall product. StringRADIO the RADIO firmware version number. StringSERIAL A hardware SERIAL number, if available. Stringtags comma-separated tags describing the build, like "Unsigned,debug". Long TimeStringtype The type of build, like "user" or "eng". StringUNKNOWN Value used a build property is UNKNOWN. String USER Clear Several concepts: the data stored by the sim card can be divided into four categories: the first type is fixed-storage data. This data is written by the SIM card center before the mobile phone is sold, including the International Mobile Subscriber Identification Number (IMSI), authentication key (KI), authentication and encryption algorithms, and so on. The second type is temporary storage of data about the network. such as the location Area identification Code (LAI), mobile User temporary identification number (TMSI), prohibit access to the public telephone network code. The third category is related business code, such as personal identification Number (PIN), unlock code (PUK), billing rate, etc. The fourth category is the phone book, which is the phone number that mobile phone users enter at any time. All of the user information is stored in the SIM card, so the SIM card is also called the User Data identification card. imsi is a unique number that identifies the only user in the GSM and UMTS networks. It is stored in the SIM card of the phone and it is sent to the network via the phone. IMSI and sim the only corresponding IMEI is a unique number that identifies the only mobile phone in the GSM and UMTS networks. It is usually printed on the side of the battery below the cell phone and dials * #06 # to see it. The IMEI corresponds to the device only. 1. The IMEI does not exist in the SIM card, it is the serial number of the phone itself. 2. Usually we call the mobile phone number also does not exist in the SIM card, although the SIM card has a special place to store the SIM card number, but this number is manually set, and can be changed. SIM card recognition usually uses the IMSI number, which is unique to the SIM card. 3. Using a function such as simgetrecordinfo to get the IMSI number of a SIM card depends on whether the device manufacturer has implemented this function, which I know is available on the Dopod machine, but not on the Lenovo machine, not the other machines. 4. The acquisition of IMEI and IMSI can be obtained by means of Ril or the line operation in TAPI. Remember to add permissions: <uses-permission android:name= "Android.permission.READ_PHONE_STATE"/> get phone screen height: [Java] private void Getweithandheight () { //This method is not available in the service, &NBSP ; &NBSp Displaymetrics DM = new Displaymetrics (); Getwindowmanager (). Getdefaultdisplay (). Getmetrics (DM); String width = dm.widthpixels; //width String height = Dm.heightpixels; //high & nbsp High and wide WindowManager Mwindowmanager = (windowmanager) G in service Etsystemservice (Context.window_service); width = Mwindowmanager.getdefaultdisplay (). GetWidth (); height = Mwindowmanager.getdefaultdisplay (). GetHeight (); } get phone MAC address: [java] privateString getmacaddress () { string result = ""; wifimanager Wifimanager = (wifimanager) getsystemservice (Con Text. Wifi_service); wifiinfo wifiinfo = Wifimanager.getconnectioninfo (); result = wifiinfo.getmacaddress (); &NBSP;LOG.I (TAG, "Macadd:" + result); return result; } phone CPU information [java] private string[] Getcpuinfo () { & nbsp string str1 = "/proc/cpuinfo"; string str2 = ""; string[] CpuInfo = {"", ""}; //1-CPU model &NBSP;//2-CPU frequency string[] arrayofstring; try { filereader fr = new FileReader (STR1); bufferedreader localbufferedreader = new Buffer Edreader (FR, 8192); &NBSP;STR2 = Localbufferedreader.readline (); arrayofstring = Str2.split ("\\s+"); for (int i = 2; i < arrayofstring.length; i+ +) { cpuinfo[0] = cpuinfo[0] + ar Rayofstring[i] + ""; } &nbSp &NBSP;STR2 = Localbufferedreader.readline (); arrayofstring = Str2.split ("\\s+"); &NBSP;CPUINFO[1] + + arrayofstring[2]; localbufferedreader.close (); } catch (IOException e) { & nbsp &NBSP,} &NBSP;LOG.I (TAG, "cpuinfo:" + cpuinfo[0] + " "+ cpuinfo[1]); return CpuInfo; } get phone available memory and total memory: [Java] private string[] Gettotalmemory ( { string[] result = {"", ""}; //1-total 2-Avail activitymanager.memoryinfo mi = new Activitymanager.memoryinf O (); Mactivitymanager.getmemoryinfo (MI); long mtotalmem = 0; long mavailmem = Mi.availmem; String str1 = "/proc/meminfo"; String str2; string[] arrayofstring; try { FileReader Localfilereader = new FileReader (STR1); BufferedReader localbufferedreader = new Bufferedread ER (localfilereader, 8192); &NBSP STR2 = Localbufferedreader.readline (); arrayofstring = Str2.split ("\\s+"); MTOTALMEM = integer.valueof (Arrayofstring[1]). intval UE () * 1024; localbufferedreader.close (); } catch (IOException e) { e.printstacktrace (); } RESULT[0] = Formatter.formatfilesize (this, mtotalmem); RESULT[1] = Formatter.formatfilesize (this, mavailmem); LOG.I (TAG, "Meminfo total:" + result[0] + "used:" + result[1]); &NBSP; return result; } get application information for mobile phone installation (exclude system comes with): [Java] www.2cto.comprivate String Getallapp () { string result = ""; List<PackageInfo> packages = Getpackagemanager (). Getinstalledpackages (0); for (PackageInfo i:packages) { & nbsp if ((i.applicationinfo.flags & applicationinfo.flag_system) = = 0) { &N bsp; result + I.applicationinfo.loadlabel (getp Ackagemanager ()). ToString () + ","; } &NBS P &NBSP,} retUrn result.substring (0, Result.length ()-1); }