From 1d2d4dd1b7df915cc69626786e784a0468f71cc6 Mon Sep 17 00:00:00 2001 From: Yu Shan Date: Wed, 26 Oct 2022 14:44:55 -0700 Subject: [PATCH] Add INFO_VIN in reference VHAL. This is for remote access HAL to use as device ID. This CL is already included in internal branch but cannot be directly cherry-picked due to refactoring in reference VHAL. Test: Local build. Bug: 255623880 Change-Id: Iec798ffa7df852e6c300d0dd18f2d599c58f2228 Merged-In: I682ab87ef1ff1839ecae92d05a4135810d92bee1 Merged-In: Iecc496e2a64a3270819cf90935ea6deec8a4c9f3 --- .../aidl/impl/default_config/include/DefaultConfig.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h b/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h index e00f775a04..65cd7959dd 100644 --- a/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h +++ b/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h @@ -122,6 +122,13 @@ const std::vector kVehicleProperties = { }, .initialValue = {.int32Values = {CHARGE_PORT_FRONT_LEFT, CHARGE_PORT_REAR_LEFT}}}, + {.config = + { + .prop = toInt(VehicleProperty::INFO_VIN), + .access = VehiclePropertyAccess::READ, + .changeMode = VehiclePropertyChangeMode::STATIC, + }, + .initialValue = {.stringValue = "1GCARVIN123456789"}}, {.config = { .prop = toInt(VehicleProperty::INFO_MAKE),