yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Dollyllama:
0.8.2 confirmed working on my Pixel XL running Stock Oreo (Magisk 14.2)
[Android Apps and Games] GryTEcHoG:
Understood. Thanks for explaining.
[Android Apps and Games] razorsbk:
What you're doing right not is not good for your battery health. By default it has a buffer to prevent overcharging. The chip inside your phone/battery controls that.

Best charging behavior for battery longevity is 20-80% and less fast charge.
[Android Apps and Games] mochamoo:
Not working on my Pixel XL with Magisk 14.2. Still charges past 80% and doesn't reset battery stats even though it says it did. Back to the Tasker script that was posted earlier. That has been working fine for me (except it doesn't reset battery stats--not supposed to. I can live without that as I get the right info from Accubattery).
[Android Apps and Games] Death I:
The v1.0.4 doesn't work on Pixel for me, old version does.
[Android Apps and Games] slimey1:
Working great on my LG G3.
[Android Apps and Games] Mohammad_pd:
I can't find charging_enabled

What Now?

HTC one E9 Plus

Android 5.0.2

Stock Rom
[Android Apps and Games] chancex:
Can add option is less ?% will start chargeing and limit ?% stop chargeing, if can do this function, the perfact bettary life control will done.
[Android Apps and Games] pda1ey:
Thanks for this app! Works on the oneplus one.
[Android Apps and Games] Mar-cel:
Settings doesn't work

And this app has no auto start after a reboot
[Android Apps and Games] IPLondon:
Possible malware detected in the APK..someone know more about this?

https://www.virustotal.com/en/file/92ca29c6d63d1d43bad201eca9217eb645b7d3851243ed4cb21f23e324caace7/analysis/1487450942/
[Android Apps and Games] Vincent_40:
Work fine one OnePlus3 and dash charge work too
[Android Apps and Games] real_milux:
Samsung ROM = different control file

I summarized different control files some posts before, store_mode is the file you may look for when using Samsung Note device. This will have to wait until the author has finished his exams, then he may implement support for control files other than charging_enabled
[Android Apps and Games] cmattern:
Working fine on my one plus 3t with Lineage 14.1 (dedicated). Many thanks!
[Android Apps and Games] TioCareca:
Working good on my one plus 2 with official lineage 14.1...
[Android Apps and Games] ndrancs:
Stock Asus ZenFone 2 ze601kl mm 6.0.1

It's sure have "charging_enabled"

I echo 0 but the phone still charging

-rw-r--r-- root root 4096 1970-05-06 07:29 capacity
-r--r--r-- root root 4096 2017-02-19 09:35 charge_type
-rw-r--r-- root root 4096 2017-02-19 09:06 charging_enabled
-r--r--r-- root root 4096 2017-02-19 09:25 current_now
lrwxrwxrwx root root 2017-02-19 09:35 device -> ../../../qpnp-linear-charger-8
-r--r--r-- root root 4096 2017-02-19 09:25 health
drwxr-xr-x root root 2017-02-19 09:35 power
-r--r--r-- root root 4096 2017-02-19 09:25 present
-rw-r--r-- root root 4096 2017-02-19 09:25 status
lrwxrwxrwx root root 2017-02-19 09:35 subsystem -> ../../../../../class/power_supply
-rw-r--r-- root root 4096 2017-02-19 09:35 system_temp_level
-rw-r--r-- root root 4096 2017-02-19 09:25 temp
-rw-r--r-- root root 4096 2017-02-19 09:35 temp_cool
-rw-r--r-- root root 4096 2017-02-19 09:35 temp_warm
-r--r--r-- root root 4096 2017-02-19 09:35 type
-rw-r--r-- root root 4096 2017-02-19 09:35 uevent
-r--r--r-- root root 4096 2017-02-19 09:35 voltage_max_design
-r--r--r-- root root 4096 2017-02-19 09:35 voltage_min_design
-r--r--r-- root root 4096 2017-02-19 09:25 voltage_now

cat /sys/class/power_supply/battery/charging_enabled
0
[Android Apps and Games] MPJINFiNiTE:
What other files do you have in the /sys/class/power_supply/battery folder?

Edit: nevermind I see them in the terminal screenshot

Does it show that the battery is charging in the settings? Maybe it's just running on AC power but still showing the charging indicator in the status bar!
[Android Apps and Games] ndrancs:
I found out the file need to edit

It's here

echo "0" > /sys/class/power_supply/usb/present
[Android Apps and Games] tcchuin:
good idea for the app, but doesn't work on my mate 9 as it doesn't have the same file in the folder
[Android Apps and Games] Mr.Ultimate:
thanks, not going to tinker with s7 just now, but will be definately trying my best to get this utilized to re-enable charging in one of my note7
[Android Apps and Games] juppi:
on my galaxy s7, store_mode set to 1 works to stop charging.

But i cant reset the value to 0 to get charging working. Only a reboot restore the value to 0 and charging will then work.

I'm on superman rom v2.0 (android 7.0).

I use wc_enable in the same dir to stop charging over Wireless Charging with tasker because i only charge over night with WC.
[Android Apps and Games] logosA:
Same here . Same behavior on Samsung Note 4 running stock MM 6.01 and Note 2 running on custom Android N 7.1

Just not possible to set value to 0

In the stock rom also , app is crashing when try to do that.

It must be Samsung specific.

Lets wait for the author to take that in mind in the next update.
[Android Apps and Games] jhonnyclyde:
The app works great on OnePlus 2 running lineage official. A big thanks to the developer!
[Android Apps and Games] cmglng:
Is it possible to add an option for user defined discharge limit before resuming charging instead of the default 3%? I would like to make it 1%. Is that a good idea?
[Android Apps and Games] ash001:
Not working in mokee 7.1.1

File is not present..

Any other way to implement or add another directory???
[Android Apps and Games] mochamoo:
I tried 0.8.2 since some were successful but didn't work for my pixel xl on stock oreo + magisk 14.2. Could be some app interfering with it but since the tasker script works for me I guess I am fine. The battery reset would be nice tho.
[Android Apps and Games] Death I:
Version 0.11 works for me. How do you do it with Tasker?
[Android Apps and Games] mochamoo:
https://xdaforums.com/showthread.php?t=3668059

Sent from my Very Silver Pixel XL 128GB
[Android Apps and Games] enweazudaniel:
Just uninstalled
[Android Apps and Games] Smantanasiceapa:
you mean...manufactures intentionally give fast chargers to mess out our batterys?
[Android Apps and Games] razorsbk:
I didn't say that. Fast chargers are very useful when in a hurry, but using one every day is going to increase your battery wear.
[Android Apps and Games] hgmichna:
Quick charge

The manufacturers could, of course, add a switch to their chargers with the choices "Quick charge" and "Slow charge". And they could mention in the instructions for use something like, "Use 'Quick charge' only when you need it."

But, as expected, they don't do that, because the cost of the switch is theirs, but the cost of a replacement battery or the cost of a new phone (if the user does not realise that a replacement battery would be the better option) is ours.

In fact, I have a charger with exactly such a switch, but it charges AA and AAA batteries, not smartphones.
[Android Apps and Games] Death I:
For mobile phones the charger is actually in the phone so all they would need to do is add a software path to the hardware charger chip.

Thanks!
[Android Apps and Games] Droid_JD:
I tried this, had massive problems. Battery wouldn't actually charge, just held at the current rate. When I unplugged the phone, the battery would read 0%.

