B08a: Inspect VHAL
Where's the VHAL?
Try to find it with lshal:
adb shell lshal # Commonly found command isn't working?! adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle
Small note in the docs: The above command is for HIDL VHAL.
Let's try the AIDL service version:
adb shell \ dumpsys android.hardware.automotive.vehicle.IVehicle/default [--help] [--get <PROP_ID>] […]
Works!
Using the HAL service
To see all options, use
adb shell dumpsys android.hardware.automotive.vehicle.IVehicle/default --help
Let's check some common property values, like the VIN. The property ID of the VIN can be found in the file: hardware/interfaces/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/VehicleProperty.aidl
To dump a single property, use
adb shell dumpsys android.hardware.automotive.vehicle.IVehicle/default --get <id>
and replace <id> with the property id.
Is there an easier way to find out property ids?
Also try to set a property. Read the output of --help to find out the argument syntax.
Using the car_service
The car_service offers lots of commands that also can be invoked through dumpsys. You can get a list of commands via:
adb shell dumpsys car_service help
For instance, to get the same VIN information as in the previous step, you could also use:
adb shell dumpsys car_service get-property-value INFO_VIN
To see a full list of outputs use
adb shell dumpsys car_service
Check how you can interact with it using dumpsys!