AndroidDeviceInfo
Device information snapshot for Android devices and emulators.
Returned by flet.Page.get_device_info on Android.
Inherits: DeviceInfo
Properties
available_ram_size- Total available RAM size in bytes.board- The name of the underlying board, like"goldfish".bootloader- The system bootloader version number.brand- The consumer-visible brand with which the product/hardware will be associated, if any.device- The name of the industrial design.display- A build ID string meant for displaying to the user.fingerprint- A string that uniquely identifies this build.free_disk_size- Free disk size in bytes.hardware- The name of the hardware (from the kernel command line or /proc).host- Hostname.id- Either a changelist number, or a label like"M4-rc20".is_low_ram_device-Trueif the application is running on a low-RAM device,Falseotherwise.is_physical_device-Falseif the application is running in an emulator,Trueotherwise.manufacturer- The manufacturer of the product/hardware.model- The end-user-visible name for the end product.name- The name of the device.physical_ram_size- Total physical RAM size in bytes.product- The name of the overall product.supported_32_bit_abis- An ordered list of 32 bit ABIs supported by this device.supported_64_bit_abis- An ordered list of 64 bit ABIs supported by this device.supported_abis- An ordered list of ABIs supported by this device.system_features- Describes what features are available on the current device.tags- Comma-separated tags describing the build, like"unsigned,debug".total_disk_size- Total disk size in bytes.type- The type of build, like"user"or"eng".version- Android operating system version values derived fromandroid.os.Build.VERSION.
Properties
boardinstance-attribute
board: strThe name of the underlying board, like "goldfish".
More info: https://developer.android.com/reference/android/os/Build#BOARD
bootloaderinstance-attribute
bootloader: strThe system bootloader version number.
More info: https://developer.android.com/reference/android/os/Build#BOOTLOADER
brandinstance-attribute
brand: strThe consumer-visible brand with which the product/hardware will be associated, if any.
More info: https://developer.android.com/reference/android/os/Build#BRAND
deviceinstance-attribute
device: strThe name of the industrial design.
More info: https://developer.android.com/reference/android/os/Build#DEVICE
displayinstance-attribute
display: strA build ID string meant for displaying to the user.
More info: https://developer.android.com/reference/android/os/Build#DISPLAY
fingerprintinstance-attribute
fingerprint: strA string that uniquely identifies this build.
More info: https://developer.android.com/reference/android/os/Build#FINGERPRINT
hardwareinstance-attribute
hardware: strThe name of the hardware (from the kernel command line or /proc).
More info: https://developer.android.com/reference/android/os/Build#HARDWARE
hostinstance-attribute
host: strHostname.
More info: https://developer.android.com/reference/android/os/Build#HOST
idinstance-attribute
id: strEither a changelist number, or a label like "M4-rc20".
More info: https://developer.android.com/reference/android/os/Build#ID
is_low_ram_deviceinstance-attribute
is_low_ram_device: boolTrue if the application is running on a low-RAM device, False otherwise.
is_physical_deviceinstance-attribute
is_physical_device: boolFalse if the application is running in an emulator, True otherwise.
manufacturerinstance-attribute
manufacturer: strThe manufacturer of the product/hardware.
More info: https://developer.android.com/reference/android/os/Build#MANUFACTURER
modelinstance-attribute
model: strThe end-user-visible name for the end product.
More info: https://developer.android.com/reference/android/os/Build#MODEL
productinstance-attribute
product: strThe name of the overall product.
More info: https://developer.android.com/reference/android/os/Build#PRODUCT
supported_32_bit_abisinstance-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_abisinstance-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_abisinstance-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_featuresinstance-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
tagsinstance-attribute
tags: strComma-separated tags describing the build, like "unsigned,debug".
More info: https://developer.android.com/reference/android/os/Build#TAGS
typeinstance-attribute
type: strThe type of build, like "user" or "eng".
More info: https://developer.android.com/reference/android/os/Build#TYPE
versioninstance-attribute
version: AndroidBuildVersionAndroid operating system version values derived from android.os.Build.VERSION.