I would like to know if is it possible to connect my smartphone to a pc via USB without charging it?

It would be very useful to be able to disable charging (but still allow USB tethering, ADB debugging, file transfer etc).

Thanks a lot.


You can try these solutions, which directly address what you are trying to achieve (may not work on all devices)

Adb shell echo 0 > /sys/class/power_supply/battery/charging_enabled (1 to disable; 0 to enable)

If these methods don't work or you want to explore more possibilities, see methods below, which can offer you clues


Yup, you should be able to use the adb command. Or use an app I just released to disable usb charging in Android phone. Has not been tested on Samsung j7 though.


It needs root access.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.