If it works for you please respond in that thread so I can (hopefully) figure out what I did wrong.
[Android Apps and Games] post-mortem:
It's very common -- not just with electronic devices, but in all aspects of our lives (business, politics, weight loss, etc.) -- that people are looking for short-term gain at the expense of long-term solutions. Charging your battery to 100% as fast as possible will help you get through today, but the overall life expectancy drops. So, which is better? Slow charge your battery to a max of 80% and it will last years, but some people don't care. Our issue is that most people don't even realize that they have an alternative, so they think it's obviously better to charge faster, and to charge to 100%.
[Android Apps and Games] Smantanasiceapa:
I'm on the fast charging side, because I don't have 3 or 4h to for filling a 3k mAh.
[Android Apps and Games] Gerek:
hi, github = Xiaomi Redmi Note 2 26 days ago, any news?

add Xiaomi Redmi Note 2
[Android Apps and Games] hgmichna:
kilo and milli

That's a funny one. Haven't seen that before.

You mean 3 Ah.
[Android Apps and Games] Smantanasiceapa:
Yes.

But in reality, in this moment my battery cap. is ~2400 mA. I'm the 2nd owner of this s7 since september, and he kept him ~9 month before he sold it to me. I guess his behavior related to battery charging & discharging wasn't the best one.
[Android Apps and Games] hgmichna:
The fundamentals of electricity

You mean 2400 mAh.

I begin to wonder why some people take part in a detailed technical discussion who have no clue what they are talking about.
[Android Apps and Games] eried1:
Used to work for me on some previous version (think it was 0.11). Now it charges past the limit. I believe I was using Magisk v12 when it worked the last time.

Using Lenovo P2 with the latest July update rooted with Magisk v13.3.

Edit: Downgrading to 0.11 didn't seem to help.
[Android Apps and Games] Droid_JD:
Using 0.8.2. It works, but consistently charge alt 4% above my top limit (currently sweet at 80%). Also, it doesn't allow discharging for me, so it stays at 84% while plugged in.
[Android Apps and Games] mochamoo:
Do your battery stats reset when you

unplug?

Sent from my Very Silver Pixel XL 128GB
[Android Apps and Games] knojap:
Galaxy S5 MM 6.0.1

Setting

Limit:85%

Recharge 80%

It is charging until 85% after unplugging the phone and reconmect above 35% it is staying at this level for example 45%, 37% ore something. It doesn't charge above the actual value.

If the battery is less than 35% and plugging it in, it always charges just until 35%?

Only restarting the phone will work to charge to 85% again.

Any help would be nice.
[Android Apps and Games] iluvatrix:
hi there, i have just started using this great app.

my setting is the default when app is launched

Nextbit Robin

LOS 14.1 Official

default control file battery_charging_enabled

Recharge below 78

Limit charging to 80

now when my phone is on the charger overnight, it does stop at 80 however it remains at 80 the whole night. is this the correct behaviour? or should it be reach 80, stop charging, phone slowly draws battery till 78 then start charging to 80 & repeat?

thanks
[Android Apps and Games] post-mortem:
Some phones will stay at 80%, some will repeatedly discharge/charge. It just depends on the hardware, and the sophistication of the charging. Neither way is especially bad for the battery.
[Android Apps and Games] hgmichna:
Consider yourself lucky. Some phones, like yours, can do this. They apparently feed the phone electronics directly from the charger, leaving the battery untouched.

I believe this is a small advantage over recharge cycling, nothing to write home about, but definitely not a problem.
[Android Apps and Games] HikingMoose:
I keep forgetting to share what I found for my Pixel XL. I tried the 0.8.2, and it does stop charging - for some reason. Not sure why an older one works, and the latest doesn't.

It cannot reset the stats however.
[Android Apps and Games] redj12:
Hi. Tried the latest app from F-Droid. It doesn't works on my Nexus 5, LineageOS Nougat.
[Android Apps and Games] rickrude:
new Version at f-droid - 1.0.5 (21)

what is the changelog for the 1.0.5, which is available on f-droid since the 1st of nov?
[Android Apps and Games] guanto96:
Link?
[Android Apps and Games] guest4711:
Battery Charge Limit (Stops charging at a desired level) - https://f-droid.org/app/com.slash.batterychargelimit

