yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] RedSkull23:
Yeah of course man, and obviously that wasn't my case since that the first thing that i made as i installed BCL was whitelist it from battery optimization settings and services like Greenify hibernation to avoid any type of interference. Anyway i did a try yesterday night when i charged the phone, activating the debug usb option just before plugging my phone under charge, and I've noticed that with version 1.0.1 the issue didn't appeared again. I'll repeat this test other 2 or 3 times to control if it happens only sometimes, or if as I hope it is definitely gone. I've noticed that the Huawei battery file isn't in experimental phase anymore since the update
[Android Apps and Games] jylong_away:
Firstly, awesome app! Only just came across it recently, and hope it will extend the battery life of my new S5 for a while to come.

I'm running Stock Marshmallow, and have found that the 'storage_mode' control file works, but only once per phone reset. After an initial charge to whatever % I select, the phone will stop at that amount as intended. However, if I try and charge it again after the battery has drained (eg. To 15%), the battery will charge, but only to 35%. The 'store_mode' file value also stays changed to '1' , even after manual toggling of the Battery Limiter switch.

Is this something innate to Samsung? Or can the software be programmed to force the 'store_mode' file back to 0?
[Android Apps and Games] RedSkull23:
Happy to confirm that with version 1.0.1, the auto disable of BCL issue while the usb debug is activated on my Honor 6X doesn't shows up anymore. Tested 4 times and all of 4 it always worked as it should.
[Android Apps and Games] Muhajaya:
Thats work in xiaomi redmi 4x santoni ! Cool !
[Android Apps and Games] sysentgames:
battery charge limit

Do you really have to root the phone to use this?
[Android Apps and Games] yakov116:
Nope just for fake
[Android Apps and Games] :
I fake rooted my phone and I can confirm that the app works ?
[Android Apps and Games] HikingMoose:
I'm not sure if it's been discussed, but I don't think so because I searched the thread, but would anyone be interested in a audible notification for when your designated charge is reached? I think it would be very handy, but either way, this is one of my favorite and most useful apps I've had since finding it last January! Thanks for the work!
[Android Apps and Games] RedSkull23:
+1, it'd be really useful!
[Android Apps and Games] Hawaiihemd:
I can confirm this behaviour 100% on my SM-G900F (GS5 intl.).

When it comes to commands I'm quite the novice, so bear with me as I did a little trial and error.

When I reboot the device, the store mode file contains a "0" as expected. I can then write a "1" in it from a root shell via echo cmd. When I then try to write a "0" in again, there is no error but as the cat cmd shows, the file then still contains a "1" (see attachment, sorry my terminal app shot the display there).

So it seems I can only write to the file once or something is overwriting it again. I have no clue.

Also I noticed that the mount cmd the app uses gives back the cmd help for "mount" (see attachment). So to me there seems something going wrong there.

I also noticed that the "/sys/class/power_supply/battery" folder on my device is actually not a folder but a link that points to /sys/devices/battery.97/power_supply/battery". Maybe that has something to do with things. As I said, I'm a noob, so no idea...
[Android Apps and Games] :
Does anyone else have an issue where, if the limit is disabled and your reboot your phone, the "waiting until <percent>" notification is shown and doesn't go away until you toggle the limit back on and off?
[Android Apps and Games] atarek:
Note3 n9005

Phantom kernel 1.2n-dev

Magma nxteam 9.5 ROM

Magisk 13.3

+1

Regards,

Ahmed
[Android Apps and Games] Death I:
v1.0.1 no longer limits charge, also crashes sometimes, reverting back to v0.11.0.

Running Android 7.1.2 on Google Pixel
[Android Apps and Games] dsjd:
Great app! One small issue.. I'm using this app on my oneplus 5 and the battery stats do not reset when it's done charging to the limit... Is there anything I can try?
[Android Apps and Games] Redhawk2000:
Not sure about your phone but I had the same issue with my LeEco pro 3 and switching from the generic profile to the nexus profile fixed it.
[Android Apps and Games] Donric13:
Hmmm. Actual version doesn't work on my pixel xl with screwd rom and magisk 13.3.... Charging doesn't stop after reaching limit. Did work on pn rom with magisk 12. So i don't know if it's rom related or magisk.... Gonna try an older version.
[Android Apps and Games] Death I:
Try v0.11, I'm having trouble with v1 on my Pixel, completely disregards limit. v0.11 overshoots by several % but does stop... v0.5 I think was said to work well as well.
[Android Apps and Games] Gregbol:
Hello

