Mulai 27 Maret 2025, sebaiknya gunakan android-latest-release, bukan aosp-main, untuk mem-build dan berkontribusi pada AOSP. Untuk mengetahui informasi selengkapnya, lihat Perubahan pada AOSP.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Antarmuka lapisan abstraksi hardware kendaraan (VHAL) menentukan properti yang dapat
diterapkan OEM dan berisi metadata properti. Misalnya, apakah properti adalah bilangan bulat dan
mode perubahan mana yang diizinkan. Antarmuka VHAL didasarkan pada akses (membaca, menulis, dan
berlangganan) properti, yang merupakan abstraksi untuk fungsi tertentu.
Di Android 13 dan yang lebih baru, VHAL dimigrasikan ke AIDL di IVehicle.aidl
Di Android 12 dan yang lebih lama, VHAL ditentukan dengan bahasa HIDL di IVehicle.hal
Komponen native CarService dan Android mendukung backend HIDL dan AIDL serta lebih memilih backend
AIDL jika tersedia.
Panduan
Deskripsi
SANGAT DISARANKAN
Untuk implementasi HIDL VHAL yang sudah ada, migrasikan ke antarmuka
AIDL yang lebih baru.
HARUS
Untuk implementasi VHAL baru, gunakan antarmuka AIDL.
Untuk mempelajari VHAL lebih lanjut, lihat halaman berikut:
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 UTC."],[],[],null,["# Overview\n\nThe vehicle hardware abstraction layer (VHAL) interface defines the properties OEMs can\nimplement and contains property metadata. For example, whether a property is an integer and\nwhich change modes are allowed. The VHAL interface is based on accessing (reading, writing, and\nsubscribing) a property, which is an abstraction for a specific function.\n\n- In Android 13 and higher, VHAL migrated to AIDL at `IVehicle.aidl`\n- In Android 12 and lower, VHAL is defined with HIDL language in `IVehicle.hal`\n\n| **Note:** All new features, including new property definitions, will be added to the AIDL interface **only.**\n\nCarService and Android native components support HIDL and AIDL backend and prefer the AIDL\nbackend when it's available.\n\n| Guidance | Description |\n|--------------------|----------------------------------------------------------------------------------|\n| STRONGLY RECOMMEND | For **existing** HIDL VHAL implementations, migrate to the newer AIDL interface. |\n| MUST | For **new** VHAL implementations, use the AIDL interface. |\n\n\nTo learn more about the VHAL, see these pages:\n\n- [VHAL interface](/docs/automotive/vhal/vhal-interface)\n[](/docs/automotive/vhal/vhal-interface)\n- [](/docs/automotive/vhal/vhal-interface)[Property configurations](/docs/automotive/vhal/property-configuration)\n[](/docs/automotive/vhal/property-configuration)\n- [](/docs/automotive/vhal/property-configuration)[Supported system properties](/docs/automotive/vhal/system-properties)\n[](/docs/automotive/vhal/system-properties)\n- [](/docs/automotive/vhal/system-properties)[Special properties](/docs/automotive/vhal/special-properties)\n[](/docs/automotive/vhal/special-properties)\n- [](/docs/automotive/vhal/special-properties)[SEAT and STEERING_WHEEL properties](/docs/automotive/vhal/seat-steering)\n[](/docs/automotive/vhal/seat-steering)\n- [](/docs/automotive/vhal/seat-steering)[ADAS properties](/docs/automotive/vhal/adas-properties)\n[](/docs/automotive/vhal/adas-properties)\n- [](/docs/automotive/vhal/adas-properties)[Reference implementation](/docs/automotive/vhal/reference-implementation)\n[](/docs/automotive/vhal/reference-implementation)\n- [](/docs/automotive/vhal/reference-implementation)[Debug the VHAL](/docs/automotive/vhal/vhal_debug)\n[](/docs/automotive/vhal/vhal_debug)\n- [](/docs/automotive/vhal/vhal_debug)[Use VHAL with the native client](/docs/automotive/vhal/native-client)\n[](/docs/automotive/vhal/native-client)\n- [](/docs/automotive/vhal/native-client)[HIDL VHAL migration guide](/docs/automotive/vhal/hidl-vhal-migration)\n- [HIDL VHAL interface](/docs/automotive/vhal/hidl-vhal-interface)"]]