Changelog: https://github.com/sriharshaarangi/BatteryChargeLimit
[Android Apps and Games] Midomad:
https://f-droid.org/repo/com.slash.batterychargelimit_21.apk
[Android Apps and Games] kpschauhan:
As i understand, the phone will not go in deep sleep mode till such time the app is running. Further, for phone to go in deep sleep mode, the charger has to be plugged out so that this app doesnt stop is pushed into background.

Is my understanding correct?
[Android Apps and Games] HikingMoose:
No, that is not how it works. The app only turns on when the phone is plugged in. It turns off when it's unplugged. Your phone will sleep just fine!
[Android Apps and Games] camdadeye291:
Works very well on OnePlus 3 with charging_enabled control file. Thank you [MENTION=6898873]sriharshaarangi[/MENTION] for this great app!
[Android Apps and Games] RedSkyRoad:
Just trying to understand the capabilities of this app : I want to leave my old phone on charge because I use it as a security cam. Would I be able to enable charging when it reaches say 20% battery level and disable charging when It reaches 90%?

If not, which app would do this?
[Android Apps and Games] hgmichna:
Leave a phone always connected to the charger

If your phone is compatible, then yes, this is exactly what the app has been made for.

My recommendation would be to set the high charging point to 50% and the low one to below 49%, then test whether this works well. If you want to keep the battery alive for a very long time, you should avoid any high charge.
[Android Apps and Games] RedSkyRoad:
Thanks for the feedback. The camera of the security cam, runs the phone flat, so I want it to start charging as soon as the phone reaches like 10% level and once it reaches it's charging goal, let it run down to 10% again. I leave it unattended for 8 hours while I'm at work...
[Android Apps and Games] popofff:
Hello,

Is the Samsung mini S4 i9195 supported ?

It's not rooted until now so I cannot check.

Regards
[Android Apps and Games] CrazyTurk42:
HTC 10 running LeeDroid rom. Charge set to 80%. But does not work. Charges up to 100%
[Android Apps and Games] Droid_JD:
Try an earlier version. 0.8 2 works for my pixel XL. For me, it charges to the desired level, but will then hold at that level. It will not discharge.YMMV
[Android Apps and Games] ashesall:
Hi, is it possible to hide the persistent icon on the status bar without affecting the app's function? Low prio notification?
[Android Apps and Games] FSMcas:
Does using this app alter the system partition and therefore disable the ability to do OTA updates on the Nexus / Pixel devices?
[Android Apps and Games] RedSkull23:
I confirm that it works without problem, i had a S4 Mini before it suddenly died.
[Android Apps and Games] hgmichna:
OTA updates unimpeded

No, it doesn't.
[Android Apps and Games] drstereos:
App not working Shamu...
[Android Apps and Games] Redhawk2000:
Any thought of including the charging current in the notification shade to go along with the temp and voltage? It would eliminate my need for Ampere.
[Android Apps and Games] CrazyTurk42:
0.8.2 works!!
[Android Apps and Games] KnifeFed:
Same here on my Nexus 6P.
[Android Apps and Games] Rommyke:
Thank you ... really great and usefull apk.

Works great on ZTE nubia Z7max

Grtz R.
[Android Apps and Games] onoakino:
My Nexus 10

LineageOS 14.1-20170609-UNOFFICIAL-manta

kernel 3.4 67-lineage-gbcb4c11

Magisk 13.3 installed

Device continues to charge beyond my set limit of 85%. When i checked, it was still charging and was already at 91%. I'm using a fast charger.
[Android Apps and Games] Gregbol:
Hello.

I am in "batt_slate_mode" the app does not hold the charge, the phone discharges as without the charger.

I use tasker to stop the load.

Note3 phronesis v7 kernel phantom v1.2u *.

