美文网首页
android.os.Build---从系统属性中提取设备硬件和

android.os.Build---从系统属性中提取设备硬件和

作者: LiKaiRabbit | 来源:发表于2017-10-16 11:53 被阅读204次
    /**
     * 获取设备信息
     *
     * @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();
    }
    
    740651-20160706182730764-628068175.png

    相关文章

      网友评论

          本文标题:android.os.Build---从系统属性中提取设备硬件和

          本文链接:https://www.haomeiwen.com/subject/kdenyxtx.html