1. 程式人生 > >Android Build類

Android Build類

Log.i(TAG,"裝置引數:"+Build.DEVICE);
        Log.i(TAG,"顯示屏引數:"+Build.DISPLAY);
        Log.i(TAG,"硬體製造商:"+Build.MANUFACTURER);
        Log.i(TAG,"產品名:"+Build.PRODUCT);
        Log.i(TAG,"裝置型號:"+Build.MODEL);
        Log.i(TAG,"版本號:"+Build.VERSION.SDK_INT);
        if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.O) {
            if(checkPermission(this)) {
                Log.i(TAG, "硬體序列號:"+Build.getSerial());
            }
        }else{
            Log.i(TAG,"硬體序列號:"+ Build.SERIAL);
        }
裝置引數:HWNXT
    顯示屏引數:NXT-AL10C00B596
    硬體製造商:HUAWEI
    產品名:NXT-AL10
    產品型號:HUAWEI NXT-AL10
    版本號:24
    硬體序列號:CJL7N16419111111