Build
public
class
Build
extends Object
| java.lang.Object | |
| ↳ | android.os.Build |
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
This field was deprecated
in API level 21.
Use |
public
static
final
String |
CPU_ABI2
This field was deprecated
in API level 21.
Use |
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
|
public
static
final
String |
SERIAL
This field was deprecated
in API level O.
Use |
public
static
final
String[] |
SUPPORTED_32_BIT_ABIS
An ordered list of 32 bit ABIs supported by this device. |
public
static
final
String[] |
SUPPORTED_64_BIT_ABIS
An ordered list of 64 bit ABIs supported by this device. |
public
static
final
String[] |
SUPPORTED_ABIS
An ordered list of ABIs supported by this device. |
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. |
static
String
|
getSerial()
Gets the hardware serial, if available. |
Inherited methods | |
|---|---|
java.lang.Object
| |
Constants
UNKNOWN
String UNKNOWN
Value used for when a build property is unknown.
Constant Value: "unknown"
Fields
BRAND
String BRAND
The consumer-visible brand with which the product/hardware will be associated, if any.
CPU_ABI
String CPU_ABI
This field was deprecated
in API level 21.
Use SUPPORTED_ABIS instead.
The name of the instruction set (CPU type + ABI convention) of native code.
CPU_ABI2
String CPU_ABI2
This field was deprecated
in API level 21.
Use SUPPORTED_ABIS instead.
The name of the second instruction set (CPU type + ABI convention) of native code.
FINGERPRINT
String FINGERPRINT
A string that uniquely identifies this build. Do not attempt to parse this value.
HARDWARE
String HARDWARE
The name of the hardware (from the kernel command line or /proc).
RADIO
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.
The radio firmware version number.
SERIAL
String SERIAL
This field was deprecated
in API level O.
Use getSerial() instead.
A hardware serial number, if available. Alphanumeric only, case-insensitive.
For apps targeting SDK higher than N_MR1 this
field is set to UNKNOWN.
SUPPORTED_32_BIT_ABIS
String[] SUPPORTED_32_BIT_ABIS
An ordered list of 32 bit ABIs supported by this device. The most preferred ABI
is the first element in the list.
See SUPPORTED_ABIS and SUPPORTED_64_BIT_ABIS.
SUPPORTED_64_BIT_ABIS
String[] SUPPORTED_64_BIT_ABIS
An ordered list of 64 bit ABIs supported by this device. The most preferred ABI
is the first element in the list.
See SUPPORTED_ABIS and SUPPORTED_32_BIT_ABIS.
SUPPORTED_ABIS
String[] SUPPORTED_ABIS
An ordered list of ABIs supported by this device. The most preferred ABI is the first
element in the list.
See SUPPORTED_32_BIT_ABIS and SUPPORTED_64_BIT_ABIS.
TAGS
String TAGS
Comma-separated tags describing the build, like "unsigned,debug".
Public constructors
Public methods
getRadioVersion
String getRadioVersion ()
Returns the version string for the radio firmware. May return null (if, for instance, the radio is not currently on).
| Returns | |
|---|---|
String |
|
getSerial
String getSerial ()
Gets the hardware serial, if available.
Requires the READ_PHONE_STATE permission.
| Returns | |
|---|---|
String |
The serial if specified. |
Interfaces
Classes
- AsyncTask
- BaseBundle
- BatteryManager
- Binder
- Build
- Build.VERSION
- Build.VERSION_CODES
- Bundle
- CancellationSignal
- ConditionVariable
- CountDownTimer
- CpuUsageInfo
- Debug
- Debug.InstructionCount
- Debug.MemoryInfo
- DropBoxManager
- DropBoxManager.Entry
- Environment
- FileObserver
- Handler
- HandlerThread
- HardwarePropertiesManager
- LocaleList
- Looper
- MemoryFile
- Message
- MessageQueue
- Messenger
- Parcel
- ParcelFileDescriptor
- ParcelFileDescriptor.AutoCloseInputStream
- ParcelFileDescriptor.AutoCloseOutputStream
- ParcelUuid
- PatternMatcher
- PersistableBundle
- PowerManager
- PowerManager.WakeLock
- Process
- ProxyFileDescriptorCallback
- RecoverySystem
- RemoteCallbackList
- ResultReceiver
- StatFs
- StrictMode
- StrictMode.ThreadPolicy
- StrictMode.ThreadPolicy.Builder
- StrictMode.VmPolicy
- StrictMode.VmPolicy.Builder
- SystemClock
- TestLooperManager
- TokenWatcher
- Trace
- UserHandle
- UserManager
- VibrationEffect
- Vibrator
- WorkSource
Enums
Exceptions