Skip to content

Cannot differentiate two devices of the same type in the device selector #4632

Closed

Description

@vammex

Type: Bug

i have two same phones. when i connect both to computer, vs code shows their names in "select device to use" and they are same. cannot understand what is what.
it is a name of phone model, so it cannot be fixed manually at the settings. it is a hardware phone name.
vs code does not allow me to choose how, by which name i want to see list of devices

Extension version: 3.66.0
VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:57:04.379Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i7-12700H (20 x 2688)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 31.68GB (8.59GB free)
Process Argv --crash-reporter-id ed28006d-76f3-4ab1-ac8a-b9e18a52c2cc
Screen Reader yes
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30776702
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vsccc:30610678
282f8724:30602487
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
showlangstatbar:30737416
vsctsb:30748421
pythonms35:30701012
03d35959:30757346
pythonfmttext:30731395
pythoncmv:30756943
fixshowwlkth:30771522
pythongtdpath:30769146
i26e3531:30780429
pythonnosm12tcf:30779713
pythonidxptcf:30772540
pythonnoceb:30776495

Activity

  1. DanTup commented on Jul 4, 2023

    @DanTup
    Member

    Could you post the output of running flutter devices --machine in a terminal when both devices are connected? Thanks!

  2. added
    awaiting infoRequires more information from the customer to progress
    on Jul 4, 2023
  3. vammex commented on Jul 4, 2023

    @vammex
    Author
    [
      {
        "name": "VNE AN00",
        "id": "A6QUCP2C05400813",
        "isSupported": true,
        "targetPlatform": "android-arm64",
        "emulator": false,
        "sdk": "Android 11 (API 30)",
        "capabilities": {
          "hotReload": true,
          "hotRestart": true,
          "screenshot": true,
          "fastStart": true,
          "flutterExit": true,
          "hardwareRendering": false,
          "startPaused": true
        }
      },
      {
        "name": "VNE AN00",
        "id": "A6QUCP2C26403181",
        "isSupported": true,
        "targetPlatform": "android-arm64",
        "emulator": false,
        "sdk": "Android 12 (API 31)",
        "capabilities": {
          "hotReload": true,
          "hotRestart": true,
          "screenshot": true,
          "fastStart": true,
          "flutterExit": true,
          "hardwareRendering": false,
          "startPaused": true
        }
      },
      ]

    their ID are different and android studio for example does show me a difference between two devices

  4. DanTup commented on Jul 4, 2023

    @DanTup
    Member

    Is Android Studio just showing the raw ID (A6QUCP2C26403181 and A6QUCP2C05400813)? I think we should be able to include that here fairly easily.

  5. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    in flutterRelates to running Flutter apps
    and removed
    awaiting infoRequires more information from the customer to progress
    on Jul 4, 2023
  6. added this to the v3.70.0 milestone on Jul 4, 2023
  7. changed the title [-]cannot recognize my devide[/-] [+]Cannot differentiate two devices of the same type in the device selector[/+] on Jul 4, 2023
  8. vammex commented on Jul 4, 2023

    @vammex
    Author

    Is Android Studio just showing the raw ID (A6QUCP2C26403181 and A6QUCP2C05400813)? I think we should be able to include that here fairly easily.
    AS shows both hardware name and ID.
    yes it may be enough. how to do it?

  9. DanTup commented on Jul 4, 2023

    @DanTup
    Member

    I've made a change that will add the ID to the device selector like this.

    Before

    Screenshot 2023-07-04 151459

    After

    Screenshot 2023-07-04 151436

    Will this solve the issue for you?

  10. vammex commented on Jul 4, 2023

    @vammex
    Author

    I've made a change that will add the ID to the device selector like this.

    Before

    Screenshot 2023-07-04 151459

    After

    Screenshot 2023-07-04 151436

    Will this solve the issue for you?

    if it will look like VNE AN00 - A6QUCP2C05400813
    it's good

  11. DanTup commented on Jul 4, 2023

    @DanTup
    Member

    Yep! The brightest text will be "VNE AN00" (eg. where mine says "Mi A2"), and the ID "A6QUCP2C05400813" will be the first part of the next text (where mine says "33aa844").

  12. vammex commented on Jul 5, 2023

    @vammex
    Author

    Yep! The brightest text will be "VNE AN00" (eg. where mine says "Mi A2"), and the ID "A6QUCP2C05400813" will be the first part of the next text (where mine says "33aa844").

    I do not understand, you do not plan to tell me HOW to make it?

  13. DanTup commented on Jul 5, 2023

    @DanTup
    Member

    The change is in the Dart extension code. I have made that change, but you will need a new version of the Dart extension to see it.

    I will publish a pre-release version later this week, and you can switch to that if you would like to get the update before the next stable release.

  14. vammex commented on Jul 5, 2023

    @vammex
    Author

    The change is in the Dart extension code. I have made that change, but you will need a new version of the Dart extension to see it.

    I will publish a pre-release version later this week, and you can switch to that if you would like to get the update before the next stable release.

    oh you are the developer? I have not got it.
    so please show me a screenshot with your real phone names details?

  15. DanTup commented on Jul 5, 2023

    @DanTup
    Member

    Yes, I'm a developer on the Dart extension.

    The image from above included my test phone - the name is "Mi A2" and the ID is "33aa844". Before the change, the ID was not shown, but now it is:

    image

    I will push a pre-release version tomorrow and provide instructions so you can update and test it out.

  16. vammex commented on Jul 6, 2023

    @vammex
    Author

    Yes, I'm a developer on the Dart extension.

    The image from above included my test phone - the name is "Mi A2" and the ID is "33aa844". Before the change, the ID was not shown, but now it is:

    image

    I will push a pre-release version tomorrow and provide instructions so you can update and test it out.

    👍

  17. vammex commented on Jul 6, 2023

    @vammex
    Author

    version 38 is out. is there smth?

  18. DanTup commented on Jul 6, 2023

    @DanTup
    Member

    version 38 is out. is there smth?

    I'm not sure what version 38 you're referring to. The current extension version is 3.68.

    Anyway, I have published pre-release versions of the extensions. Please click the "Switch to Pre-Release" buttons for Dart + Flutter extensions and then click the "Reload" buttons once they have finished installing:

    Dart/Flutter pre-release versions

    These include the updates, and you should be able to see the IDs in the device picker. Please let me know if this doesn't work for you.

    Thanks!

  19. vammex commented on Jul 6, 2023

    @vammex
    Author

    photo_2023-07-06_17-56-54
    genius

    right for now, it is good enough.
    in future, will it be possible to set some name to devices? cannot figure out now which logic do i mean, whether vs code will remember commonly connected devices, or else to set a name every time after connecting

  20. DanTup commented on Jul 6, 2023

    @DanTup
    Member

    in future, will it be possible to set some name to devices?

    Please file a new issue requesting this. If people add 👍 s and it seems useful to many, we could consider it. Thanks!

  21. vammex commented on Jul 9, 2023

    @vammex
    Author

    in future, will it be possible to set some name to devices?

    Please file a new issue requesting this. If people add 👍 s and it seems useful to many, we could consider it. Thanks!

    ok. oh i have been suffered this issue since February and I did not know I can just solve it that easy by writing an issue report )

  22. DanTup commented on Jul 10, 2023

    @DanTup
    Member

    I did not know I can just solve it that easy by writing an issue report )

    It's not guaranteed everything raised gets fixed quickly, but things are definitely more likely to be addressed if they have been raised, because otherwise I might not know about the issues :-)

    If you find bugs or have suggestions, please do open issues!

  23. added a commit that references this issue on Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in flutterRelates to running Flutter appsis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions