Skip to content

Conversation

@rpius
Copy link
Contributor

@rpius rpius commented Jun 27, 2025

This is the new versioning variable for minor API bumps


This change is Reviewable

rpius added 2 commits June 27, 2025 13:47
android_device: add BUILD_VERSION_SDK_FULL to AndroidProperties

This is the new versioning variable for minor API bumps.
@google-cla
Copy link

google-cla bot commented Jun 27, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link
Collaborator

@xianyuanjia xianyuanjia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve the CLA issue in https://cla.developers.google.com/

Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions


mobly/controllers/android_device.py line 485 at r1 (raw file):

  )
  BUILD_VERSION_SDK = 'build_version_sdk', 'ro.build.version.sdk'
  BUILD_VERSION_SDK_FULL = 'build_version_sdk_full', 'ro.build.version.sdk_full'  

nit: remove whitespace

Code quote:

··

mobly/controllers/android_device.py line 485 at r1 (raw file):

  )
  BUILD_VERSION_SDK = 'build_version_sdk', 'ro.build.version.sdk'
  BUILD_VERSION_SDK_FULL = 'build_version_sdk_full', 'ro.build.version.sdk_full'  

This value is empty for SDK < 36 right? Could make a note of that here

Code quote:

  BUILD_VERSION_SDK_FULL = 'build_version_sdk_full', 'ro.build.version.sdk_full'

Copy link
Collaborator

@xpconanfan xpconanfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @rpius and @xianyuanjia)


mobly/controllers/android_device.py line 485 at r1 (raw file):

Previously, xianyuanjia wrote…

This value is empty for SDK < 36 right? Could make a note of that here

Would it return empty or would it cause error in the cmd?
If it's version specific, maybe we should only attempt to retrieve it above certain versions.

Copy link
Collaborator

@xianyuanjia xianyuanjia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @rpius and @xpconanfan)


mobly/controllers/android_device.py line 485 at r1 (raw file):

Previously, xpconanfan (Ang Li) wrote…

Would it return empty or would it cause error in the cmd?
If it's version specific, maybe we should only attempt to retrieve it above certain versions.

I tested it and the command returns empty. We can omit it from the final build_info if it doesn't have a value

Copy link
Collaborator

@xpconanfan xpconanfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @rpius and @xianyuanjia)


mobly/controllers/android_device.py line 485 at r1 (raw file):

Previously, xianyuanjia wrote…

I tested it and the command returns empty. We can omit it from the final build_info if it doesn't have a value

Guess it's ok to just leave it there as this is consistent with Android's own behavior (empty value)

Copy link
Collaborator

@xpconanfan xpconanfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 files reviewed, 3 unresolved discussions (waiting on @rpius and @xianyuanjia)


mobly/controllers/android_device.py line 57 at r1 (raw file):

    'ro.build.version.incremental',
    'ro.build.version.sdk',
    'ro.build.version.sdk_full',

should add an inline comment here with the context for this prop (only available above x version, and why we need it over the old one)

@rpius rpius closed this Jun 27, 2025
@rpius
Copy link
Contributor Author

rpius commented Jun 27, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants