Android Auto connectivity (both wired & wireless) depends on Mobile support. As per Android Auto specification, All Android mobiles with Software Ver. 6.0 (Marshmallow) & above are compatible with Wired Android Auto. And for flawless connectivity, the mobile OS & Android Auto compatible apps are to be updated to the latest Ver. For more details on Wireless Android Auto connectivity,
check here