Skip to content

AndroidDeviceInfo

Inherits: DeviceInfo

Properties

Properties#

available_ram_size instance-attribute #

available_ram_size: int

Total available RAM size in bytes.

board instance-attribute #

board: str

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

More info: https://developer.android.com/reference/android/os/Build#BOARD

bootloader instance-attribute #

bootloader: str

The system bootloader version number.

More info: https://developer.android.com/reference/android/os/Build#BOOTLOADER

brand instance-attribute #

brand: str

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

More info: https://developer.android.com/reference/android/os/Build#BRAND

device instance-attribute #

device: str

The name of the industrial design.

More info: https://developer.android.com/reference/android/os/Build#DEVICE

display instance-attribute #

display: str

A build ID string meant for displaying to the user.

More info: https://developer.android.com/reference/android/os/Build#DISPLAY

fingerprint instance-attribute #

fingerprint: str

A string that uniquely identifies this build.

More info: https://developer.android.com/reference/android/os/Build#FINGERPRINT

free_disk_size instance-attribute #

free_disk_size: int

Free disk size in bytes.

hardware instance-attribute #

hardware: str

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

More info: https://developer.android.com/reference/android/os/Build#HARDWARE

host instance-attribute #

host: str

id instance-attribute #

id: str

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

More info: https://developer.android.com/reference/android/os/Build#ID

is_low_ram_device instance-attribute #

is_low_ram_device: bool

True if the application is running on a low-RAM device, False otherwise.

is_physical_device instance-attribute #

is_physical_device: bool

False if the application is running in an emulator, True otherwise.

manufacturer instance-attribute #

manufacturer: str

The manufacturer of the product/hardware.

More info: https://developer.android.com/reference/android/os/Build#MANUFACTURER

model instance-attribute #

model: str

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

More info: https://developer.android.com/reference/android/os/Build#MODEL

name instance-attribute #

name: str

The name of the device.

physical_ram_size instance-attribute #

physical_ram_size: int

Total physical RAM size in bytes.

product instance-attribute #

product: str

The name of the overall product.

More info: https://developer.android.com/reference/android/os/Build#PRODUCT

supported_32_bit_abis instance-attribute #

supported_32_bit_abis: list[str]

An ordered list of 32 bit ABIs supported by this device. Available only on Android L (API 21) and newer.

More info: https://developer.android.com/reference/android/os/Build#SUPPORTED_32_BIT_ABIS

supported_64_bit_abis instance-attribute #

supported_64_bit_abis: list[str]

An ordered list of 64 bit ABIs supported by this device. Available only on Android L (API 21) and newer.

More info: https://developer.android.com/reference/android/os/Build#SUPPORTED_64_BIT_ABIS

supported_abis instance-attribute #

supported_abis: list[str]

An ordered list of ABIs supported by this device. Available only on Android L (API 21) and newer.

More info: https://developer.android.com/reference/android/os/Build#SUPPORTED_ABIS

system_features instance-attribute #

system_features: list[str]

Describes what features are available on the current device.

This can be used to check if the device has, for example, a front-facing camera, or a touchscreen. However, in many cases this is not the best API to use. For example, if you are interested in bluetooth, this API can tell you if the device has a bluetooth radio, but it cannot tell you if bluetooth is currently enabled, or if you have been granted the necessary permissions to use it. Please only use this if there is no other way to determine if a feature is supported.

This data comes from Android's PackageManager.getSystemAvailableFeatures, and many of the common feature strings to look for are available in PackageManager's public documentation: https://developer.android.com/reference/android/content/pm/PackageManager

tags instance-attribute #

tags: str

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

More info: https://developer.android.com/reference/android/os/Build#TAGS

total_disk_size instance-attribute #

total_disk_size: int

Total disk size in bytes.

type instance-attribute #

type: str

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

More info: https://developer.android.com/reference/android/os/Build#TYPE

version instance-attribute #

Android operating system version values derived from android.os.Build.VERSION.