DeviceFarmer / stf

Control and manage Android devices from your browser.
https://devicefarmer.github.io
Other
3.48k stars 490 forks source link

Devices are shown with code name instead of device name #644

Open levyilan opened 1 year ago

levyilan commented 1 year ago

After upgrading to latest docker release the devices are shown with code name instead of the device name. for example I've added to the device db(devices-latest.json) the information for Samsung S22

"SM-S901E": {
    "carrier": {
      "code": "_",
      "name": "MVNO/Other"
    },
    "cpu": {
      "cores": 8,
      "freq": 3,
      "name": "Qualcomm SM8450 Snapdragon 8 Gen 1"
    },
    "date": "2022-02-09T15:00:00.000Z",
    "display": {
      "h": 2340,
      "s": 6.1,
      "w": 1080
    },
    "maker": {
      "code": "Samsung",
      "name": "r0q"
    },
    "memory": {
      "ram": 8192,
      "rom": 131072
    },
    "name": {
      "id": "Samsung Galaxy S22",
      "long": "SM-S901E"
    },
    "os": {
      "type": "android",
      "ver": "12"
    }
  }

Before the update the device was shown as "Samsung Galaxy S22" Now it is shown as "r0q" dashboard

In my docker compose file I've made the following change:

volumes:
      - "./dist:/app/node_modules/@devicefarmer/stf-device-db/dist"
adb devices -l
List of devices attached
R5CT30J0T1R            device usb:1-12.3.4 product:r0qxxx model:SM_S901E device:r0q transport_id:17
adb -t 17 shell getprop ro.product.model
SM-S901E

adb -t 17 shell getprop ro.product.name
r0qxxx

adb -t 17 shell getprop ro.product.device
r0q
jerimiah797 commented 1 year ago

I noticed this, too, with the same device - a Galaxy S22, shown as r0q in the thumbnail view, but using the full name in the list view. Selecting the "Market name" field in the list view also reveals the 'r0q' label.

jupe commented 1 year ago

perhaps related to https://github.com/DeviceFarmer/stf/pull/601 .