I used a Raspberry Pi 3B and Crankshaft (Openauto) to add Android auto to my older 2012 Honda Civic. I didn't replace the head unit since I wanted to keep the stock stereo for the IMID screen integration. While I was at it I added a backup camera.
github.com/opencardev/crankshaft
OpenDash is a good alternative to crankshaft
github.com/opendsh