yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] realista87:
+1
[Android Apps and Games] backslashV:
I don't get why it still allows charging when my phone is at 98% with these settings "Limit charging to 40%" and "Recharge below 5%".
[Android Apps and Games] :
V1.2.0 Release is here bringing user-configurable CTRL. File data! After a lot of beta testing, the initial support for users being able to define their own CTRL. File data is here. Again, this does not guarantee or promise all devices are supported and all devices will work 100% as hoped. I will not be providing bug reports on a per-user basis because there may be a million reasons why something does not work.

Check out my GitHub for a full changelog and the new APK: https://github.com/xdnax/BatteryChargeLimit/tree/local
[Android Apps and Games] luigi0824:
already working now on Xperia S! Thanks!
[Android Apps and Games] sathish D saligrama:
Amazing..!!!!

Thank you so much... XdA team
[Android Apps and Games] bhatshravan:
Thanks

Was looking for an app like this!
[Android Apps and Games] testest2:
Great App :good:! 1.2.0 working fine on my Galaxy Note Pro 12.2

As far as I understand the main difference between a laptop and a phone / tablet using the battery is - the laptop runs if I take out the battery and only power supply attached - phones / tablets do not?

So laptops are able to disconnect the battery. I can see that on my notebook - it ts set to load battery to just 80% if it's below 50% - this unloading needs

weeks

since battery seems to only self-unload (no device connected?). Nevertheless the battery is instantly active in case the power supply is plugged out. This is what I would wish for a tablet ;)

Battery Charge Limit app is set per

default

to 80% stop charging and around 77% start charging. With this setting there would be a short MINI charging every few minutes or so. Is this intention / tested as best? Experiences?

Thank you in advance and sorry that I did not read the entire thread.
[Android Apps and Games] woody1:
This app is not working for me on my Pixel XL, rooted, Android 8.1.. It ignores the settings and charges to 100%. I saw posts from other people with the same device saying that it wasn't working fom them, either. Some people said that they reverted to an earlier version, but that version had other issues. Has anybody had success with a Pixel XL?
[Android Apps and Games] OPOt585:
Unfortunately when it reaches the set percentage the screen turns on and never turns off, plus it doesn't stop charging.

Oneplus one, sultanxda rom 7.1.2, sultanxda kernel

Do I have to try one of the special options?
[Android Apps and Games] post-mortem:
It's really not a big deal, and doesn't affect battery lifespan or capacity very much at all. It may be an issue if it happens at high voltage (cycling between 97%-100%), leaving the battery at full charge all the time, or exposing the battery to high temperatures (including during charge/discharge).
[Android Apps and Games] Unreasonable_User:
The last version that works with my XL is 0.8.2. I have also tried the Magic Charging Switch Magisk module to no avail.

The xdnax branch hasn't worked thus far but I haven't had the chance to try their 1.2 release yet.

If you figure it out, let us other XL users know.
[Android Apps and Games] woody1:
So, is there anybody who has this working with a Pixel or Pixel XL? If so, please tell us how you have yours set up.
[Android Apps and Games] :
What control file are you using on 0.8.2 that works? I'm considering adding additional support
[Android Apps and Games] Unreasonable_User:
I'm using battery_charging_enabled with 0.8.2.

I had a chance to try your 1.2. It didn't work, but did confuse me.

With both 0.8.2 and 1.2 I observed battery_charging_enabled updating to 1 or 0 properly but the limit was only observed by 0.8.2. I was monitoring the file inside /sys/class/power_supply/battery.

There are other battery_charging_enabled files deeper inside a seemingly infinite set of 'power', 'device', and 'subsystem' folders but due to their infinite-ness, I stuck with the one in the main directory.
[Android Apps and Games] smartgirl:
LG V20 funny behavior

Hi and thanks for your app, works wonders in my LG G4 and Samsung S4! :good:

In my V20 though it's another story. Both control files 'battery_charging_enabled' and 'charging_enabled' are present in the /sys folder. The device is a H990 and runs the D.O.T.S. Kernel.

When the phone reaches the set limit, the app disconnects the charger and successfully echoes 0 on the control file. However, when the battery level drops below the threshold, charging would not resume. The app also seem to crash, disappearing from the taskbar.

Echoed '1' manually and does not help. Only way to resume the charging process is rebooting the phone. Also sometimes when the phone enters in this state and get rebooted, goes in kernel panic.

I am still investigating on why this phone doesn't resume the charging process once the control file is echoed '0'. Anybody has observed the same behaviour with the same combination device/kernel?
[Android Apps and Games] :
So using the same config file and values, v0.8.2 worked and my version or the v1.0.5 official does not?

