You can use the following instructions to dump VHAL debug information. This calls the
dump()
method in the VHAL interface, which isn't listed in the interface but is
implicitly inherited for all AIDL services, with all the additional arguments provided in the
command.
adb root && adb shell dumpsys android.hardware.automotive.vehicle.IVehicle/default
Use the following command to list the supported debug commands for the reference VHAL:
adb root && adb shell dumpsys android.hardware.automotive.vehicle.IVehicle/default --help
For example, the reference VHAL supports reading a property value
(such as INFO_VIN
) through:
adb root && adb shell dumpsys android.hardware.automotive.vehicle.IVehicle/default --get INFO_VIN
adb root && adb shell dumpsys android.hardware.automotive.vehicle.IVehicle/default --get 0x11100100
To set a property value, use --set
, for example, to set SEAT_MEMORY_SELECT
for the area ID: ROW_1_LEFT
to value 1
:
adb root && adb shell dumpsys android.hardware.automotive.vehicle.IVehicle/default --set SEAT_MEMORY_SELECT -a ROW_1_LEFT -i 1
For the HIDL VHAL, use:
adb root && adb shell lshal debug [email protected]::IVehicle/default
You can also use the VTS test,
VtsHalAutomotiveVehicle_TargetTest
,
to verify your VHAL implementation. Either test case, useAidlBackend
or
useHidlBackend
, is skipped if the specific backend isn't available. Some tests
can also be skipped for the AIDL or HIDL backend if the backend doesn't support this feature.
The VTS test verifies all supported system properties has correct configurations. It also verifies basic VHAL operations for supported properties.