Hello Christopher McClellan, If you have worked on vehicle HAL, Kindly help me out with the below query.
AOSP: How to initialize the VehicleProperty::AUDIO_VOLUME property (.initialValues in the DefaultConfig.h) in vehicl hal ? Trying to add AUDIO_VOLUME property to the demo vehicle hal code present in /hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/ File name: DefaultConfig.h tried adding like below, but it is crashing. {.config = { .prop = toInt(VehicleProperty::AUDIO_VOLUME), .access = VehiclePropertyAccess::READ_WRITE, .changeMode = VehiclePropertyChangeMode::ON_CHANGE, .configArray = { toInt(VehicleAudioContextFlag::MUSIC_FLAG), toInt(VehicleAudioVolumeCapabilityFlag::MASTER_VOLUME_ONLY),0,0,100 }, }, .initialValue = {.int32Values = { toInt(VehicleAudioContextFlag::MUSIC_FLAG), 80, toInt(VehicleAudioVolumeState::STATE_OK) } } }, AUDIO_VOLUME property as defined in /hardware/interfaces/automotive/vehicle/2.0/types.hal * @change_mode VehiclePropertyChangeMode:ON_CHANGE * @access VehiclePropertyAccess:READ_WRITE * @config_flags all audio contexts supported. */ AUDIO_VOLUME = ( 0x0901 | VehiclePropertyGroup:SYSTEM | VehiclePropertyType:INT32_VEC | VehicleArea:GLOBAL), reference OSP code available in http://androidxref.com/8.0.0_r4/xref/ Thanks in advance.!! On Saturday, January 20, 2018 at 2:28:25 AM UTC+5:30, Christopher McClellan wrote: > > Those projects appear to have been added prior to Oreo and not maintained > since. > I've not gotten the car emulator projects to build, but have been able to > get the emulated vehicle HAL and the demo apps running. > > Most of this is accomplished by including the `packages/services/Car/build/ > car.mk` file in the device's makefile. > > > https://android.googlesource.com/platform/packages/services/Car/+/master/car_product/build/car.mk > > We did also have to add an SELinux domain for the for the vehicle service > as described here. > > > https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials > > On Friday, December 15, 2017 at 10:40:12 AM UTC-5, GuoXin Hong wrote: >> >> Hi, >> >> I downloaded Android 8.1 from AOSP >> Got build failed after choosing any one of the car emulator projects >> listed >> Does anyone knows the tricks to build car emulator project or car >> emulator projects are NOT tested yet >> >> Thanks >> >> -- -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.