On this page
platform.android_ver
Up: platform | Next: platform.AndroidVer
Rel: platform.AndroidVer, platform.architecture, platform.freedesktop_os_release, platform.invalidate_caches
Ref: docs.python.org — platform.android_ver
Tags: #public #python3 #stdlib #platform
Import
import platform
from platform import android_ver
Signature & Overview
platform.android_ver(release='', api_level=0, manufacturer='', model='', device='', is_emulator=False)
platform.android_ver() function.
Usage
import platform
if hasattr(platform, "android_ver"):
assert platform.android_ver().release == "" or isinstance(platform.android_ver().release, str)
Gotchas
- Requires Python 3.13+: Returns empty fields on non-Android platforms.
REPL Inspect
from platform import android_ver
help(android_ver)
Linked from
- tuts/python3/stdlib_module/platform
- tuts/python3/stdlib_module/platform/AndroidVer
- tuts/python3/stdlib_module/platform/architecture
- tuts/python3/stdlib_module/platform/freedesktop_os_release
- tuts/python3/stdlib_module/platform/invalidate_caches
- tuts/python3/stdlib_module/platform/ios_ver
- tuts/python3/stdlib_module/platform/IOSVersionInfo
- tuts/python3/stdlib_module/platform/java_ver
- tuts/python3/stdlib_module/platform/libc_ver
- tuts/python3/stdlib_module/platform/mac_ver
- tuts/python3/stdlib_module/platform/machine
- tuts/python3/stdlib_module/platform/node
- tuts/python3/stdlib_module/platform/platform
- tuts/python3/stdlib_module/platform/processor
- tuts/python3/stdlib_module/platform/python_branch
- tuts/python3/stdlib_module/platform/python_build
- tuts/python3/stdlib_module/platform/python_compiler
- tuts/python3/stdlib_module/platform/python_implementation
- tuts/python3/stdlib_module/platform/python_revision
- tuts/python3/stdlib_module/platform/python_version
- tuts/python3/stdlib_module/platform/python_version_tuple
- tuts/python3/stdlib_module/platform/release
- tuts/python3/stdlib_module/platform/system
- tuts/python3/stdlib_module/platform/system_alias
- tuts/python3/stdlib_module/platform/uname
- tuts/python3/stdlib_module/platform/uname_result
- tuts/python3/stdlib_module/platform/version
- tuts/python3/stdlib_module/platform/win32_edition
- tuts/python3/stdlib_module/platform/win32_is_iot
- tuts/python3/stdlib_module/platform/win32_ver
Related notes
- tuts/python3/stdlib_module/platform/AndroidVer Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/architecture Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/freedesktop_os_release Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/invalidate_caches Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/platform Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/ios_ver links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/IOSVersionInfo links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/java_ver links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/libc_ver links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/mac_ver links to this page; shared tags: #platform, #stdlib