In my next release, I added better pixel 2 support
[Android Apps and Games] :
V1.2.1 release is here with a few bug fixes, better Pixel 2 support and an adaptive icon for the launcher! Also, colors have been reverted to the stock app to keep it more mainstream. For more information and downloads, check out https://github.com/xdnax/BatteryChargeLimit/tree/local. Enjoy!
[Android Apps and Games] dsjd:
Could you pls look into the automatic reset battery stats..it works if I manually press the reset button..but not automatically.

Edit: I have a oneplus 5t
[Android Apps and Games] :
Possibly. On all my devices it works just fine so I'm not 100% sure how'd I'd solve that. If you know a superuser command that works, I'll add it in, but...
[Android Apps and Games] dsjd:
Thanks for the reply..This app resets the stats automatically https://github.com/P1xelfehler/BatteryWarner ...Im not sure how to pull the code from here.
[Android Apps and Games] :
It works correctly?
[Android Apps and Games] dsjd:
yes its able to automatically reset battery stats.
[Android Apps and Games] gonzo1963:
Good afternoon,

I can not find the download link.

Can you put it here?, thanks.

Regards

Enviado desde mi Aquaris X5 Plus mediante Tapatalk
[Android Apps and Games] :
It's on the READ.ME of the main page of the link above.

---------- Post added at 07:34 PM ---------- Previous post was at 07:13 PM ----------

Very weird, seems code for this is very very similar. Can you get me a log of when you try to reset your battery stats using my version of the app? Start a log, press reset stats, and then end log and send it please
[Android Apps and Games] Unreasonable_User:
That is correct. A couple of other users and I noted this back in October page 114 but nothing came of it.
[Android Apps and Games] :
V1.2.1 of my build should provide better pixel support, at least for the pixel 2 since I can test it
[Android Apps and Games] Unreasonable_User:
I saw the update, no improvement for the original xl unfortunately. It'd be cool if you figured it out, but if not, whatevs, 0.8.2 is still good. Thanks for being so responsive regardless.
[Android Apps and Games] :
Please post screenshots of your /sys/class/power_supply/battery/ folder so I can look at your files
[Android Apps and Games] Unreasonable_User:
This is with 0.8.2 installed and immediately after a reboot.
[Android Apps and Games] :
I will see if I can add some additional experimental support in my next release. But feel free to use the custom Ctrl file data and Target files that look like they control the charging. Usually when you open the file you want, the value it shows, say a 1, is charging enabled and then 0 would be disabled.
[Android Apps and Games] dsjd:
Once my phone is done charging to the limit and I click disable app from the notification shade then it resets the stats..also if I do from within the app it resets..it only doesn't happen automatically.

Is there anyway for you to add an option so that the disable app button be automatically pressed once charging is done?

Let me know under what circumstances should I run the log.
[Android Apps and Games] :
Great News! It seems like [MENTION=6898873]sriharshaarangi[/MENTION] liked my fork so much that he wanted me to merge in the main changes I made and to continue development in the main branch from now on! This means there will be more official builds, with all 3 devs focusing on the official app. So I need testers to download a beta of the main changes and test everything was merged right. Thanks again and look forward to more official builds and checkout GitHub for all changes: https://github.com/sriharshaarangi/BatteryChargeLimit! :)
[Android Apps and Games] nexus_vl:
v1.0.4 worked fine on every nougat rom I tried till I switch to Oreo.

But now v1.0.5 works as should on Oreo to.

Thanks for maintaining the app and all your hard work! :good:

I'm on NOS 8.1 rom, OP3
[Android Apps and Games] sriharshaarangi:
Pixel/Pixel XL

Can you try the charger_control file(as suggested by [MENTION=4141782]HikingMoose[/MENTION]) in this version and report back?
[Android Apps and Games] bombername:
Good work so far.

My device is a HTC10.

And the standard settings doesn't let my device stop charging.

I have no clue where I can find it manually.

Thanks in advance for any help=)
[Android Apps and Games] sriharshaarangi:
Click on settings button, and select "Set Control File" option. If there are multiple files on your device, try a file different from the default one, and see if it works.

You can find the latest apk(containing updated control file) one post above.
[Android Apps and Games] aamadorj:
BCL 1.0.5 debug versions are working fine with my Essential PH-1, using the input suspend control file.
[Android Apps and Games] bam80:
Hi,

thanks [MENTION=6898873]sriharshaarangi[/MENTION] and all Devs for the great project!

