Doesn't the phone detect if it's connected to a pc or a charging point (plug socket), so if anything goes wrong it can't break the pc, pc is a lower charging of .5a whereas wall charger can be up to 2.1a, and some of the data leads charge slower,
Maybe get a dedicated charging lead? (If not using android auto)