How to disable battery charging during ADB connection?

后端 未结 5 1495
暖寄归人
暖寄归人 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:53

    if android os version is more than 6 use unplug and reset to revert back.

    adb shell dumpsys battery unplug
    adb shell dumpsys battery reset
    

提交回复
热议问题