Could you please publish your work on F-Droid, Aptoid, XDA Labs or any other App store maybe? I'm very missing auto-update capability..

Other than that, it would improve popularity of your app.

Thanks
[Android Apps and Games] guest4711:
Did you notice the entry @ f-droid: Battery Charge Limit (Stops charging at a desired level) - https://f-droid.org/app/com.slash.batterychargelimit ?
[Android Apps and Games] bam80:
Oops, I didn't. :o But I also didn't notice that in the OP message. And I bet I'm not alone ;)

Thanks anyway!:good:
[Android Apps and Games] bombername:
Thanks, did try all possible options. No one worked.

Any other idea?
[Android Apps and Games] Weetbix:
Works like a charm on my Nexus 6P (ABC rom, Android 8.1, magisk) :good:

Thanks
[Android Apps and Games] Unreasonable_User:
This worked perfectly. Automatically reset battery stats is good too. Thanks [MENTION=6898873]sriharshaarangi[/MENTION] and [MENTION=6280728]xdnax[/MENTION].
[Android Apps and Games] cristobalite1983:
Hi. Great work. I am using Samsung galaxy note 2 nougat custom rom. Which new version can I download? I use v1.04 and it works well for m. Thought I can upgrade but don't know which one. Thanks a bunch.
[Android Apps and Games] :
New official update with more clarity coming soon.
[Android Apps and Games] Droid_JD:
Which file did you use? I don't see charging_control in the list.

Thanks
[Android Apps and Games] :
You may have to enter the information yourself in the custom Ctrl file section of my fork.
[Android Apps and Games] Unreasonable_User:
1.0.5-debug-apk linked by both [MENTION=6280728]xdnax[/MENTION] and [MENTION=6898873]sriharshaarangi[/MENTION] on page 148.

ETA: charger_control as the control file
[Android Apps and Games] Droid_JD:
Ahhh. Thank you, that is what I was looking for. (I was going crazy looking for a control file that didn't exist)
[Android Apps and Games] hansxl:
I installed version 1.2.1 and it works wonderful.

I can plug-in the charge cable in all situations and it will charge until 80% and then float between 78% - 80% :svetius:
[Android Apps and Games] mochamoo:
Working fine so far using charger_control (experimental) in the list. Labeled pixel/htc one m7. Version 1..0.5 (21). See post #1480.

Sent from my Very Silver Pixel XL 128GB
[Android Apps and Games] mgehlhaar:
I tried to use the old version 0.8.2 but it has the same behavior as the newest version with my Pixel 1 on Android 8.1

Both version are loading all up to 100% and dont reset the battery stats automatically.
[Android Apps and Games] mgehlhaar:
Great news! I tested the new version with my Pixel 1 on Android 8.1 and so far it looks like it is working now! I will report back later.
[Android Apps and Games] RedSkull23:
I just read the nice notice about the welcome to the third developer working on this app and after had tried his fork, I'm really happy to read that. I was on his version and it worked great being based on official BCL, plus the design was captivating, so reading about his joining to your team of development is indeed a good thing :) just installed the new 1.1.0 version, and noticed that a function that notifies once the choose charging level has been reached has been added. Nice, gonna test it later this evening!

I take the chance to expose, in way to being useful, a little graphic design "issue" (and the only one ever saw) encountered on my Honor 6X. It is visible in the screenshot attached, i know perfectly that it'll be fixed while time will passes by, so keep up the good work guys and thanks for this great, useful app.
[Android Apps and Games] zecabra:
small cosmetic bug, resolution full hd, language Portuguese
[Android Apps and Games] :
I appreciate all the kind words! I'm glad so many people liked my work and like the app! Much more development coming!

To both of you, these issues will be looked at. Thanks!
[Android Apps and Games] zpower:
Hello,

Great app!

I've a Bq X5 Plus and when i select control file shows 3 options.

What's is the most adequate for my phone?

1 battery_charging_enable

2 charging_enable

3 Status

I've a request too.

Can you make a option to force english in app? I don't like to see in Portuguese.
[Android Apps and Games] bombername:
Dudes....it seems to work!

Happiness!?

HTC10 Nougat 7.0

Charger_controle / Htc one
[Android Apps and Games] der_Kief:
battery_charging_enable is working fine on my X5 Plus (at least it did with v1.0.4)

for me ... language is german
[Android Apps and Games] Droid_JD:
Pixel XL here. Is yours discharging properly?

By the way, great app! It's refreshing to see this amount of teamwork and cooperation.
[Android Apps and Games] Berta Paneslowski:
Hi Guys,

With 1.0.5 on my oneplus 5 with Oreo (oos 5.0.1) this App doesent work correctly. Either it doesnt charge when i plug in the USB cable or it charge at completly full.

What can i do? With Nougat the app runs perfectly.
[Android Apps and Games] sriharshaarangi:
Try the latest version(with 1.1.0) with 'charging_enabled' file in the settings.
[Android Apps and Games] Berta Paneslowski:
It seems to work. I will watch it.

Thank you!

Edit: it does not work. I am on 66%, plug in my mobile charger and it only charge when disable battery charge limit.
[Android Apps and Games] cattolicboy:
I'm using this indispensable app from the very first release on all my devices, but on the xiaomi mi 6 it cannot manage to auto reset the stats when disconnecting the cable ...any tips?
[Android Apps and Games] godzulu:
On Pixel 2 XL... Charging works properly. Thank you... The notification remains present even after unplugging phone. Have to disable to make it go away. Is that a bug or a feature :) thanks all

