支援的系統屬性

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 實作項目可使用這些項目,確保屬性設定符合規格。