自 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-10-10 (世界標準時間)。
[[["容易理解","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-10-10 (世界標準時間)。"],[],[]]