Sent from my Pixel 2 XL
[Android Apps and Games] sriharshaarangi:
First ever release on the Google Play Store!! You can find it here
[Android Apps and Games] slgooding:
Same. Also, I have to manually run it. It does not autostart when I plug in to charge.
[Android Apps and Games] :
Yes, without talking all specific and in paragraphs, once the app turns charging off, the phone nor app can physically detect (at least through code and APIs) whether there is physically a charger plugged in. So when the app disables charging and you pull the charger out, the phone cannot detect that.... So in short, it is not a big, just have to turn off the service to get rid of the notification.

You have to run what manually to start it? The service toggle in the app?
[Android Apps and Games] amplatfus:
Hi,

Congratulation for being now on Play Store too..

I discovered that when is enabled while charging, the notification appears but nothing happens when I click on it. Please, this is how is designed?

I disable and uninstalled the older 1.0.5 and fresh install the one from Play Store on OP2, 7.1.2 Lineage, Franko Kernel.

Congrats again and Happy New Year!
[Android Apps and Games] :
I'm confused as to what you are talking about. If you are charging your device below the max limit and you want to stop charging it, take out the charger?
[Android Apps and Games] amplatfus:
disable and open app from notification bar

Thanks for reply. Sorry for not being clear.

I put the phone on charging while I am below the threshold and when I click on this notification nothing happens..

PS: I discovered that I had a few other notifications and the buttons (Disable and Open App) were hidden so I was unable to open the app using notification.

So my issue is solved. Thanks for fast support and all developers for this amazing app.

All the best!
[Android Apps and Games] mgehlhaar:
I'm on the first battery cycle. Charged up to 80% and after a day of usage the battery is at 20%. Everything looks fine.
[Android Apps and Games] RedSkull23:
How does the notification on limit reached exactly works? I tested today and i found not notification, nor sounds noticing the limit has been reached.
[Android Apps and Games] :
I believe it just makes the sound
[Android Apps and Games] RedSkull23:
As i thought... But damn, i was just one meter from the phone and i heard nothing. I'll do another test tomorrow, if i shouldn't hear it again, I'll take a logcat.
[Android Apps and Games] comfortable:
Lenovo TB3-710F

Battery Charge Limit 1.1.0 (22)

Android 5.0.1

"enable battery charge limit" turned on (blue).

Other settings at default.

Battery Charge Limit allowed charging from 76% past 80% on this device. Is there something else I could try to make it work?
[Android Apps and Games] Redhawk2000:
Just moved from the 1.0.4 to the play store version. Any way to change the notification shade text color? It was fine on 1.0.4.

Edit - Oddly, after going back to 1.0.4 it is black text instead of white, just like the new version instead of like it used to be. Hmmm.
[Android Apps and Games] :
Did you try to reboot?
[Android Apps and Games] Redhawk2000:
Kind of. I first tried re-doing my substratum theme which gave me an error. On reboot I'm stuck in a bootloop but the rescue zip that used to always be in the substratum folder is not there so I'm working on that now lol.
[Android Apps and Games] Berta Paneslowski:
It definitly doesnt work with oneplus 5 with oxygenOS 5.0.1.

