String brand 商标String model 手机型号String serialno 序列号String android_id 设备IDString release android版本String sdk 最小兼容版本String bid 系统版本编号String manufacturer 厂商String product 销往地String cpu_abi CPU类型String display ROM编号名称String deviceString fingerprint 厂商/制造地String imei IMEIString imsi 移动用户识别码String devicesoftwareversion 设备的软件版本号String phonenum 电话号码String phonetype 电话状态String simserialnumber ICCID(SIM串号)String simcountryiso ISO国家码(SIM卡的国家码)String simoperator 移动网络码(SIM卡提供的移动国家码)String simoperatorname 服务商名称(中国联通,中国电信)String simstate SIM状态(没插卡,就绪,锁定)String voicemailnumber 获取语音邮件号码String networkcountryiso ISO标准的国家码String networkoperator 全球运营商MCC+MNCString networkoperatorname; 名字(中国联通,中国电信)String networktype 当前使用的网络类型String wifiadess; 网卡地址String bluetoothadess 蓝牙地址String screensize 屏幕像素String screendensity 比例因子:显示器的逻辑密度String getcid GSM位置区值String getlac GSM位置区码
try { brand = Build.BRAND;} catch (Exception e) { brand = "NULL";}try { model = Build.MODEL;} catch (Exception e) { model = "NULL";}try { Class<?> c = Class.forName("android.os.SystemProperties");Method get = c.getMethod("get", String.class);serialno = (String) get.invoke(c, "ro.serialno");} catch (Exception ignored) { serialno = "NULL";}try { android_id = Secure.getString(this.getContentResolver(),Secure.ANDROID_ID);} catch (Exception e) { android_id = "NULL";}try { release = Build.VERSION.RELEASE;} catch (Exception e) { release = "NULL";}try { sdk = Build.VERSION.SDK;} catch (Exception e) { sdk = "NULL";}try { bid = Build.ID;} catch (Exception e) { bid = "NULL";}try { manufacturer = Build.MANUFACTURER;} catch (Exception e) { manufacturer = "NULL";}try { product = Build.PRODUCT;} catch (Exception e) { product = "NULL";}
try { cpu_abi = Build.CPU_ABI;} catch (Exception e) { cpu_abi = "NULL";}
try { display = Build.DISPLAY;} catch (Exception e) { display = "NULL";}
try { device = Build.DEVICE;} catch (Exception e) { device = "NULL";}
try { fingerprint = Build.FINGERPRINT;} catch (Exception e) { fingerprint = "NULL";}
try { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);imei = tm.getDeviceId();} catch (Exception e) { imei = "NULL";}
try { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);imsi = tm.getSubscriberId();} catch (Exception e) { imsi = "NULL";}
try { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);devicesoftwareversion = tm.getDeviceSoftwareVersion();} catch (Exception e) { devicesoftwareversion = "NULL";}
try { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);phonenum = tm.getLine1Number();} catch (Exception e) { phonenum = "NULL";}
try { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);phonetype = Integer.toString(tm.getPhoneType());} catch (Exception e) { phonetype = "NULL";}
try { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);simserialnumber = tm.getSimSerialNumber();} catch (Exception e) { simserialnumber = "NULL";}
try { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);simcountryiso = tm.getSimCountryIso();} catch (Exception e) { simcountryiso = "NULL";}
try { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);simoperator = tm.getSimOperator();} catch (Exception e) { simoperator = "NULL";}
try { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);simoperatorname = tm.getSimOperatorName();} catch (Exception e) { simoperatorname = "NULL";}
try { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);simstate = Integer.toString(tm.getSimState());} catch (Exception e) { simstate = "NULL";}
try { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);voicemailnumber = tm.getVoiceMailNumber();} catch (Exception e) { voicemailnumber = "NULL";}
try { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);networkcountryiso = tm.getNetworkCountryIso();} catch (Exception e) { networkcountryiso = "NULL";}
try { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);networkoperator = tm.getNetworkOperator();} catch (Exception e) { networkoperator = "NULL";}
try { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);networkoperatorname = tm.getNetworkOperatorName();} catch (Exception e) { networkoperatorname = "NULL";}
try { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);networktype = Integer.toString(tm.getNetworkType());} catch (Exception e) { networktype = "NULL";}
try { WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);WifiInfo info = wifi.getConnectionInfo();wifiadess = info.getMacAddress();} catch (Exception e) { wifiadess = "NULL";}
try { BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();bluetoothadess = adapter.getAddress();} catch (Exception e) { bluetoothadess = "NULL";}
try { DisplayMetrics dm = new DisplayMetrics();getWindowManager().getDefaultDisplay().getMetrics(dm);int widthPixels = dm.widthPixels;int heightPixels = dm.heightPixels;screensize = Integer.toString(widthPixels) + "*"+ Integer.toString(heightPixels);} catch (Exception e) { screensize = "NULL";}
try { DisplayMetrics dm = new DisplayMetrics();getWindowManager().getDefaultDisplay().getMetrics(dm);float density = dm.density;screendensity = Float.toString(density);} catch (Exception e) { screendensity = "NULL";}
try { TelephonyManager tel;tel = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);CellLocation cellLocation = tel.getCellLocation();GsmCellLocation gsmCellLocation = (GsmCellLocation) cellLocation;getcid = Integer.toString(gsmCellLocation.getCid());} catch (Exception e) { getcid = "NULL";}
try { TelephonyManager tel;tel = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);CellLocation cellLocation = tel.getCellLocation();GsmCellLocation gsmCellLocation = (GsmCellLocation) cellLocation;getlac = Integer.toString(gsmCellLocation.getLac());} catch (Exception e) { getlac = "NULL";}