How to disable battery charging during ADB connection?

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

    Probably it can be done via (root privileges):

    /sys/devices/battery.XX/power_supply/battery/hv_charger_set
    

    0 - Disable USB Charging

    1 - Enable USB Charging

提交回复
热议问题