How to disable battery charging during ADB connection?

后端 未结 5 1506
暖寄归人
暖寄归人 2021-02-03 12:31

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

5条回答
  •  忘了有多久
    2021-02-03 12:58

    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/

提交回复
热议问题