Build class abstract interface

Information about the current build, extracted from system properties.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

board → String
The name of the underlying board, like "goldfish".
no setter
bootloader → String
The system bootloader version number.
no setter
brand → String
The consumer-visible brand with which the product/hardware will be associated, if any.
no setter
cpuAbi → String
The name of the instruction set (CPU type + ABI convention) of native code.
no setter
cpuAbi2 → String
The name of the second instruction set (CPU type + ABI convention) of native code.
no setter
device → String
The name of the industrial design.
no setter
display → String
A build ID string meant for displaying to the user
no setter
fingerprint → String
A string that uniquely identifies this build. Do not attempt to parse this value.
no setter
fingerprintedPartitions → List<Build$Partition>
Get build information about partitions that have a separate fingerprint defined. The list includes partitions that are suitable candidates for over-the-air updates. This is not an exhaustive list of partitions on the device.
no setter
hardware → String
The name of the hardware (from the kernel command line or /proc).
no setter
host → String
TODO: host
no setter
id → String
Either a changelist number, or a label like "M4-rc20".
no setter
manufacturer → String
The manufacturer of the product/hardware.
no setter
model → String
The end-user-visible name for the end product.
no setter
odmSku → String
The SKU of the device as set by the original design manufacturer (ODM).
no setter
product → String
The name of the overall product.
no setter
radio → String
The radio firmware version number.
no setter
radioVersion → String?
Returns the version string for the radio firmware. May return null (if, for instance, the radio is not currently on).
no setter
serial → String
A hardware serial number, if available. Alphanumeric only, case-insensitive. This field is always set to Build.UNKNOWN.
no setter
sku → String
The SKU of the hardware (from the kernel command line).
no setter
socManufacturer → String
The manufacturer of the device's primary system-on-chip.
no setter
socModel → String
The model name of the device's primary system-on-chip.
no setter
supported32BitAbis → List<String>
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.
no setter
supported64BitAbis → List<String>
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.
no setter
supportedAbis → List<String>
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.
no setter
tags → String
Comma-separated tags describing the build, like "unsigned,debug".
no setter
time → int
The time at which the build was produced, given in milliseconds since the UNIX epoch.
no setter
type → String
The type of build, like "user" or "eng".
no setter
user → String
TODO: user
no setter

Static Methods

getBackportedFixStatus(int id) → Build$BackportedFixStatus
The status of the backported fix for a known issue on this device.
getMajorSdkVersion(int sdkIntFull) → int
Obtain the major version encoded in a VERSION_CODES_FULL value. This value is guaranteed to be non-negative.
getMinorSdkVersion(int sdkIntFull) → int
Obtain the minor version encoded in a VERSION_CODES_FULL value. This value is guaranteed to be non-negative.