手機必須ROOTshell
adb shellspa
suclass
cat /sys/class/power_supply/battery/charging_enabled 若返回0,則是禁止;若返回1,則是未禁止db
echo 0>/sys/class/power_supply/battery/charging_enabledbat
cat /sys/class/power_supply/battery/charging_enabled 確認返回值是不是0,如果0,則修改爲功ab