This question already has an answer here:
- Disable USB charging 10 answers
I develop "on the road" using a laptop that's not connected to a power source, so when I debug on my android devices, they drain my laptop battery. Unfortunately, the laptop is a MacBook Air so spare laptop batteries is not an option. (I charge everything at home at night.)
Is there a setting to switch USB charging off, especially when debugging?