Do you have any suggestions.

Thank you.

Envoyé de mon SM-N930F en utilisant Tapatalk
[Android Apps and Games] ithehappy:
I am running stock Oreo rooted with Magisk 14.3 on my Marlin and really wanted for this app to work but unfortunately it doesn't. I downloaded the latest 1.0.5 version from F-Droid, limited the charging rate to 90%, but it went passed the limit and manually unplugged it then.

:(
[Android Apps and Games] MezzaLuna:
Hi.

There is no way to limit battery charge without root?

I have a brand new Moto G 5 and I wouldn't like to root it.

Thank you very much.
[Android Apps and Games] guest4711:
No, the control files are not writable for non-system processes. If your kernel does not support an userland interface for controlling the charging I see no chance...
[Android Apps and Games] MezzaLuna:
Thank you very much.

So just Sony has a "home made" software to take care of battery.

By the way, do you think that it's so bad for battery to charge till 100%?
[Android Apps and Games] guest4711:
And some custom kernels support it...

For details on the benefits of avoiding full charging and deep discharging see the article linked in first post: http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries
[Android Apps and Games] popofff:
It is a planned function for the next release to limit charging current and voltage ?

Regards
[Android Apps and Games] Droid_JD:
I'm in the EXACT same boat. Version 0.8.2 will limit the charging to XX% though. It's the only version that works for me. Stock oreo, marlin.
[Android Apps and Games] :
I was having the same problem, but go into settings and change the config file to read the general values, instead of (Nexus 6P one for me). Then it started working just fine.
[Android Apps and Games] funm@sterz:
How did you get charge limiting option in your laptop.

Kindly request you to provide me with the details.
[Android Apps and Games] hgmichna:
Battery saving in laptops

I can contribute a fact about a Lenovo laptop, bought a couple of years ago.

It had an energy management tool made by lenovo that had this functionality to limit the battery charge level.

Unfortunately the tool has disappeared after a Windows 10 update.

Also this is off-topic here. We should not discuss this at length.
[Android Apps and Games] lalala9q:
I would like to thank the developer very much and am glad that there's some neat piece of software like this (:

Using this on my Galaxy S7 Edge without any problems since about two months, together with Accubattery pro app.

The control file to use is called batt_slate_mode.
[Android Apps and Games] :
Hey [MENTION=6898873]sriharshaarangi[/MENTION] and [MENTION=6929614]real_milux[/MENTION], been absolutely loving this app! I created a quick pull request on Github found here:

https://github.com/sriharshaarangi/BatteryChargeLimit/pull/66

that updates a lot of the icons and images, for example, I revamped the launcher icon, widget icons, notification icon, and the actionbar icons to all look a bit nicer and up-to-date! Please check it out and let me know what you think - I think the new icons will make this app feel that much better!

Great job and keep it up!
[Android Apps and Games] MezzaLuna:
Again, thank you very much.

I have found my way till I'll root mi device:

https://play.google.com/store/apps/details?id=com.battery.lifespan.extender

This app just alert me when the phone reaches 80% of battery, not as good as Battery Charge Limit, I'm just sharing my experience to help people that can't\wan't root.
[Android Apps and Games] VR25:
[MENTION=6898873]sriharshaarangi[/MENTION], assuming removing /data/system/batterystats.bin is obsolete, what mechanism/command(s)/workaround do you rely on for resetting battery stats? -- Thanks
[Android Apps and Games] post-mortem:
You need to use the dumpsys command, which requires root, and doesn't always work, as it depends on the particulars of the device (what ROM, OS version, etc.). You can also do it yourself manually by executing

dumpsys batterystats --reset​

in a shell (with root privileges, of course).
[Android Apps and Games] mochamoo:
It was moved to Lenovo companion app.

Sent from my Very Silver Pixel XL 128GB
[Android Apps and Games] Quimicax:
Working Perfect

Samsung J7 (2015) Nouget OS Thx
[Android Apps and Games] ithehappy:
Doesn't work either! Changed setting from default Nexus/Pixel on Marlin to Generic charging, still phone kept charging beyond the set limit. Screenshots to confirm.
[Android Apps and Games] rapspu:
Great app!

It woulb be better if you can set a time to start loading at.
[Android Apps and Games] :
Do me a favor and using a rooted explorer app, navigate to /sys/class/power_supply/battery and let me know the names of all files that have the word charging in them.
[Android Apps and Games] ithehappy:
That's all I could find.
[Android Apps and Games] :
Hm you got a lot more files than I do, it could be any one of them... Mine only worked on the generic option but the devs may need to add support for Marlin. I am getting a Pixel 2 xl for Christmas so I'm sure pixels are similar so I could help you debug.
[Android Apps and Games] :
Hey guys, I recently forked his project to a local branch and have been redesigning and fixing some minor issues I've seen... Earlier I redesigned all icons and now I'm playing around with everything personally. Feel free to check out my GitHub:

https://github.com/xdnax/BatteryChargeLimit/tree/local

And look at what I've done, especially in the Local branch. I've added dynamic notification icons and fixed text and refresh issues. Also made it a whole bunch nicer! Not sure where the devs have been (hopefully they are alright), but feel free to use my work as a base or if the devs allow me, I could release unofficial apks to help others with support as well.
[Android Apps and Games] TR2N:
Looks very nice. Where to obtain?
[Android Apps and Games] pabloluih:
I have found that in my Jelly Smartphone (https://www.xda-developers.com/jelly-is-a-2-45-smartphone-that-runs-android-nougat/) the file which is changing while on AC charger is this: "/sys/class/power_suply/ac/online" charging if 1 and discharging if 0.

There is any chance that this device would be included to your supported list?

Thanks in advance.
[Android Apps and Games] LeonHart23:
Ehy guys I fixed the not resetting issue on my oneplus 3t (7.1.1) with this command

dumpsys batterystats --reset

using Tasker, of course u must give root access.
[Android Apps and Games] funm@sterz:
Guys please tell me me what's this reset battery stats options? And when should we use it?
[Android Apps and Games] RedSkull23:
This has been asked endless times. Please, use search.
[Android Apps and Games] funm@sterz:
Okay.. I'll do that. Thank you
[Android Apps and Games] Ace42:
The feature is present on certain Lenovo models, such as the Y50-70 (and its successors). Other companies might offer it too, but it's a pretty rare option on laptops.
[Android Apps and Games] webbrowser:
I have a Pixel 2 XL, and the relevant files in /sys/class/power_supply/battery are:

taimen:/sys/class/power_supply/battery # ls
capacity die_health step_charging_step
charge_counter dp_dm subsystem
charge_disable health system_temp_level
charge_done input_current_limited technology
charge_full input_suspend temp
charge_type parallel_disable type
charger_temp power uevent
charger_temp_max present voltage_max
constant_charge_current_max rerun_aicl voltage_now
current_now set_ship_mode voltage_qnovo
current_qnovo status
device step_charging_enabled

Setting charge_disable to 1 doesn't seem to stop charging.

Setting input_suspend to 1 does seem to stop charging. Yay! I now have 3 questions:

1. After setting input_suspend to 1, current_now seems to go from something like -1000000 (i.e. battery is charging) to 252082 (i.e. battery is discharging). Is this the correct behaviour?

2. Is it possible for the power consumption to be taken from the charger without actually charging the battery?

3. I spend a lot of the day with my phone tethered acting as a hotspot with unmetered data for my laptop, so the battery would drain very quickly if the phone was not plugged in. Would it actually be better to use Battery Charge Limit to limit charge to 80% but have it charge/discharge between 77%-80% all day? Or to leave it plugged in all day with power consumption taken from the charger but with the battery being pegged at 100% constantly?