> ## Documentation Index
> Fetch the complete documentation index at: https://docs2.openclaw.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Cơ sở dữ liệu mẫu thiết bị

Giao diện người dùng **Instances** của ứng dụng đồng hành trên macOS ánh xạ các mã định danh kiểu máy Apple sang tên dễ nhận biết (`iPad16,6` -> "iPad Pro 13 inch (M4)", `Mac16,6` -> "MacBook Pro (14 inch, 2024)"). `DeviceModelCatalog` cũng sử dụng tiền tố mã định danh (và dùng họ thiết bị làm phương án dự phòng) để chọn một SF Symbol cho mỗi thiết bị.

Các tệp trong `apps/macos/Sources/OpenClaw/Resources/DeviceModels/`:

| Tệp                                    | Mục đích                                 |
| -------------------------------------- | ---------------------------------------- |
| `ios-device-identifiers.json`          | Ánh xạ mã định danh iOS/iPadOS -> tên    |
| `mac-device-identifiers.json`          | Ánh xạ mã định danh Mac -> tên           |
| `NOTICE.md`                            | Các SHA commit thượng nguồn được cố định |
| `LICENSE.apple-device-identifiers.txt` | Giấy phép MIT của dự án thượng nguồn     |

## Nguồn dữ liệu

Được đưa vào dự án từ kho lưu trữ GitHub `kyle-seongwoo-jun/apple-device-identifiers` có giấy phép MIT. Các tệp JSON được cố định theo các SHA commit ghi trong `NOTICE.md` để bảo đảm các bản dựng có tính xác định.

## Cập nhật cơ sở dữ liệu

1. Chọn các SHA commit thượng nguồn cần cố định (một cho iOS và một cho macOS).
2. Cập nhật `apps/macos/Sources/OpenClaw/Resources/DeviceModels/NOTICE.md` bằng các SHA mới.
3. Tải lại các tệp JSON được cố định theo những commit đó:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
IOS_COMMIT="<commit sha for ios-device-identifiers.json>"
MAC_COMMIT="<commit sha for mac-device-identifiers.json>"

curl -fsSL "https://raw.githubusercontent.com/kyle-seongwoo-jun/apple-device-identifiers/${IOS_COMMIT}/ios-device-identifiers.json" \
  -o apps/macos/Sources/OpenClaw/Resources/DeviceModels/ios-device-identifiers.json

curl -fsSL "https://raw.githubusercontent.com/kyle-seongwoo-jun/apple-device-identifiers/${MAC_COMMIT}/mac-device-identifiers.json" \
  -o apps/macos/Sources/OpenClaw/Resources/DeviceModels/mac-device-identifiers.json
```

4. Xác nhận `LICENSE.apple-device-identifiers.txt` vẫn khớp với bản thượng nguồn; thay thế tệp nếu giấy phép thượng nguồn đã thay đổi.
5. Xác minh ứng dụng macOS được dựng thành công và không có lỗi:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
swift build --package-path apps/macos
```

## Liên quan

* [Node](/vi/nodes)
* [Khắc phục sự cố Node](/vi/nodes/troubleshooting)
