I have added in the below following path:
hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h
const ConfigDeclaration kVehicleProperties[]{ { .config = { .prop = VENDOR_WRITE_PROP, .access = VehiclePropertyAccess::READ_WRITE, .changeMode = VehiclePropertyChangeMode::ON_CHANGE }, .initialValue = {.int32Values = {123}}},
//other props }
2.hardware/interfaces/automotive/vehicle/aidl/impl/utils/test_vendor_properties/android/hardware/automotive/vehicle/TestVendorProperty.aidl
VENDOR_WRITE_PROP = 0x105 + 0x20000000 + 0x03000000 + 0x00400000,
hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v_2_0/PropertyUtils.h
constexpr int VENDOR_WRITE_PROP = (int)(0x105 | VehiclePropertyGroup::VENDOR | VehiclePropertyType::STRING | VehicleArea::GLOBAL);
4.hardware/interfaces/automotive/vehicle/aidl/impl/utils/test_vendor_properties/android/hardware/automotive/vehicle/TestVendorProperties.json
{ "property": "TestVendorProperty::VENDOR_WRITE_PROP", "defaultValue": { "stringValue": "Vendor Property" }, "access": "VehiclePropertyAccess::READ_WRITE", "changeMode": "VehiclePropertyChangeMode::ON_CHANGE"},
Then build and verified.But this property is not available in Android emulator.
Also verified through the below command: But this newly added VHAL property is not available. adb shell dumpsys car_service get-property-value
Let me know what I am missing?