Does any car emulator project (arm, arm64, x86, x64_64) being tested on Android 8.1?

383 views
Skip to first unread message

GuoXin Hong

unread,
Dec 15, 2017, 10:40:12 AM12/15/17
to android-porting
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

Christopher McClellan

unread,
Jan 19, 2018, 3:58:25 PM1/19/18
to android-porting
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.


We did also have to add an SELinux domain for the for the vehicle service as described here.

Sibiraj T

unread,
Jun 22, 2018, 10:39:19 AM6/22/18
to android-porting

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.!!
Reply all
Reply to author
Forward
0 new messages