public class

Build

extends Object
java.lang.Object
   ↳android.os.Build

Class Overview

Information about the current build, extracted from system properties.

Summary

Nested Classes
classBuild.VERSIONVarious version strings. 
classBuild.VERSION_CODESEnumeration of the currently known SDK version codes. 
Constants
StringBOARDThe name of the underlying board, like "goldfish".
StringBOOTLOADERThe system bootloader version number.
StringBRANDThe brand (e.g., carrier) the software is customized for, if any.
StringCPU_ABIThe name of the instruction set (CPU type + ABI convention) of native code.
StringCPU_ABI2The name of the second instruction set (CPU type + ABI convention) of native code.
StringDEVICEThe name of the industrial design.
StringDISPLAYA build ID string meant for displaying to the user
StringFINGERPRINTA string that uniquely identifies this build.
StringHARDWAREThe name of the hardware (from the kernel command line or /proc).
StringHOST
StringIDEither a changelist number, or a label like "M4-rc20".
StringMANUFACTURERThe manufacturer of the product/hardware.
StringMODELThe end-user-visible name for the end product.
StringPRODUCTThe name of the overall product.
StringRADIOThe radio firmware version number.
StringSERIALA hardware serial number, if available.
StringTAGSComma-separated tags describing the build, like "unsigned,debug".
longTIME
StringTYPEThe type of build, like "user" or "eng".
StringUNKNOWNValue used for when a build property is unknown.
StringUSER
Public Constructors
Build()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String BOARD

Since: API Level 1

The name of the underlying board, like "goldfish".

public static final String BOOTLOADER

Since: API Level 8

The system bootloader version number.

public static final String BRAND

Since: API Level 1

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

public static final String CPU_ABI

Since: API Level 4

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

public static final String CPU_ABI2

Since: API Level 8

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

public static final String DEVICE

Since: API Level 1

The name of the industrial design.

public static final String DISPLAY

Since: API Level 3

A build ID string meant for displaying to the user

public static final String FINGERPRINT

Since: API Level 1

A string that uniquely identifies this build. Do not attempt to parse this value.

public static final String HARDWARE

Since: API Level 8

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

public static final String HOST

Since: API Level 1

public static final String ID

Since: API Level 1

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

public static final String MANUFACTURER

Since: API Level 4

The manufacturer of the product/hardware.

public static final String MODEL

Since: API Level 1

The end-user-visible name for the end product.

public static final String PRODUCT

Since: API Level 1

The name of the overall product.

public static final String RADIO

Since: API Level 8

The radio firmware version number.

public static final String SERIAL

Since: API Level 9

A hardware serial number, if available. Alphanumeric only, case-insensitive.

public static final String TAGS

Since: API Level 1

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

public static final long TIME

Since: API Level 1

public static final String TYPE

Since: API Level 1

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

public static final String UNKNOWN

Since: API Level 8

Value used for when a build property is unknown.

Constant Value: "unknown"

public static final String USER

Since: API Level 1

Public Constructors

public Build ()

Since: API Level 1