自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
支援的系統屬性
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
VHAL 支援的屬性必須是系統屬性或供應商屬性。在 Android 14 以上版本中,系統屬性定義會在 VehicleProperty.aidl
中定義。
在 Android 13 以下版本中,系統屬性定義是在 automotive/vehicle/aidl/android/hardware/automotive/vehicle/VehicleProperty.aidl
中定義,例如,如要查看 Android 13 的定義,請參閱 VehicleProperty.aidl
。
在 Android 14 以上版本中,系統屬性定義是在 AIDL 介面 android.hardware.automotive.vehicle.property
中定義,而該介面與 VHAL 介面 (android.hardware.automotive.vehicle
) 是分開的。VHAL 實作項目和 VHAL 用戶端必須依賴這兩個介面。
如要瞭解透過 CarPropertyManager
公開的 VHAL 屬性,請參閱 VehiclePropertyIds。
自動產生的存取模式和變更模式
在 Android 14 以上版本中,為了支援 VHAL 實作,我們提供自動產生的 C++ 標頭檔案和 Java 類別檔案,其中包含系統屬性允許的變更模式或存取模式。供應商 VHAL 實作項目可以使用這些屬性,確保資源設定符合規格。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-26 (世界標準時間)。"],[],[],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."]]