I am working on implementing application which has functionalities similar to Android Auto App.
Basically, what I understand from Android Auto App - it creates UI on Mobile Phone and transfers the UI using USB to Android Carkit to display. Please correct me If my understanding is wrong.
Can someone please help me to understand how does Android Auto casts its screen content to Carkit? How can I implement the similar functionality in my Application?
Android auto provides texture views for rendering contents from different processes associated with it. These renderings are finally composited based on the layout framework defined within Android Auto. The final contents are streamed to the head unit by a Service (using Android Auto Protocol). Head Unit will contain Android Auto Receiver Library which takes care of getting these data and doing the rest of the jobs. Basically the architecture is complex.
Not all these aspects are open. Have to dig in ,reverse engineer, read logs and figure out more details.