What are the implications.

For my part the software does not work correctly since the update of phantom kernel n and o

Thank you

Envoyé de mon SM-N930F en utilisant Tapatalk

---------- Post added at 12:43 AM ---------- Previous post was at 12:38 AM ----------

Hello

How do I get version 0.5

thank you

Envoyé de mon SM-N930F en utilisant Tapatalk
[Android Apps and Games] Gregbol:
I found the version 0.5 and it works thanks.[emoji3]

Envoyé de mon SM-N930F en utilisant Tapatalk
[Android Apps and Games] Donric13:
Thanks. This is what i was also thinking. 0.11 is working fine on my pixel (tested it this night).
[Android Apps and Games] Redhawk2000:
This app works great for me but I'm curious about something I've noticed at least twice. I have my upper limit set to 70 and lower to 65. Usually when charging and it reaches 70 then charging stops and the percentage goes down. Duh. This morning, though, I picked up the phone and it is plugged in and not charging but despite using it for the past few hours it has not decreased from 70. Ampere shows that is is plugged in and discharging. Has anyone else noted this? I prefer it this way, honestly, as long as it is not hard on the battery for some reason.
[Android Apps and Games] hgmichna:
Running from charger

Perhaps your phone is one that can run directly from the charger, leaving the battery charged. This is not bad. The app cannot make most phones do this.

There may be some other explanations, but still nothing to worry about.
[Android Apps and Games] Redhawk2000:
I figured. Weird though that I've used it for weeks and have only seen it happen twice I think.
[Android Apps and Games] onolox:
Incredible man, I'm looking for this kind of thing for years.

I had tried to donate, but Paypal says that Indian users cannot receive money. Any ideas?
[Android Apps and Games] naifaharsy:
Can U explained fake root?thanks..
[Android Apps and Games] hgmichna:
Donations

Bitcoin.
[Android Apps and Games] zer0xploit:
This app is perfect now!! =) thx for the continous development!
[Android Apps and Games] political_heretic:
Doesn't play well with SuperSU.

I think your app needs to declare ACCESS_SUPERUSER permission.

If enforce permissions,
[Android Apps and Games] Redhawk2000:
This post is not asking for "help" but just to provide information. Any or no comments is fine but the situation stimulated my curiosity.

I have a LeEco Pro 3 running AICP 7.1.2. I've been using this app for weeks since I found it. I am able to choose to use either the "generic" profile or the "nexus/pixel" profile.

At first I used the generic profile believing it would be the correct one to use as I don't have a nexus or a pixel. That profile works ok with regards to charging. It charges to my preset % and then cuts off and returns to a discharging state until it should charge again. The only "bug" with this profile on my phone is that when I unplug the cord the notification stays alive until the battery % drops to 65 (my charging threshold) then it disappears. Also, the app doesn't reset the battery stats even when intended.

I tried switching to the nexus/pixel profile and it works "better" in that the notification disappears immediately once unplugged and it does reset the battery stats. There are a few other differences, though. When using this profile and my phone hits the charging maximum %, it changes to a discharging state though the percentage (and voltage) don't decrease when remaining plugged it. Several posts back it was pointed out to me that this is not a bad thing.

The curious thing (and really the reason for this post), though, is that when using this nexus/pixel charging profile once I unplug the battery and it is supposedly discharging, it takes a significant amount of time for the battery % or even the voltage to begin to drop. Yesterday I took my phone off the charger and went running. Despite having the screen on the whole time and using bluetooth and gps mapping it took about half an hour before the battery % dropped by 1%. Then it resumed its "normal" rate of drop. When I use the generic charging profile, it will drop by 1% within several minutes, which makes sense as the charging stopped right as it reached that level.

I'm curious as to whether the nexus/pixel profile, perhaps just on my phone/rom setup is actually charging higher than the intended charging limit but somehow not displaying that. I can't otherwise reconcile how it would last so long with significant use prior to losing just 1% of the battery. The other interesting difference between these two profiles is that when I charge to 70%, my limit, with the generic profile both this app and Ampere say my voltage is ~4.2 whereas when I use the nexus/pixel profile they both say ~4.0. Oddly, this is the opposite of what I would expect if in fact the nexus/pixel profile was "secretly" charging past 70%.

