Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release
thay vì aosp-main
để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Các thuộc tính hệ thống được hỗ trợ
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Các thuộc tính mà VHAL hỗ trợ phải là thuộc tính hệ thống hoặc thuộc tính của nhà cung cấp. Trong Android 14 trở lên, các định nghĩa thuộc tính hệ thống được xác định tại VehicleProperty.aidl
.
Trong Android 13 trở xuống, các định nghĩa thuộc tính hệ thống được xác định tại automotive/vehicle/aidl/android/hardware/automotive/vehicle/VehicleProperty.aidl
, ví dụ: đối với Android 13, hãy xem VehicleProperty.aidl
.
Trong Android 14 trở lên, định nghĩa thuộc tính hệ thống được xác định trong giao diện AIDL, android.hardware.automotive.vehicle.property
, tách biệt với giao diện VHAL (android.hardware.automotive.vehicle
). Các hoạt động triển khai VHAL và ứng dụng VHAL phải phụ thuộc vào cả hai giao diện.
Đối với các thuộc tính VHAL hiển thị thông qua CarPropertyManager
, hãy xem VehiclePropertyIds.
Chế độ truy cập và chế độ thay đổi được tạo tự động
Trong Android 14 trở lên, để hỗ trợ việc triển khai VHAL, chúng tôi cung cấp các tệp tiêu đề C++ và các tệp lớp Java được tạo tự động với chế độ thay đổi hoặc chế độ truy cập được cho phép cho các thuộc tính hệ thống. Các hoạt động triển khai VHAL của nhà cung cấp có thể sử dụng các thuộc tính này để đảm bảo cấu hình thuộc tính đáp ứng thông số kỹ thuật.
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[],[],null,["# Supported system properties\n\nProperties supported by the VHAL\nmust be either a system property or a vendor property. In Android 14 and\nhigher, system property definitions are defined at\n[VehicleProperty.aidl](https://android.googlesource.com/platform/hardware/interfaces/+/refs/heads/android16-release/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/VehicleProperty.aidl).\n\n\nIn Android 13 and lower, system property definitions are defined at `automotive/vehicle/aidl/android/hardware/automotive/vehicle/VehicleProperty.aidl`, for example, for Android 13, see\n[VehicleProperty.aidl](https://android.googlesource.com/platform/hardware/interfaces/+/refs/heads/android13-release/automotive/vehicle/aidl/android/hardware/automotive/vehicle/VehicleProperty.aidl).\n\nIn Android 14 and higher, the system property definition is defined in the AIDL interface,\n`android.hardware.automotive.vehicle.property`, which is separate from the VHAL\ninterface (`android.hardware.automotive.vehicle`). VHAL implementations and VHAL\nclients must depend on both interfaces.\n\nFor VHAL properties exposed through `CarPropertyManager`, see\n[VehiclePropertyIds](https://developer.android.com/reference/android/car/VehiclePropertyIds).\n\nAuto-generated access modes and change modes\n--------------------------------------------\n\nIn Android 14 and higher, to support VHAL implementations, we provide auto-generated\n[C++ header\nfiles](https://android.googlesource.com/platform/hardware/interfaces/+/refs/heads/android16-release/automotive/vehicle/aidl/generated_lib/4/cpp) and\n[Java class files](https://android.googlesource.com/platform/hardware/interfaces/+/refs/heads/android16-release/automotive/vehicle/aidl/generated_lib/4/java)\nwith the allowed change mode or access mode for system properties. Vendor VHAL implementations\ncan use these to ensure the property configs meet the specification."]]