Skip to content

Android device description name#1

Closed
SuperKenVery wants to merge 1 commit into
masterfrom
cursor/android-device-description-name-6044
Closed

Android device description name#1
SuperKenVery wants to merge 1 commit into
masterfrom
cursor/android-device-description-name-6044

Conversation

@SuperKenVery
Copy link
Copy Markdown
Owner

Fix Android device.description().name() to return a unique device name instead of a generic product name.

The description() method in the AAudio backend was using info.product_name.clone(), causing all Android devices to report the same name (e.g., "Pixel 8"). This was a similar issue to what PR RustAudio#965 previously fixed for the name() method. To resolve this and avoid deprecation warnings from calling self.name() within description(), the unique name-building logic was extracted into a private helper method, which both name() and description() now utilize.


Open in Cursor Open in Web

The description() method was using info.product_name.clone() as the
device name, which makes all devices look the same (e.g., all showing
'Pixel 8'). PR RustAudio#965 fixed the name() method to include device_type
and address for unique names, but description() was not updated.

Extract device name logic into a private device_name() helper method
and use it in both name() and description(), so that
device.description().name() returns a distinguishable name like
'Pixel 8:BuiltinSpeaker' instead of just 'Pixel 8'.

Co-authored-by: SuperKenVery <SuperKenVery@users.noreply.github.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented Feb 15, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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.

2 participants