Again, I don't really need an answer. This was just something I noticed while playing around. I'm not sure which profile I will stick with. I think the generic profile functioning with the battery makes more sense to me but then I have to manually reset the battery stats (unless I can find another way to automate it).
[Android Apps and Games] Gregbol:
Hello.

Works with this kernel phantom 1.2m

I think I have the same problem.

https://mega.nz/#!GgJkQSzJ!0kZfgDDEQ_Lkl14VN6vu8hXm0FGNHtjGAT-2etvlG-U

Read the subject before to see if it corresponds to your androphone me it is a note 3

https://xdaforums.com/galaxy-note-3/development/kernel-phantom-kernel-android-6-0-1-t3534297
[Android Apps and Games] panni:
On my oneplus-3t current open beta, 1.0.1 doesn't load and stays at a white screen. Using supersu current version.

0.11.0 works well.

Update: both had the problem. I had to re-grant the root access in supersu after manually removing it. Now both work fine.
[Android Apps and Games] gonzo1963:
New user, doubts.

Good Morning

First thanks for the app.

I have some doubts that I hope you clarify them to me.

-What sets "Recharge below"? What is it for? What is the recommended setting value?

-I currently have a 93% battery, and I have a permanent notification that tells me the settings of the application and the values of voltage and temperature of the battery, is this normal ?, Is there any way to avoid this notification?

Regards.
[Android Apps and Games] RedSkull23:
Recharge below stands for the limit that you'd like to set to let charge starts when your battery goes lower than that limit. For a better battery life, it is suggested to keep that to a maximum of 80%. With default parameters so (80%-78%) BCL will begins to charge when the battery will go under 78%, and will continue until it'll reach 80%.

For your second question, of course it is absolutely normal, the permanent notification shows statistics about voltage, ecc. while charging and will automatically disappear once you'll plug off your charger, but dunno if you can remove from BCL settings. But if you're an OS with Nougat or more, you could try to deactivate BCL notifications from internal settings of your phone.
[Android Apps and Games] d0x360:
App sometimes works...

I'm on a rooted pixel running ota android 7.1.2

I have the app set to 85% and about 65% of the time the app will work and stop charging at the set level but for some reason it will randomly just not work and my battery will hit 100%

Is there something I can do to fix this other than launching the app Everytime I'm about to plug in?

Thanks!
[Android Apps and Games] Gregbol:
Hello

What is the reset battery stats for the application?

If it does not work properly it may prevent the app from working.

If not, what's the point?

Thank you in advance.

Envoyé de mon SM-N930F en utilisant Tapatalk
[Android Apps and Games] HK.88:
I set the threshold to 80 and 60 on my Nexus 6 (Android 6) and it works and limits it to 80% but when I unplug and use the phone and let the battery drop below 60%, when I charge it again, it doesn't charge. I have to reboot the phone for it to work again. I'm using version 0.11.0 btw but it is the same for all of them. How do I make it work all the time?
[Android Apps and Games] Gregbol:
Idem note 3 phronesis v6 kernel phantom 1.2 n

Envoyé de mon SM-N930F en utilisant Tapatalk
[Android Apps and Games] ashesall:
I noticed this too on 4.4.4. Maybe the app failed to reset battery stats automatically, phone screen turned off for a long time, or the app was stopped because of low RAM.

Try turning on "Automatically reset battery stats". I seldom experience this full charge thing when I turn this option on.

OP, maybe battery stats should be automatically reset after reaching set battery charge limit?
[Android Apps and Games] dima-82:
Works great on the OnePlus 5 with rooted OxygenOS 4.5.5 (Android Nougat). My settings 77%-80%.

Still running v0.11.0. Will install the newest one now...

Edit: Tested version 1.0.1 a couple of days. No issues so far.
[Android Apps and Games] onolox:
Maybe if you make the app a system app it stops been killed.
[Android Apps and Games] warpi2:
Samsung A3 (SM-A320F) tested

First I really wants to send thanks to all people contributed to make this application available, it will probably increase lifetime of cellphones by a 10 fold!

