Skip to content

aosp: Report the model as the friendly name - #13110

Merged
andrewsavage1 merged 1 commit into
youtube:mainfrom
ogarai:yts/fix_aosp_friendly_name
Oct 6, 2026
Merged

andrewsavage1 merged 1 commit into
youtube:mainfrom
ogarai:yts/fix_aosp_friendly_name

Conversation

@ogarai

@ogarai ogarai commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

AOSP reads the friendly name through SbSystemGetProperty, which
returned the fixed string "Android". That isn't a name for the device.

Report the model, ro.product.model, which is what the model name
property already returns. It also matches how yts names a device it
reaches over adb or DIAL.

Test: The OS Integration friendly name yts test passes on device over
adb.

Bug: 532158865

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🤖 Gemini Suggested Commit Message


android: Report device model as friendly name

The system property for friendly name now returns the device model
instead of a generic Android string. This provides a more accurate
device description and ensures consistency with how YTS and DIAL
identify devices. This change allows the device to be correctly
identified during automated testing and discovery.

Bug: 532158865

💡 Pro Tips for a Better Commit Message:

  1. Influence the Result: Want to change the output? You can write custom prompts or instructions directly in the Pull Request description. The model uses that text to generate the message.
  2. Re-run the Generator: Post a comment with: /generate-commit-message

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the retrieval of the system friendly name property (kSbSystemPropertyFriendlyName) in system_get_property.cc for Android. Instead of returning a hardcoded 'Android' string, it now dynamically retrieves the product model using GetAndroidSystemProperty with the property key 'ro.product.model'. There are no review comments, and I have no feedback to provide.

@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor
Context State Description
CI / All Pass ⏳ PENDING Checks are running
CI / android ✅ PASS Passed
CI / evergreen ⏳ PENDING Checks are running
CI / linux ✅ PASS Passed
CI / tvos ✅ PASS Passed
@ogarai
ogarai requested a review from andrewsavage1 October 5, 2026 18:30
@andrewsavage1
andrewsavage1 enabled auto-merge (squash) October 6, 2026 00:49
AOSP reads the friendly name through SbSystemGetProperty, which
returned the fixed string "Android". That isn't a name for the device.

Report the model, ro.product.model, which is what the model name
property already returns. It also matches how yts names a device it
reaches over adb or DIAL.

Test: The OS Integration friendly name yts test passes on device over
adb.

Bug: 532158865
auto-merge was automatically disabled October 6, 2026 20:34

Head branch was pushed to by a user without write access

@ogarai
ogarai force-pushed the yts/fix_aosp_friendly_name branch from 9749a74 to 0a78590 Compare October 6, 2026 20:34
@andrewsavage1
andrewsavage1 enabled auto-merge (squash) October 6, 2026 20:36
@andrewsavage1
andrewsavage1 merged commit 2fcaa38 into youtube:main Oct 6, 2026
516 of 519 checks passed
briantting pushed a commit that referenced this pull request Oct 8, 2026
Refer to original PR: #13110

AOSP reads the friendly name through SbSystemGetProperty, which
returned the fixed string "Android". That isn't a name for the device.

Report the model, ro.product.model, which is what the model name
property already returns. It also matches how yts names a device it
reaches over adb or DIAL.

Test: The OS Integration friendly name yts test passes on device over
adb.

Bug: 532158865

(cherry picked from commit 2fcaa38)
briantting pushed a commit that referenced this pull request Oct 16, 2026
Refer to original PR: #13110

AOSP reads the friendly name through SbSystemGetProperty, which
returned the fixed string "Android". That isn't a name for the device.

Report the model, ro.product.model, which is what the model name
property already returns. It also matches how yts names a device it
reaches over adb or DIAL.

Test: The OS Integration friendly name yts test passes on device over
adb.

Bug: 532158865

(cherry picked from commit 2fcaa38)
briantting pushed a commit that referenced this pull request Oct 16, 2026
Refer to original PR: #13110

AOSP reads the friendly name through SbSystemGetProperty, which
returned the fixed string "Android". That isn't a name for the device.

Report the model, ro.product.model, which is what the model name
property already returns. It also matches how yts names a device it
reaches over adb or DIAL.

Test: The OS Integration friendly name yts test passes on device over
adb.

Bug: 532158865

(cherry picked from commit 2fcaa38)
@ogarai
ogarai deleted the yts/fix_aosp_friendly_name branch November 4, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants