It's been common for many years. Look for a document titled "Mediatek Pump Express Introduction". Another useful phrase to search for more information: "cable impedance detection". Apparently several patents on it too.
"Do cable imp. Calculation. Protect cable from burnout" on page 12
"Adjust Vbus according to cable impedance/quality" on page 14
and "Cable Impedance Measurement" on page 15?
Pump Express is their fast charging protocol, but even before that, in the days of feature phones, they were already doing the measurements and adjusting charging current.