This could have been solved by wiring the power lines of the working external usb charger to a hacked up plug and the data lines back to the PC. They even sell premade cables for this usecase where you have a car with android auto, but the car's USB port is incapable of delivering net+ power to the phone.