Search code examples
androidautomotive

Why AP_POWER_STATE_REQ is read only in Vehicle HAL


I see in type.hal , AP_POWER_STATE_REQ is read-only.. How can VMCU - Power Controller can change powerState of Android Automotive OS? My assumtion is that there will be a native service- a client of VHAL where handle communication with VMCU and then request AP_POWER_STATE_REQ .. to enter shutdown, ON_FULL or DISP_OFF... But how can i do that if AP_POWER_STATE_REQ is read-only.


Solution

  • AP_POWER_STATE_REQ can be set via Vehicle Network Service only not via access Property. There will be a Chanel provide that possibility. eg . Service handle CAN message in AP. or UART communication