Puoi utilizzare le seguenti istruzioni per scaricare le informazioni di debug di VHAL. Viene chiamato il metodo
dump()
nell'interfaccia VHAL, che non è elencato nell'interfaccia, ma è
implicitamente ereditato per tutti i servizi AIDL, con tutti gli argomenti aggiuntivi forniti nel
comando.
adb root && adb shell dumpsys android.hardware.automotive.vehicle.IVehicle/default
Utilizza il seguente comando per elencare i comandi di debug supportati per VHAL di riferimento:
adb root && adb shell dumpsys android.hardware.automotive.vehicle.IVehicle/default --help
Ad esempio, l'VHAL di riferimento supporta la lettura di un valore di proprietà
(ad esempio INFO_VIN
) tramite:
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
Per impostare un valore della proprietà, utilizza --set
, ad esempio, per impostare SEAT_MEMORY_SELECT
per l'ID area: ROW_1_LEFT
sul valore 1
:
adb root && adb shell dumpsys android.hardware.automotive.vehicle.IVehicle/default --set SEAT_MEMORY_SELECT -a ROW_1_LEFT -i 1
Per l'HIDL VHAL, utilizza:
adb root && adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle/default
Puoi anche utilizzare il test VTS,
VtsHalAutomotiveVehicle_TargetTest
,
per verificare l'implementazione di VHAL. Il caso di test, useAidlBackend
o
useHidlBackend
, viene ignorato se il backend specifico non è disponibile. Alcuni test
possono anche essere ignorati per il backend AIDL o HIDL se il backend non supporta questa funzionalità.
Il test VTS verifica che tutte le proprietà di sistema supportate abbiano configurazioni corrette. Inoltre, verifica le operazioni VHAL di base per le proprietà supportate.