android.os.Build是关于设备信息的,如:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | /** * 获取设备信息 * * @return */ private String getDeviceInfo() { StringBuffer sb = new StringBuffer(); sb.append( "主板: " + Build.BOARD); sb.append( "\n系统启动程序版本号: " + Build.BOOTLOADER); sb.append( "\n系统定制商: " + Build.BRAND); sb.append( "\ncpu指令集: " + Build.CPU_ABI); sb.append( "\ncpu指令集2 " + Build.CPU_ABI2); sb.append( "\n设置参数: " + Build.DEVICE); sb.append( "\n显示屏参数:" + Build.DISPLAY); sb.append( "\n无线电固件版本:" + Build.getRadioVersion()); sb.append( "\n硬件识别码: " + Build.FINGERPRINT); sb.append( "\n硬件名称: " + Build.HARDWARE); sb.append( "\nHOST: " + Build.HOST); sb.append( "\nBuild.ID);" + Build.ID); sb.append( "\n硬件制造商: " + Build.MANUFACTURER); sb.append( "\n版本: " + Build.MODEL); sb.append( "\n硬件序列号: " + Build.SERIAL); sb.append( "\n手机制造商: " + Build.PRODUCT); sb.append( "\n 描述Build的标签: " + Build.TAGS); sb.append( "\nTIME: " + Build.TIME); sb.append( "\nbuilder类型" +Build.TYPE); sb.append( "\nUSER: " +Build.USER); return sb.toString(); } |