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 0x11100100
For the HIDL VHAL, use:
adb root && adb shell lshal debug android.hardware.automotive.vehicle@2.0::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.