iPad16,6 -> “iPad Pro 13-inch (M4)”, Mac16,6 -> “MacBook Pro (14-inch, 2024)”). DeviceModelCatalog also uses the identifier prefix (falling back to device family) to pick an SF Symbol per device.
Files in apps/macos/Sources/OpenClaw/Resources/DeviceModels/:
| File | Purpose |
|---|---|
ios-device-identifiers.json | iOS/iPadOS identifier -> name mapping |
mac-device-identifiers.json | Mac identifier -> name mapping |
NOTICE.md | Pinned upstream commit SHAs |
LICENSE.apple-device-identifiers.txt | Upstream MIT license |
Data source
Vendored from the MIT-licensedkyle-seongwoo-jun/apple-device-identifiers GitHub repository. JSON files are pinned to commit SHAs recorded in NOTICE.md to keep builds deterministic.
Updating the database
- Pick the upstream commit SHAs to pin to (one for iOS, one for macOS).
- Update
apps/macos/Sources/OpenClaw/Resources/DeviceModels/NOTICE.mdwith the new SHAs. - Re-download the JSON files pinned to those commits:
- Confirm
LICENSE.apple-device-identifiers.txtstill matches upstream; replace it if the upstream license changed. - Verify the macOS app builds cleanly: