Android关于Android.OS.Build的介绍

关于Build类的介绍

这个类为一个获取设备一些初始化信息的类,该类的主要信息都是通过一些static的字段获得:

public static final String

BOARD

The name of the underlying board, like "goldfish".(设备厂商)

public static final String

BOOTLOADER

The system bootloader version number.

public static final String

BRAND

The brand (e.g., carrier) the software is customized for, if any.

public static final String

CPU_ABI

The name of the instruction set (CPU type + ABI convention) of native code.

public static final String

CPU_ABI2

The name of the second instruction set (CPU type + ABI convention) of native code.

public static final String

DEVICE

The name of the industrial design.

public static final String

DISPLAY

A build ID string meant for displaying to the user

public static final String

FINGERPRINT

A string that uniquely identifies this build.

public static final String

HARDWARE

The name of the hardware (from the kernel command line or /proc).

public static final String

HOST

 

public static final String

ID

Either a changelist number, or a label like "M4-rc20".

public static final String

MANUFACTURER

The manufacturer of the product/hardware.

public static final String

MODEL

The end-user-visible name for the end product.(设备名)

public static final String

PRODUCT

The name of the overall product.

public static final String

RADIO

This field is deprecated. The radio firmware version is frequently not available when this class is initialized, leading to a blank or "unknown" value for this string. Use getRadioVersion() instead.

public static final String

SERIAL

A hardware serial number, if available.

public static final String

TAGS

Comma-separated tags describing the build, like "unsigned,debug".

public static final long

TIME

 

public static final String

TYPE

The type of build, like "user" or "eng".

public static final String

USER

 

Android关于Android.OS.Build的介绍,,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。