Second, I have now tested version 1.0.1 of battery charge limit on my newly purchased Samsung A3 (SM-A320F) and it works! The two modes available and tested is described below.

1. store_mode

With this mode the phone charges up to 70% and then stops charging but continues to supply the phone will current so that the battery is not used. The strange thing is tho that it is fixed on 70% independent on what level I set in "Battery Charge Limit" application. But also, it seems that you need to reboot the phone to deactivate this charge limit at 70% so it seems to be a hard coded behavior of Samsung A3. Anyhow, I think this mode will give best longevity of Samsung A3 battery.

2. batt_slate_mode

With this mode, phone charges up to "limit charging to" value and then discharges to "recharge below" value. So this mode seems to be working as expected. But since battery keeps going between the two thresholds, I would assume this is consume the battery more than with the store_mode even tho this is fixed at 70%.
[Android Apps and Games] hgmichna:
Stress from charging-discharging cycles?

No problem there. Li-ion batteries can last for thousands of partial charge-discharge cycles.

What stresses and ages them is only high voltage. You should be fine in this mode, and it guarantees that you always have a sufficiently charged battery.
[Android Apps and Games] Redhawk2000:
But also high temperature and very low voltage as well, unless I misunderstand.
[Android Apps and Games] hgmichna:
Stress from charging-discharging cycles?

Yes, that is correct. However, the charging circuitry makes sure that very low voltage is never reached.

Normally a smartphone will shut down at 0% charge, which still means a voltage of some 3.3 V. If the shutdown logic fails, because the automatic battery calibration did not work very well, the charging circuitry will do a hard cutoff by simply disconnecting the battery from the phone. This is not ideal for the smartphone's storage modules, but it will protect the battery from a too low voltage.
[Android Apps and Games] post-mortem:
Doesn't work. I have the same problem as HK.88. I have disabled optimization, whitelisted in Greenify, and even converted the app to /system. I still wake up every day to 100%.
[Android Apps and Games] Mayex:
Please add support for Xiaomi mi6.

It should be same file structure as Mi5 but app says mi6 isn't supported :(
[Android Apps and Games] hgmichna:
New phone type

Test it and report!
[Android Apps and Games] Mayex:
App doesn't even open because it states Mi6 is not supported.
[Android Apps and Games] post-mortem:
I think he means to test it by manually editing the appropriate file, and reporting how charging behaves.
[Android Apps and Games] marbertshere:
Hey. Love the app. I tried 1.0.1 and keep getting a toast (randomly) that the service has been disabled. Version 0.11 works fine on my 6P.

Also what does that extra setting in 1.0.1 do? I don't remember what it's called cause I don't have that version installed anymore but I couldn't really understand it from the description.
[Android Apps and Games] makey404:
I'm trying it on my Galaxy Note 4 with LineageOS.

First time worked fine, but after disconnected, phone limits charge to 35% no matters what level I've set.

I tried changing control file but do the same.

I attach two screenshots. One of logcat connecting and disconnecting charger a couple of times and other one of app showing 'DISCHARGING' and level set at 85%. We can see battery on status bar at 35% with a ray meaning it's connected to charger.

Sorry for my English.

Enviado desde mi trltexx mediante Tapatalk
[Android Apps and Games] HK.88:
Mine works but as soon as I unplug the charger then it won't work again and I cant charge my phone at all. I have to manually edit the "charging_enabled" file to a value of "1" to make it work (even though it already shows 1) or I can just reboot the phone. It doesn't reset that thing.
[Android Apps and Games] gonzo1963:
Good afternoon,

I've detected a possible bug:

Sometimes when I disconnect the smartphone's charger, the notification of the app (the battery) remains active.

To deactivate it is necessary to open the app, turn it off and on again.

Smartphone: bq Aquaris X5Plus.

Android Version: 6.0.1

