Skip to content

Update Apple device mappings #68258

@kahest

Description

@kahest

We use (at least two) different sources to map Apple device models (e.g. iPhone15,3) to device model names (e.g. iPhone 14 Pro Max) and to resolve device classes (low/med/high) per model:

  • core ios-device-list.tsx
    • this is used to map device models (e.g. iPhone15,3) to device model names (e.g. iPhone 14 Pro Max) for the frontend
    • until ~2022 this was automatically updated by a script which in turn uses a node module as data source
    • this node module is not maintained anymore, so we need to
      • perform updates manually or find another data source (though I didn't find a suitable one in a quick search) or
      • fork/contribute to the node module
  • profiling device.py - deprecated and replaced, see below
    • this is updated manually
    • this includes both device name mapping and heuristics do determine device class based on hardware specs
  • profiling ios_models.py
  • relay device_class.rs
    • this is now used to map device models (e.g. iPhone15,3) to device classes directly, so doesn't rely on device name mapping

Docs:

  • this page details how Mobile devices are mapped to device classes, so it needs to be updated along with any device class mapping changes

Related:

Sub-issues

Metadata

Metadata

Labels

Projects

Status

Backlog

Status

No status

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions