[Android Apps and Games] frequentc:
[MENTION=6898873]harsha1397[/MENTION]

Doesn't work on a Samsung Galaxy Note 3 with stock Lollipop 5.0.

The file /sys/class/power_supply/battery/charging_enabled doesn't exist. I looked at all of the files in the /sys/class/power_supply/battery/ directory, but I didn't see anything obvious that could be used to stop the charging.

Here's the list of files in the /sys/class/power_supply/battery/ directory in case anyone has any ideas:

root@hltetmo:/sys/class/power_supply/battery # ls -la
-rw-rw-r-- root root 4096 2014-02-10 10:14 2g_call
-rw-rw-r-- root root 4096 2014-02-10 10:14 3g_call
-rw-rw-r-- root root 4096 2014-02-10 10:14 auth
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_charging_source
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_current_ua_avg
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_current_ua_now
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_high_current_usb
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_inbat_voltage
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_lp_charging
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_read_adj_soc
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_read_raw_soc
-rw-rw-r-- system radio 4096 2014-02-10 10:14 batt_reset_soc
-rw-rw-r-- system radio 4096 2014-02-10 10:14 batt_slate_mode
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_temp
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_temp_adc
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_temp_adc_aver
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_temp_aver
-rw-rw-r-- system radio 4096 2014-02-10 10:14 batt_temp_table
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_type
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_vf_adc
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_vfocv
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_vol_adc
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_vol_adc_aver
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_vol_adc_cal
-rw-rw-r-- root root 4096 2014-02-10 10:14 batt_vol_aver
-rw-rw-r-- sdcard_rw sdcard_rw 4096 2014-02-10 10:14 browser
-rw-rw-r-- system radio 4096 2014-02-10 10:14 call
-rw-rw-r-- root root 4096 2014-02-10 10:14 camcorder
-rw-rw-r-- sdcard_rw sdcard_rw 4096 2014-02-10 10:14 camera
-r--r--r-- root root 4096 2014-02-10 10:14 capacity
-r--r--r-- root root 4096 2014-02-10 10:14 charge_now
-r--r--r-- root root 4096 2014-02-10 10:14 charge_type
-rw-rw-r-- root root 4096 2014-02-10 10:14 chg_current_adc
-rw-rw-r-- root root 4096 2014-02-10 10:14 chg_temp
-rw-rw-r-- root root 4096 2014-02-10 10:14 chg_temp_adc
-r--r--r-- root root 4096 2014-02-10 10:14 current_avg
-r--r--r-- root root 4096 2014-02-10 10:14 current_now
-rw-rw-r-- system radio 4096 2017-02-07 12:19 data_call
lrwxrwxrwx root root 2017-02-17 17:49 device -> ../../../battery.94
-rw-rw-r-- root root 4096 2014-02-10 10:14 event
-rw-rw-r-- system radio 4096 2014-02-10 10:14 factory_mode
-rw-rw-r-- root root 4096 2014-02-10 10:14 fg_asoc
-rw-rw-r-- root root 4096 2014-02-10 10:14 fg_capacity
-rw-rw-r-- root root 4096 2014-02-10 10:14 fg_reg_dump
-rw-rw-r-- root root 4096 2014-02-10 10:14 fg_reset_cap
-rw-rw-r-- system radio 4096 2014-02-10 10:14 gps
-r--r--r-- root root 4096 2014-02-10 10:14 health
-rw-rw-r-- sdcard_rw sdcard_rw 4096 2014-02-10 10:14 hotspot
-rw-rw-r-- root root 4096 2014-02-10 10:14 hv_charger_set
-rw-rw-r-- root root 4096 2014-02-10 10:14 hv_charger_status
-rw-rw-r-- system radio 4096 2017-02-17 18:07 lcd
-rw-rw-r-- system radio 4096 2014-02-10 10:14 lte
-rw-rw-r-- sdcard_rw sdcard_rw 4096 2014-02-10 10:14 music
-r--r--r-- root root 4096 2014-02-10 10:14 online
drwxr-xr-x root root 2017-02-17 17:49 power
-r--r--r-- root root 4096 2014-02-10 10:14 present
-rw-rw-r-- root root 4096 2014-02-10 10:14 set_stability_test
-rw-rw-r-- root root 4096 2014-02-10 10:14 siop_activated
-rw-rw-r-- radio system 4096 2017-02-17 18:07 siop_level
-r--r--r-- root root 4096 2014-02-10 10:14 status
-rw-rw-r-- media sdcard_rw 4096 2017-02-17 18:06 store_mode
lrwxrwxrwx root root 2017-02-17 17:49 subsystem -> ../../../../class/power_supply
-rw-rw-r-- system radio 4096 2017-02-15 17:58 talk_gsm
-rw-rw-r-- system radio 4096 2014-02-10 10:14 talk_wcdma
-r--r--r-- root root 4096 2014-02-10 10:14 technology
-r--r--r-- root root 4096 2014-02-10 10:14 temp
-r--r--r-- root root 4096 2014-02-10 10:14 temp_ambient
-rw-rw-r-- root root 4096 2014-02-10 10:14 test_mode
-r--r--r-- root root 4096 2014-02-10 10:14 type
-rw-r--r-- root root 4096 2014-02-10 10:14 uevent
-rw-rw-r-- system radio 4096 2014-02-10 10:14 update
-rw-rw-r-- sdcard_rw sdcard_rw 4096 2014-02-10 10:14 video
-r--r--r-- root root 4096 2014-02-10 10:14 voltage_avg
-r--r--r-- root root 4096 2014-02-10 10:14 voltage_now
-rw-rw-r-- root root 4096 2014-02-10 10:14 wc_adc
-rw-rw-r-- system radio 4096 2014-02-10 10:14 wc_enable
-rw-rw-r-- root root 4096 2014-02-10 10:14 wc_status
-rw-rw-r-- root root 4096 2014-02-10 10:14 wibro
-rw-rw-r-- system radio 4096 2014-02-10 10:14 wifi
root@hltetmo:/sys/class/power_supply/battery #