ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
พร็อพเพอร์ตี้ของระบบที่รองรับ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
พร็อพเพอร์ตี้ที่ VHAL รองรับต้องเป็นพร็อพเพอร์ตี้ของระบบหรือพร็อพเพอร์ตี้ของผู้ให้บริการ ใน Android 14 ขึ้นไป คำจำกัดความของพร็อพเพอร์ตี้ของระบบจะกำหนดที่ VehicleProperty.aidl
ใน Android 13 และต่ำกว่า คำจำกัดความของพร็อพเพอร์ตี้ระบบจะกำหนดไว้ใน automotive/vehicle/aidl/android/hardware/automotive/vehicle/VehicleProperty.aidl
เช่น สำหรับ Android 13 โปรดดูที่ VehicleProperty.aidl
ใน Android 14 ขึ้นไป จะมีการกําหนดคําจํากัดความของพร็อพเพอร์ตี้ของระบบในอินเทอร์เฟซ AIDL ซึ่งแยกจากอินเทอร์เฟซ VHAL (android.hardware.automotive.vehicle
) การใช้งาน VHAL และไคลเอ็นต์ VHAL ต้องอาศัยทั้ง 2 อินเทอร์เฟซandroid.hardware.automotive.vehicle.property
สำหรับพร็อพเพอร์ตี้ VHAL ที่แสดงผ่าน CarPropertyManager
โปรดดูVehiclePropertyIds
โหมดการเข้าถึงและโหมดการเปลี่ยนแปลงที่สร้างขึ้นโดยอัตโนมัติ
ใน Android 14 ขึ้นไป เรามีไฟล์ส่วนหัว C++ และไฟล์คลาส Java ที่สร้างขึ้นโดยอัตโนมัติพร้อมโหมดการเปลี่ยนแปลงหรือโหมดการเข้าถึงที่อนุญาตสำหรับพร็อพเพอร์ตี้ของระบบเพื่อรองรับการใช้งาน VHAL การติดตั้งใช้งาน VHAL ของผู้ให้บริการจะใช้ข้อมูลเหล่านี้เพื่อให้การกำหนดค่าพร็อพเพอร์ตี้เป็นไปตามข้อกำหนดได้
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[[["เข้าใจง่าย","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 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."]]