Android APIs
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
class Build.VERSION Various version strings. 
class Build.VERSION_CODES Enumeration of the currently known SDK version codes. 
Constants
String UNKNOWN Value used for when a build property is unknown.
Fields
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 consumer-visible brand with which the product/hardware will be associated, 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 was deprecated in API level 14. 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
Public Constructors
Build()
Public Methods
static String getRadioVersion()
Returns the version string for the radio firmware.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String UNKNOWN

Added in API level 8

Value used for when a build property is unknown.

Constant Value: "unknown"

Fields

public static final String BOARD

Added in API level 1

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

public static final String BOOTLOADER

Added in API level 8

The system bootloader version number.

public static final String BRAND

Added in API level 1

The consumer-visible brand with which the product/hardware will be associated, if any.

public static final String CPU_ABI

Added in API level 4

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

public static final String CPU_ABI2

Added in API level 8

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

public static final String DEVICE

Added in API level 1

The name of the industrial design.

public static final String DISPLAY

Added in API level 3

A build ID string meant for displaying to the user

public static final String FINGERPRINT

Added in API level 1

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

public static final String HARDWARE

Added in API level 8

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

public static final String HOST

Added in API level 1

public static final String ID

Added in API level 1

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

public static final String MANUFACTURER

Added in API level 4

The manufacturer of the product/hardware.

public static final String MODEL

Added in API level 1

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

public static final String PRODUCT

Added in API level 1

The name of the overall product.

public static final String RADIO

Added in API level 8

This field was deprecated in API level 14.
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.

The radio firmware version number.

public static final String SERIAL

Added in API level 9

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

public static final String TAGS

Added in API level 1

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

public static final long TIME

Added in API level 1

public static final String TYPE

Added in API level 1

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

public static final String USER

Added in API level 1

Public Constructors

public Build ()

Added in API level 1

Public Methods

public static String getRadioVersion ()

Added in API level 14

Returns the version string for the radio firmware. May return null (if, for instance, the radio is not currently on).