Like everyone else I was having issues connecting Android Auto and having it stay connected.
My phone is a Xiaomi Poco X3 NFC
Connecting using the supplied USB-C cable was hit and miss but once connected all seemed well. For about 20 mins then the connection dropped. Unplugging at the car port and reconnecting was usually enough to re-establish the connection.
The only other cable I had was a decent braided cable of 2 metres, which was far worse.
I had a read around and found advice to get a short,
properly certified cable with a certified
high data rate. A quick search threw up some cables rated to 40Gbps (expensive) and several certified at 480Mbps (which, believe it or not, is considered slow - something of an issue for someone who would have once sold his grandmother to get his hands on a 56kbps dialup modem)
Eventually I settled on an Anker cable certified for up to 5Gbps and just £7.99 delivered.
https://www.amazon.co.uk/gp/aw/d/B01GN0M6NE
The cable is a little chunkier than any of the others I have and I would hope the electronics in the USB-C end are decent. (check out the USM-C spec and you'll see that these cables aren't just a bit of wire with fancy plugs. There's a teensy bit of intelligence in that sweet little shell [as well as two, symmetrically mirrored rows of 12 connectors each])
I've just tried it but only briefly. Give the infotainment a chance to finish booting and plug it in. So far, connection just seems to happen and a quick navigation across town went without incident.
I'll find an excuse to try it on a longer run as soon as I can and report back.