- hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/defaultconfig.h
consteclaration kvehicle />.config = {
.prop = vendor_write_prop,
.access = catherpropertyaccess :: read_write,
.changemode = catherpropertychangemode :: on_change
},
.initialValue = {.int32val {123}}},
// Другие опоры
}
Код: Выделить всё
VENDOR_WRITE_PROP = 0x105 + 0x20000000 + 0x03000000 + 0x00400000,
constexpr int vendor_write_prop = (0x105 | ATARCHPORPORTYTYPE :: String | />4.hardware/Interfaces/automotive/vehicle/aidl/impl/utils/test_vendor_properties/android/hardware/automotive/vehicle/testvendorperperties.json> { "property": "TestVendorProperty::VENDOR_WRITE_PROP", "defaultValue": { "stringValue": "Vendor Property" }, "access": "VehiclePropertyAccess::READ_WRITE", "changeMode": "VehiclePropertyChangeMode::ON_CHANGE"},
< /code>
Затем построить и проверить. Но это свойство недоступно в эмуляторе Android. < /p>
Также проверено по приведенной ниже команде: но это недавно добавленное свойство VHAL недоступно.
Adb Shell Shellss Car_Service Get-Propertue < /p>
.>
Подробнее здесь: https://stackoverflow.com/questions/794 ... omotive-14
Мобильная версия