Had this happen to me with my note 9, it ended up being pocket lint packed inside and around USB port, prevented USB connector to seat on the magnet that keeps cable connected. cleaned around the port using a very small unfolded paper clip. cable stayed connected never had Android Auto...