Latest version from Play Store.
[Android Apps and Games] :
Please open an issue on GitHub if you haven't already
[Android Apps and Games] Squabl:
I have Oneplus 5t, and Oreo open beta 1, and the Play store version as all the others work just fine. Have you tested with a different control file or maybe creating a custom one if none of the predefined works?
[Android Apps and Games] Berta Paneslowski:
No. I only used the charging_enabled. With Nougat it runs fine.
[Android Apps and Games] sriharshaarangi:
The notification sound was broken in 1.1.0. It has been fixed, and will be available in next version
[Android Apps and Games] RedSkull23:
Great man, looking forward for the update.
[Android Apps and Games] wkobaint:
Good job bro!!

Anyway, there is any tricks to change the set control for unsupported devices?
[Android Apps and Games] :
Sure! Head into to settings and check the switch to use custom control data... Then an option should unlock and you'll be able to set your own file and values. Be careful, but he is where you can test for unsupported devices!
[Android Apps and Games] Berta Paneslowski:
Are you using a custom one? Or the standard one?

Gesendet von meinem ONEPLUS A5000 mit Tapatalk
[Android Apps and Games] wkobaint:
Sorry, I can't find menu for custom inside set control file option.

I can choose "charging enable" only.
[Android Apps and Games] :
Update to the latest apk from the Play Store, navigate to settings, enable custom Ctrl data, and use the section Configure CTRL data to achieve this.
[Android Apps and Games] arses:
This great app works on my HTC U11 flawlessly but doesn't work on my HTC ONE M8.

Do you have any idea?

Thanks
[Android Apps and Games] ziam:
Hi. This App not work on my device:

When we select 75% for stopping charge process, then device can full charge to 100%

Please help with support

Log file and init files from ram disk attached
[Android Apps and Games] cristobalite1983:
I can't see the app on play store.
[Android Apps and Games] stankyou:
Found this app late in the life of my Nexus6P's battery. Good to know it works on my 5T.
[Android Apps and Games] Squabl:
I'm using the default.
[Android Apps and Games] zpower:
https://play.google.com/store/apps/details?id=com.slash.batterychargelimit

---------- Post added at 10:02 PM ---------- Previous post was at 10:01 PM ----------

Stupid question but you have enabled the service?
[Android Apps and Games] Tushar1:
I really want the charge complete alert function... Can you give us an estimated time for the next update or if you can suggest a quick fix? I didn't find the notification sound in the apk with a zip viewer.

Edit: Thank you for the great app ?
[Android Apps and Games] ziam:
Yes, of course.

I have two android devices Prestigio: PSP7530DUO and PSP5551DUO

In both devices we succesfully enabled service, but charging not stopped.

I am check internal files and found:

file: "/sys/class/power_supply/battery/status",

When conected charger: "Charging",

When disconnected charger: "Not charging",

I am not sure how use this information, but in "control_files.json" saw similarly info
[Android Apps and Games] wkobaint:
Okay thanks for the information.

Anyway, any guideline to set up the manual methods?
[Android Apps and Games] SchWeinSAuG:
Oneplus 5, with no limit rom oos5.0 (9.1a)

Latest app version

Tried all 3 control files.. No luck...

Anybody got it working?

Version 1.04 worked.
[Android Apps and Games] vieose:
Is there a Way to compile that Settings into an Kernel? It could be so much more Handy to see such a Innovation.
[Android Apps and Games] guest4711:
Yes, it is. My maguro running DirtyUnicorn has such settings available. These can be adjusted using KernelAdiutor.
[Android Apps and Games] TR2N:
Hi guys,

I headed to the Playstore version of the app. I noticed that there are only three configuration settings I can choose from. Where is the rest of the settings? Is this a bug?
[Android Apps and Games] :
Nope, not a bug! Only control files found on your device are displayed in the list... You wouldn't be able to choose most of the control files anyways before, they we're disabled.
[Android Apps and Games] Devildire:
Works for me on OnePlus 5 OOS 5.0.1.
[Android Apps and Games] dsjd:
Does the battery stats get automatically reseted?
[Android Apps and Games] Devildire:
That option I did not test, because I find it less important tbh. Key functionality works though which is what I care for.
[Android Apps and Games] Berta Paneslowski:
It seems that sometimes it works and sometimes not. Yesterday evening battery was at 28%, i put in cable and nothing happen. I disable battery charge limit and then charging begin. Then i enable it and charging continues.

Strange.
[Android Apps and Games] nimdanus:
On Nexus 5 with lineageOS 14.1 nightly 10.01.2018 works after adding write permissions to charging_enabled:

hammerhead:/ # chmod 644 /sys/class/power_supply/ac/charging_enabled

hammerhead:/ # uname -a

Linux localhost 3.4.0-gb87fdd2 #1 SMP PREEMPT Wed Jan 10 09:06:11 CET 2018 armv7l