Android Auto disconnects are usually solvable once you isolate wired vs wireless. Start with cable/port checks for wired issues, rebuild pairing for wireless issues, and ensure battery optimization ...
This is the way: a Raspberry Pi and a clever approach got Android Auto up and running on the original head unit in a 2012 ...