Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-71042: Add platform.android_ver #116674

Merged
merged 9 commits into from
Mar 27, 2024
Prev Previous commit
Clarify distinction between platform.android_ver().api_level and sys.…
…getandroidapilevel()
  • Loading branch information
mhsmith committed Mar 27, 2024
commit 53e6511a562b00d6233c402c1814111dab10fe2a
16 changes: 9 additions & 7 deletions Doc/library/platform.rst
Original file line number Diff line number Diff line change
Expand Up @@ -313,25 +313,27 @@ Android Platform
with the following attributes. Values which cannot be determined are set to
the defaults given as parameters.

* ``release`` - Android version, as a string (e.g. ``"14"``)
* ``release`` - Android version, as a string (e.g. ``"14"``).

* ``api_level`` - API level, as an integer (e.g. ``34``)
* ``api_level`` - API level of the running device, as an integer (e.g. ``34``
for Android 14). To get the API level which Python was built against, see
:func:`sys.getandroidapilevel`.

* ``manufacturer`` - `Manufacturer name
<https://developer.android.com/reference/android/os/Build#MANUFACTURER>`__
<https://developer.android.com/reference/android/os/Build#MANUFACTURER>`__.

* ``model`` - `Model name
<https://developer.android.com/reference/android/os/Build#MODEL>`__ –
typically the marketing name or model number
typically the marketing name or model number.

* ``device`` - `Device name
<https://developer.android.com/reference/android/os/Build#DEVICE>`__ –
typically the model number or a codename
typically the model number or a codename.

* ``is_emulator`` - ``True`` if the device is an emulator; ``False`` if it's
a physical device
a physical device.

See the `list of known model and device names
Google maintains a `list of known model and device names
<https://storage.googleapis.com/play_public/supported_devices.html>`__.

.. versionadded:: 3.13
Loading