Copy codeThe Code is as follows: StringBuilder phoneInfo = new StringBuilder ();
PhoneInfo. append ("Product:" + android. OS. Build. PRODUCT + System. getProperty ("line. separator "));
PhoneInfo. append ("CPU_ABI:" + android. OS. Build. CPU_ABI + System. getProperty ("line. separator "));
PhoneInfo. append ("TAGS:" + android. OS. Build. TAGS + System. getProperty ("line. separator "));
PhoneInfo. append ("VERSION_CODES.BASE:" + android. OS. Build. VERSION_CODES.BASE + System. getProperty ("line. separator "));
PhoneInfo. append ("MODEL:" + android. OS. Build. MODEL + System. getProperty ("line. separator "));
PhoneInfo. append ("SDK:" + android. OS. Build. VERSION. SDK + System. getProperty ("line. separator "));
PhoneInfo. append ("VERSION. RELEASE:" + android. OS. Build. VERSION. RELEASE + System. getProperty ("line. separator "));
PhoneInfo. append ("DEVICE:" + android. OS. Build. DEVICE + System. getProperty ("line. separator "));
PhoneInfo. append ("DISPLAY:" + android. OS. Build. DISPLAY + System. getProperty ("line. separator "));
PhoneInfo. append ("BRAND:" + android. OS. Build. BRAND + System. getProperty ("line. separator "));
PhoneInfo. append ("BOARD:" + android. OS. Build. BOARD + System. getProperty ("line. separator "));
PhoneInfo. append ("FINGERPRINT:" + android. OS. Build. FINGERPRINT + System. getProperty ("line. separator "));
PhoneInfo. append ("ID:" + android. OS. Build. ID + System. getProperty ("line. separator "));
PhoneInfo. append ("MANUFACTURER:" + android. OS. Build. MANUFACTURER + System. getProperty ("line. separator "));
PhoneInfo. append ("USER:" + android. OS. Build. USER + System. getProperty ("line. separator "));
TelephonyManager tm = (TelephonyManager) getSystemService (Context. TELEPHONY_SERVICE );
PhoneInfo. append ("DeviceId (IMEI) =" + tm. getDeviceId () + System. getProperty ("line. separator "));
PhoneInfo. append ("DeviceSoftwareVersion =" + tm. getDeviceSoftwareVersion () + System. getProperty ("line. separator "));
PhoneInfo. append ("Line1Number =" + tm. getLine1Number () + System. getProperty ("line. separator "));
PhoneInfo. append ("NetworkCountryIso =" + tm. getNetworkCountryIso () + System. getProperty ("line. separator "));
PhoneInfo. append ("NetworkOperator =" + tm. getNetworkOperator () + System. getProperty ("line. separator "));
PhoneInfo. append ("NetworkOperatorName =" + tm. getNetworkOperatorName () + System. getProperty ("line. separator "));
PhoneInfo. append ("NetworkType =" + tm. getNetworkType () + System. getProperty ("line. separator "));
PhoneInfo. append ("PhoneType =" + tm. getPhoneType () + System. getProperty ("line. separator "));
PhoneInfo. append ("SimCountryIso =" + tm. getSimCountryIso () + System. getProperty ("line. separator "));
PhoneInfo. append ("SimOperator =" + tm. getSimOperator () + System. getProperty ("line. separator "));
PhoneInfo. append ("SimOperatorName =" + tm. getSimOperatorName () + System. getProperty ("line. separator "));
PhoneInfo. append ("SimSerialNumber =" + tm. getSimSerialNumber () + System. getProperty ("line. separator "));
PhoneInfo. append ("SimState =" + tm. getSimState () + System. getProperty ("line. separator "));
PhoneInfo. append ("SubscriberId (IMSI) =" + tm. getSubscriberId () + System. getProperty ("line. separator "));
PhoneInfo. append ("VoiceMailNumber =" + tm. getVoiceMailNumber () + System. getProperty ("line. separator "));
Remember to add permissions:Copy codeThe Code is as follows: <uses-permission android: name = "android. permission. READ_PHONE_STATE"/>