[APP][ROOT][4.0+]Battery Charge Limit v1.1.1

fapste

Senior Member
Dec 26, 2015
351
135
0
How should I delete/reset the battery graph in phone settings when the phone gets charged upto 80%. Currently android OS only clears the battery stats when the device is charged above 90%
 

frequentc

Senior Member
Jun 28, 2012
104
92
48
@harsha1397

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:
Code:
[email protected]:/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
[email protected]:/sys/class/power_supply/battery #
 
  • Like
Reactions: sriharshaarangi

Snoe II

Senior Member
Feb 7, 2012
126
31
58
Banting
App working fine on Sony Xperia Z3 Compact running stock 5.1.1. Thanks for the awesome app ?

Only one thing I noticed, setting do nothing when clicked. And can you add notification sound when battery charged to the the limit?
 
  • Like
Reactions: sriharshaarangi

sriharshaarangi

Senior Member
Aug 22, 2015
149
682
0
Chennai
Very very good application, that's I wanted all this time , but PLEASE , let us set it to 100% or even 99%, I know from 95 to 100 there is no much 'battery' but it looks better for those who want to have their phones charge full. Sorry about my English. Plus, I can't enter on the settings, try to tap on the settings but nothing happens. Thank you
John

---------- Post added at 09:38 PM ---------- Previous post was at 09:37 PM ----------

For those who have XIAOMI MI MAX 6'44 WORKS PERFECT. TRY IT. YOU WON'T REGRET IT.
To charge to 100%, you can just disable it right?
 

sriharshaarangi

Senior Member
Aug 22, 2015
149
682
0
Chennai
@harsha1397

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:
Code:
[email protected]:/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
[email protected]:/sys/class/power_supply/battery #
Appreciate your feedback, but this is the problem with OEMs. They modify the system files. I cannot find a charging_enabled equivalent file in that directory. Sorry! I don't have a Samsung, so I cannot do anything. If you can find a file which on changing to 0 disables charging, I can add it to the app. If you can find it, it will be helpful for all Samsung owners.
 

sriharshaarangi

Senior Member
Aug 22, 2015
149
682
0
Chennai
App working fine on Sony Xperia Z3 Compact running stock 5.1.1. Thanks for the awesome app

Only one thing I noticed, setting do nothing when clicked. And can you add notification sound when battery charged to the the limit?
Thanks for the feedback! Yeah, as of now, settings doesn't provide any functionality. I will add that notification sound to my todo list.
 

Diieguez

New member
Feb 18, 2017
2
1
0
I think I can give my personal opinion to improve the app, If only I could choose if i want or not re-charging my phone, I mean, I want when my battery reaches 98% the app stops working and not charging my phone again until 98%. I whish you take it into account :)

Enviado desde mi MI 5 mediante Tapatalk