A partire dal 27 marzo 2025, ti consigliamo di utilizzare android-latest-release
anziché aosp-main
per compilare e contribuire ad AOSP. Per ulteriori informazioni, vedi Modifiche ad AOSP.
Proprietà di sistema supportate
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Le proprietà supportate dal VHAL devono essere proprietà di sistema o del fornitore. In Android 14 e versioni successive, le definizioni delle proprietà di sistema sono definite in VehicleProperty.aidl
.
In Android 13 e versioni precedenti, le definizioni delle proprietà di sistema sono definite in automotive/vehicle/aidl/android/hardware/automotive/vehicle/VehicleProperty.aidl
, ad esempio per Android 13, consulta
VehicleProperty.aidl
.
In Android 14 e versioni successive, la definizione della proprietà di sistema è definita nell'interfaccia AIDL,
android.hardware.automotive.vehicle.property
, separata dall'interfaccia VHAL (android.hardware.automotive.vehicle
). Le implementazioni VHAL e i client VHAL
devono dipendere da entrambe le interfacce.
Per le proprietà VHAL esposte tramite CarPropertyManager
, consulta
VehiclePropertyIds.
Modalità di accesso e di modifica generate automaticamente
In Android 14 e versioni successive, per supportare le implementazioni VHAL, forniamo file di intestazione C++ e file di classi Java generati automaticamente con la modalità di modifica o di accesso consentita per le proprietà di sistema. Le implementazioni VHAL dei fornitori possono utilizzarle per garantire che le configurazioni delle proprietà soddisfino le specifiche.
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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."]]