source code
note:不一定所有的值都取的到
public static void getDeviceInfo(){ Field[] deviceInfo = android.os.Build.class.getFields(); for (Field one : deviceInfo) { try { Log.d(TAG, "Name:" + one.getName() + " Value:" + one.get(one)); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } } }
output
06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:ASUSCID Value:ASUS 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:ASUSSKU Value:WW 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:AUTO_START Value:true 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:BOARD Value:msm8952 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:BOOTLOADER Value:unknown 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:BRAND Value:asus 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:CHARACTERISTICS Value:tablet 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:COUNTRYCODE Value:TW 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:CPU_ABI Value:arm64-v8a 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:CPU_ABI2 Value: 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:CTA Value:false 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:DEVICE Value:ASUS_P00I 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:DISPLAY Value:NRD90M.WW_ASUS_P00I-V5.4.6-20170815 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:FINGERPRINT Value:asus/WW_ASUS_P00I/ASUS_P00I:7.0/NRD90M/WW_ASUS_P00I-V5.4.6-20170815:user/release-keys 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:HARDWARE Value:qcom 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:HOST Value:mec7 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:ID Value:NRD90M 06-07 10:27:56.327 24184 24184 D DeviceUtility: Name:ISASUSVERMAX Value:false 06-07 10:27:56.328 24184 24184 D DeviceUtility: Name:IS_DEBUGGABLE Value:false 06-07 10:27:56.328 24184 24184 D DeviceUtility: Name:IS_EMULATOR Value:false 06-07 10:27:56.328 24184 24184 D DeviceUtility: Name:MANUFACTURER Value:asus 06-07 10:27:56.328 24184 24184 D DeviceUtility: Name:MODEL Value:ASUS_P00I 06-07 10:27:56.328 24184 24184 D DeviceUtility: Name:PERMISSIONS_REVIEW_REQUIRED Value:false 06-07 10:27:56.328 24184 24184 D DeviceUtility: Name:PRODUCT Value:WW_ASUS_P00I 06-07 10:27:56.328 24184 24184 D DeviceUtility: Name:RADIO Value:unknown 06-07 10:27:56.328 24184 24184 D DeviceUtility: Name:SERIAL Value:GCNPCX1079367R5 06-07 10:27:56.328 24184 24184 D DeviceUtility: Name:SUPPORTED_32_BIT_ABIS Value:[Ljava.lang.String;@3f04769 06-07 10:27:56.328 24184 24184 D DeviceUtility: Name:SUPPORTED_64_BIT_ABIS Value:[Ljava.lang.String;@74695ee 06-07 10:27:56.328 24184 24184 D DeviceUtility: Name:SUPPORTED_ABIS Value:[Ljava.lang.String;@ed08a8f 06-07 10:27:56.328 24184 24184 D DeviceUtility: Name:TAGS Value:release-keys 06-07 10:27:56.328 24184 24184 D DeviceUtility: Name:TIME Value:1502780830000 06-07 10:27:56.328 24184 24184 D DeviceUtility: Name:TYPE Value:user 06-07 10:27:56.328 24184 24184 D DeviceUtility: Name:UNKNOWN Value:unknown 06-07 10:27:56.328 24184 24184 D DeviceUtility: Name:USER Value:android