Problem description: Each time wen I connect USB cable between PC and my mobile phone the battery automatically is charged. I want to use ADB protocol but I don\'t want to charg
You can make the system think it is not loading th battery using
adb shell dumpsys battery unplug
Refer to this good article : https://stanfy.com/blog/android-shell-part-1-mocking-battery-status/