That kills my MBP’s battery, as it would be charging my phone as well.
These days you can control the charge direction from Android, that may work. On my phone, I can also use Acc (and AccA) to limit charge current/voltage, and possibly stop charging (I have to check whether it cuts the connection). Advanced charging controller requires root, though.