Regards.
[Android Apps and Games] jylong_away:
I have noticed the same problem with my S5 running Marshmallow. I looked at a few other files in the 'sys\class\power_supply\battery' folder, and came across a file labelled 'battery_capacity_max' which had the value '993' in it. This just happens to coincide with 35% of my battery capacity in mA (993mA). I wonder if this limit is triggered when the 'store_mode' control file is used? I've tried to change the value in the file, but am unable to, despite root.
[Android Apps and Games] Redhawk2000:
I don't know that it's a "bug" exactly. My phone (LeEco Pro 3) does that if I use the "generic" charging method but it doesn't if I use the nexus/pixel method. If there is another option available (not grayed out) for your phone you could try that. Otherwise, if yours is like mine, the notification does disappear once the charge drops below the set lower threshold.
[Android Apps and Games] post-mortem:
I forgot to mention that I also leave the app running in the foreground when I go to sleep, and the app is still running in the foreground when I wake up at 100%. So it's not the app itself which is being killed, but the service is somehow being disabled.
[Android Apps and Games] dima-82:
If I understood you correctly, its not a but.

You have an upper limit and a lower limit defined.

If you select the generic mode, the service stops charging, as soon the upper limit is reached.

The notification will stay as long the lower limit is not reached, even if you disconnect the phone.

If the lower limit is not reached and you connect the phone again, it will not start charging again.

You can call it hysteresis. And the notification is shown between the both thresholds and while charging.
[Android Apps and Games] Gregbol:
For my part it's pretty much that.

Or exactly.

N9005 EUR phronesis v6 phantom kernel 1.2 n,o and p
[Android Apps and Games] Mayex:
I found appropriate file which works for Mi6.

by editing this file

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

"label": "input_suspend",

"details": "Xiaomi Mi6",

"chargeOn": "0",

"chargeOff": "1",

Please add support for Mi6. I don't know how to use github to report that.

It works well. [MENTION=6898873]sriharshaarangi[/MENTION]
[Android Apps and Games] Midomad:
I can confirm this on my OP3T.
[Android Apps and Games] Gregbol:
Hello

In fact the phone remains without loading or unloading.

While neither the lower limit nor the upper limit is reached

Envoyé de mon SM-N930F en utilisant Tapatalk
[Android Apps and Games] Gibbothegreat:
Anyone had any luck with the Doogee running stock ROM?
[Android Apps and Games] d0x360:
The latest version of the app isn't working at all on the pixel XL. If I go back 2 versions I have no issues at all but the latest is letting the phone hit 100 % even with the app running in the foreground with the screen forced on (or off)

I've tried to pull a lot but it's empty when I use the provided filter. I don't know why it's empty, I've tripled checked everything, I've installed it twice now, multiple reboots etc but once I enter the filter there is just a blank screen and it's not paused it's running.
[Android Apps and Games] bluegizmo83:
[MENTION=6898873]sriharshaarangi[/MENTION]

I found the correct file to make this work on the Nvidia Shield Tablet (Android version 7.0 stock rooted OS) but im not sure how to use GitHub so I'm posting it here.

File location: /sys/devices/platform/7000c400.i2c/i2c-1/1-006b/charging_state

File has one line of text and only one word: "enabled" or "disabled"

Setting text to "enabled", which is the default text, allows charging, and setting it to "disabled" stops charging.

Took me almost two hours to find it lol. If you need any other info or a tester, just let me know!
[Android Apps and Games] amplatfus:
Hi. Thank so much for app.

Regarding Tasker, if someone can help me, how this app works with Tasker? I have searched and tried the profile shared here but I do not succed because my phone doesn't have wireless charging.

Thank you!
[Android Apps and Games] jerico123:
Hi in Nexus 6 with nitrogen is only general profile is selectable..I am unable to select any other profile ..is there anything I can do ?? Anyone please reply..
[Android Apps and Games] Death I:
Mode 2:

Big problem there, continuously cycling the battery like that will destroy it much faster than not using this app at all. Avoid the cycling mode at all costs!
[Android Apps and Games] post-mortem:
It's not as big of a deal as you think. Please read here: http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries

If you can't be bothered to read it, at least read this paragraph:
[Android Apps and Games] onkelpelle:
Version 1.0.1 (17) seems not to work on my rooted OP3 using dash charge. The app notification appears, but the phone keeps on charging.
[Android Apps and Games] jerico123:
Hi for nexus 6 ,can you share the script as the same problem with me also ..It stop charging after reaching the set limit but after that the device won't charge until a rebot..

Thanks in advance
[Android Apps and Games] -Holger-:
How did you find out? I have Nexus 9 Tablet (also with Nvidia K1, Lineage OS 14.1) but until now I couldn't find any "battery file"
[Android Apps and Games] phongle2017:
woa