yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] GarlicBreadFox:
I don't understand usage. If say I wanted to charge at 20% and only go up to 85%, what does into "Limit charging to" and what goes into "Recharge bellow".
[Android Apps and Games] reaverclan:
Limit (stop) charging at 85, resume charging at 20% when its below that amount.
[Android Apps and Games] GarlicBreadFox:
Thank you. I will configure the resume properly now then (previously 83%, will set it to 20%).

Do you know if this app works on Android 11 still? I had it configured 85% / 83%, left it charging (around 20%) and when I came back it was at 100%.
[Android Apps and Games] aamadorj:
I'm using this app with my PH-1 running an Android 11 based ROM and it works perfectly. I think what makes this app do its job is to be able to find the right control file and that it has the right permissions.
[Android Apps and Games] mystery007:
What"s the right file and permission please for Pixel 5?
[Android Apps and Games] aamadorj:
AFAIK, the right control file depends on the device and maybe also the ROM. You can search this thread for reports about the same device you have.

And the control file should be writable by root, for example, with 0644 permissions.
[Android Apps and Games] Alpha8080:
Hi,

This is a wonderful app. I'm using this on my other phone and it works flawlessly.

Recently I installed this on my note 7 pro running pe+ 11. From the get go with default settings. It works but something is odd. Even though the device stopped charging(charging symbol gone), I see with current meter and ampere app that it's still drawing about the same charging current (about 1500 mAh). Meaning the value stopped at 80% but it's still charging. Any solution to this?
[Android Apps and Games] jazic:
Not sure if people are still having issues with the Pixel 5 or not but ACC just randomly decided it no longer wanted to work for me so I looked back into Battery Charge Limit app and Tasker. I got it working probably better than ACC would ever work by doing the same thing but better?...

I created a tasker profile to enable and disable charge depending on charge limits and then set it to modify the file in the quote above after setting permissions to 0666. I also tested the file again in BCL app and it works there as well.

Only issue is it will cycle on and off very fast until either the phone gives up or the charger gives up and you're no longer charging. For BCL app it usually lasts around 10 seconds and Tasker usually does it in about 3 seconds but that was only once each I tested it.

It's confusing I know but it works for me so best of luck and hope it helps someone else out. Any questions just ping me.
[Android Apps and Games] MagikGab:
Hi! I own an OnePlus 8 device. As mentioned in OP, I'm using input_suspend control file. Everything works with no problems when I use a standard charger (e.g. Xiaomi charger). But whenever I use OnePlus Warp Charger, the app does not suspend the charge on 80% (as I set), but it goes on until 100%. Anyone knows why?
[Android Apps and Games] derei:
Is this app still being maintained, or is an abandoned project?

Should we look for a different one?
[Android Apps and Games] nostromo12:
It is not working with my Pixel 5. It seems nobody knows where the config file is located? I used Battery charge limit for years with my S7. Is there any other app working?
[Android Apps and Games] whitedavidp:
Anyone know the control and parameters for a Samsung Note 1 (GT-N7000) running Lineage/Night Owl? The standard one doesn't seem to work and while I have looked around and tried some other suspects, I am getting no where. Thanks for any tips you can offer.
[Android Apps and Games] T Ghost1:
Doesn't work on my Infinix Note 2 LTE.

Custom ROM; RESURRECTION REMIX 5.8.* based on Nougat 7.1.2.

Kernel; Stock Kernel (there's no custom kernel available for my device)
[Android Apps and Games] Donzi84:
What"s the right file system for Samsung Tab 4 8" Sm-t335?

It dowsn't work with the default file system I see.

Thnaks in advance.

Stefano
[Android Apps and Games] MhN_MjD:
How can i make a Tasker to toggle the widget provided by the battery charge limit app, I want to charge my device to 50% during night time and auto toggle the widget (to turn off the limit) before morning so that my phone will charge to 100 percentage only just before i wake up.
[Android Apps and Games] amn1987:
Charging to 100% defeats the very idea behind using BCL, isn't it?

If you know which charging files are used it should be possible to whip up a task in Tasker to achieve what you desire. In fact BCL can be removed as well as Tasker can handle it all.
[Android Apps and Games] Feenix0:
aLogCat is no longer available on the Play store, and the version on F-Droid hasn't been updated for 6 years. Can you suggest another log-capturing app?

Before I submit a bug, I want to make sure I just haven't missed something simple. I'm using a OnePlus 7t with Android 11. Usually charging works with the charge limiting app enabled, but sometimes when I get up in the morning the battery level is well below the lower limit. It doesn't start charging again if I unplug the charger and plug it in again. It does start charging if I turn off charge limiting in the app and turn it back on. I'm using the universal control file that was chosen by default.
[Android Apps and Games] pickmybear:
Hi, as to the Samsung's Store_Mode,

the max percentage of battery charging is hard coded in kernel,

this is already said in our xda deceloper UpInTheAir years ago.

And he made it adjustable in his kernel source code of Tab S2 in this link. (https://github.com/UpInTheAir/Samsu...mmit/2d3a085bde642706db602f7ed976e47930c62c09).

I personally own a Tab S2 with lineageos 16, thereby,

suddenly recall this clue and try to follow UpInTheAir's instruction,

build myself a "adjustable store_mode kernel".

IT JUST WORK !

now , my default is in Store_mode on, and just adjust the charging max to 90 percentage, works perfectly, actually , I can make any percentage I like in tasker even 95 percentage.

For Samsung user, you may try it and compile yourself a kernel.

it's not so difficult , just need some patience.

here is a instruction of how to compile a kernel from source for your reference.

Compile Kernel:

https://xdaforums.com/t/ultimate-gu...-your-own-android-kernel-from-source.2871276/

Packing Kernel for flashing:

[TOOL] Android Image Kitchen - Unpack/Repack Kernel Ramdisk [Win/Android/Linux/Mac]

Android Image Kitchen -- Unpack/Repack Kernel+Recovery Images, and Edit the ramdisk. Windows ports of the necessary Linux utils for Android image (kernel/recovery) mod work: mkbootimg, unpackbootimg: https://github.com/osm0sis/mkbootimg...

xdaforums.com

Good Luck.

BTW, My Pixel 4a's config file is "/sys/kernel/debug/google_charger/input_suspend"

I personal use magisk acc module to control my battery into Battery Idle mode by setting MAX Voltage to 4.2V, similiar to Samsung's Store_Mode, also work nicely,

If you have pixel phone, maybe can try and see.

Also GOOD LUCK to you.
[Android Apps and Games] ajjuee016:
Hello i am using pixel 5 android 11, someone please tell me which is the correct file for wired charging?
[Android Apps and Games] krlenjuska:
I tried to install this but i get blank screen when app is started. Any advice?
[Android Apps and Games] zenfone selfie:
tried this on zenfone selfie(z00t) using groovy nougat rom and didn't work. phone just keeps charging
[Android Apps and Games] I<Aow:
Works fine for my OP2 with LOS18.1 and Magisk.
[Android Apps and Games] sdkyron:
Well, i have an "issue"

Poco F3 with ArrowOS 11.

My settings are, low 30%, high 85% yet, it kept charging to 100% and now stays at 100%.

Am i missunderstanding how it's supposed to work ?

Even plugged, it should stop charging at 85% and let it go as low as 30% before charging again right ?
[Android Apps and Games] jazic:
I finally found the ability to 'pause' charging on the Pixel 5, 6 and maybe 6 Pro?

This work only with wireless charging but I'm sure the /dc/ folder for wired.

I use tasker to control the file:

/sys/class/power_supply/wireless/current_max

I did figure out how to have it always have the file set to rw with the profile itself by using "run shell" and enabling root:

chmod 0777 /sys/class/power_supply/wireless/current_max

Obviously you can set up a profile to control it with tasker but personally I have mine set to start charging full speed when the battery is 0 to 65% then start trickle charging half speed until it reaches 72%. Once it reaches 72% you can set the current level really low and it'll basically keep the charger cycling on and off at a very low input voltage so the battery will hang at whatever you set it at without dropping then charging back up all the time which imo is better than cycling power off at a certain level then charging back up.

I'm still experimenting with current levels but if you set it to higher than your charger can handle then it will just simply charge at max speed of your charger.

For trickle half speed charge I use: "500000" (500mA?)

For full speed charging I use: "2200000" (2200mA?)

For Battery Charge Limit I'm sure you can set the file to:

/sys/class/power_supply/wireless/current_max

Enable: 5000000

Disable: 1000

You will need to set the file as writeable maybe?

Any questions hit me up. Maybe it's another source to look for other phones.
[Android Apps and Games] AznImport88:
I used the following path that you suggested for my Pixel 6 Pro, but Instead of the 'wireless' pathway, I used 'USB', as I charge though a cable more often. The charging seems to stop at 75%, my suggest charge limit, however will not resume charging if the battery dips below my suggested "recharge below 65%" amount. In fact the only way to continue charging is to unplug and replug the charger into the phone. Thoughts?
[Android Apps and Games] jazic:
Are you familiar with Tasker at all? I personally couldn't get it to work perfectly with Battery Charge Limit... It does the same thing with wireless using the "max_current" file and also "online" which seems to toggle on and off vs adjusting current. Note: "Online" file will toggle it off but over time it will manage to trickle charge back up beyond your set level slowly.

That being said I just tested it a little with BCL and set the enable current to something high like 50000000 or something that and then I set the disable to 500. In advanced settings I enabled the last option (Always Write CTRL File) and left Enforce Charge Limit and Always Handle Power Events off.

As for it draining it should keep it always trickle charged to your set levels. Right now mine has reached it max limit I have it set to and it's toggling between "Charge" and "Not Charging" at 50mA. If I bump it up a few numbers it will go full speed charging (2150mA +/-) and if I drop it down to my set max it ill drop back down to 50mA.
[Android Apps and Games] AznImport88:
Thanks for this, I put in the parameters you suggested and it seemed to work at first, but then when it hit the max battery % limit, the phone would sporadically switch between 'Charging' and "Discharge" and wouldn't stop.

i have since switched over to Advanced Charging Controller(ACC) through Magisk and I'm using the application , Advanced Charging Controller App, developed for ACC to limit my charge. I can say that its so far so good!
[Android Apps and Games] jazic:
Awesome! Never knew there was a GUI for ACC.

Did you use the files I suggested or was it in there natively?
[Android Apps and Games] AznImport88:
Yeah, i had to dig aound a bit to find the app, but it seems to work.

I believe the settings/files are there natively, - just had to install the Magisk module, then the application and it worked right away.
[Android Apps and Games] jazic:
That's awesome. Anything that makes it easier for everyone is always a good thing.

I may give it a try just to see how it works myself. I generally don't worry about the temps since the phone throttles that regardless of how you have it set but I might add some Tasker profiles just to be safe.

Tasker is more cumbersome but honestly if you set a condition and an action it never ever fails to work. I've had issues in the past with Battery Charge Limit and even ACC not activating properly. I actually ironically had a profile to open BCL if it managed to charge beyond my set level with Tasker just to activate it before I had my own stuff activated.

That said, if anyone needs help setting a Tasker profile I'd be willing to help and learn more to get it working. I'm not a smooth brain and I'm probably more technically tuned than the majority of people but if I can figure it out anyone should be able to get it working as well.
[Android Apps and Games] Bad Bimr:
Has anyone gotten this to worki

on a pixel 4a 5G? I've tried various control files and it don't seem to work. Someone mentioned the ACC module for magisk. What exactly is it and how does that work?

Thanks

BB

EDIT: Installed the ACC Magisk module and the accompanying ACCa app. Keeping my fingers crossed.
[Android Apps and Games] rodken:
You might have better luck with Advanced Charging Controller.
[Android Apps and Games] sdkyron:
Anyone could help me with this ?
[Android Apps and Games] Akfang:
Same for me I have the POCO F3 and the app doesn't seem to work. It goes beyond the limit, the notification is there though, but it keeps charging the phone.

Is it possible that the phone isn't compatible ? And there is no workaround ?

Edit : I just tried changing the control file, and it seems to now work !

Settings > Set Control File > input_suspend (Pixel 2 / Xiaomi Mi6)
[Android Apps and Games] elesbb:
Dev, thank you so much for making this open source! Really appreciate it.

I have made some changes:

1. Only limit charge if connected to USB (having phone always plugged in is worse for battery than charging to 100%)

2. When charging, enable "hv_charger_status" <- this will enable fast charging on most devices. I have seen charging at roughly 1.0A (device is idle) when having this option enabled when plugged into my PC using USB3.0 slot.

Let me know if anyone wants this type of revision as well as any other changes you may want.

Again, thank you so much for making this open source!
[Android Apps and Games] UweRammelt:
Does anyone have an idea how to limit charging a Xiaomi MI9 via QI ?

Using USB charging, everything work fine, bur using QI only the alarm appears but charging doesn't stop.
[Android Apps and Games] @kitokit:
I too have a mi9, before I was on a10 custom ROM, this app was working with out issues, now I'm on a12 custom ROM, the app notifies that limit has been reach, but still keeps on charging..any ideas?
[Android Apps and Games] UweRammelt:
Oh - it depends on the custom ROM of course.
[Android Apps and Games] JordanScruffy:
Hi

I love the idea of this app, so tried it on a rooted Galaxy S7.

My phone battery was all good and everything worked before installing the app, after installing the app and setting the limits, and turning it on. My phone keeps losing charge, it says it's charging in the Battery charge limit app and my phone battery symbol confirms it is charging but the percentage just keeps dropping. Now my phone is flat and doesn't charge. Any idea what happened?

Cheers,

Jordan
[Android Apps and Games] dlareghoe:
anyone found out the location on OnePlus 9Pro and Android 12?

wired:
/sys/class/oplus_chg/usb/chg_enable, 1, 0

wireless:
/sys/class/oplus_chg/wireless/chg_enable, 1, 0

are not longer working.
[Android Apps and Games] shaglord:
Thanks for this app! It's great.

One small problem for me is that it isn't maintaining the charge after reaching it. It interrupts charging but it never automatically reenables it. I always need to unplug the cable and plug it in again. So, if you're charging during the night, and the phone is doing something cpu intensive in the background. Then you could wake up with 20% less battery than the "mark".
[Android Apps and Games] Thibaultmoll:
Could you update your original reply with what control file you actually ended up using. I have a couple fairphone 4's for our company and it might be a similar control file
[Android Apps and Games] lklaus:
Done. Just to repeat, I'm using the default control file for nexus. In the meantime, I'm on LOS, still the same file
[Android Apps and Games] Angelo2387:
Tested on Mi a3 it works! But is there an on/off button to disable charging directly?
[Android Apps and Games] SideSkroll:
Ive used this app for several phones with a variety of custom roms and it worked fine. Now that Im on a pixel 5a with vanilla android it doesnt work! Who knew! Anyone has any idea if it could be made to work? Thanks.
[Android Apps and Games] exis_tenz:
Confirm that on a OnePlus 7 pro stock A10 working fine, on a OnePlus Nord 2 5G stock A11 keeps charging whatever setting I do.
[Android Apps and Games] SideSkroll:
Same on a Pixel 5A A12. It keeps charging.
[Android Apps and Games] fivefour:
On Pixel 4 XL the file is as follows, not sure if the 5a is the same but you can check or go into the app settings and set it as I have in the screenshot:

/sys/class/power_supply/charger/charge_disable, 0, 1
[Android Apps and Games] Lusty Rugnuts:
Hi, all. Ok, so I had a Blu Life One X3 (BLOX3)... rooted, Google removed, no ads. The battery is going south... unplug it when the phone is doing anything, and it shuts down, showing 0% battery, even if it's been at 100%.

So, I bought a Murena Teracube 2e, running /e/ OS... it's not rooted. So Battery Charge Limit won't run.

But, the Murena Teracube 2e has the ability to run adb as root... and that gives me the ability to grant permissions to Battery Charge Limit such that I should be able to get it to run without root.

Something like this:

adb root

adb -d shell pm grant com.slash.batterychargelimit android.permission.WRITE_SECURE_SETTINGS

adb -d shell pm grant com.slash.batterychargelimit android.permission.BATTERY_STATS

adb -d shell pm grant com.slash.batterychargelimit android.permission.RESET_BATTERY_STATS

adb -d shell pm grant com.slash.batterychargelimit android.permission.RUN_IN_BACKGROUND

adb -d shell pm grant com.slash.batterychargelimit
android.permission.RECEIVE_BOOT_COMPLETED

adb -d shell pm grant com.slash.batterychargelimit foundation.e.permission.READ_TASKS

adb -d shell pm grant com.slash.batterychargelimit foundation.e.permission.WRITE_TASKS

adb -d shell pm grant com.slash.batterychargelimit android.permission.VIBRATE

adb -d shell pm grant com.slash.batterychargelimit android.permission.WAKE_LOCK

Can the app author confirm what permissions the app needs?
[Android Apps and Games] Nico Bröse:
And an option to automaticly enable or disable it with tasker or enable and disable it in a set time periode
[Android Apps and Games] fddm:
This app hasn't been updated in a while, try ACC /w ACCA if your newer device is not supported.

The core function of this app requires a root shell to change USB configuration, has nothing to do with permissions.
[Android Apps and Games] Lusty Rugnuts:
The phone I've got (Murena Teracube 2e with /e/ OS (Android 11)), in Developer Options, has the ability to run ADB as root.

That permission can be granted from a root ADB:

adb root

adb shell appops set com.slash.batterychargelimit android.permission.MANAGE_USB allow

You can list all permissions by:

adb shell pm list permissions

To get the permissions for a specific app (in this case, Battery Charge Limit):

adb shell appops get com.slash.batterychargelimit
[Android Apps and Games] turbomann:
Can you add mi pad 1 support? Where i can find the config file to inform us?

The CTRL file suggested in the menu is "motorola defy+ (MB526), but not regulate charge limit.
[Android Apps and Games] Tomek0000:
Hi if you own poco f3 will be better not to use acc. When I bought it, I configured it and installed all used by me applications including acc. The result was big power consumption and wakelock : c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5

This was in Havoc 14 and LineageOS 18.1 with base MIUI 12.5.6 and 12.5.8.

I used custom kernels to block it and it worked , phone gone to deep sleep but power lost was all time big.

If I do not use acc , the problem does not exist.
[Android Apps and Games] Harry500:
Hello,

I am using a Shiftphone, model Shift6mq. The app seems to work, charging stops at the limit set up, but there is another kind of problem: When the charge process starts the service is being started and stopped several times before it finally stays started and working. It also appears to me that caused by that the loading process is also being stopped and started again several times, because the android GUI (that is set up to be in dark mode when not charging and in bright mode when charging) is also switching to dark and bright back and forth. I wonder if this could be related to some kind of mechanism that changed the charging method/speed immediately after plugging in the cable. Then usually the display shows some changing messages like "charging, slow charging, fast charging" until the final charging speed is determined. Can anybody help solving this issue? When the app / service is finally up and running, it seems to work perfectly.

EDIT: Only for information: The phone is recognized by the app as "Pixel 2/Xiaomi Mi6", but I checked if the corresponding control file exists. That is the case. So I think this should be fine.
[Android Apps and Games] adek89:
can someone tell me if there is a similar app for android 2.3?
[Android Apps and Games] rodken:
Possibly, Advanced Charging Controller.
[Android Apps and Games] CosmoHsu:
Hi, I just install Advanced Charging Controller on my pixel 6 pro but I couldn't get it to work. May I ask how you set it up ?

Thank you
[Android Apps and Games] rsivan:
I try on rooted Unihertz Atom XL but does not work,

can someone give correct control file?

Thanks
[Android Apps and Games] Magichost:
If I set the upper and lower charge limits to the same number (ex. 80%), will it stay at that number and just run off the AC cord and not damage the battery?
[Android Apps and Games] Zaxx32:
Use the ACC front-end app called AccA (GitHub) and set 80% max, 75% resume and tick the 'battery idle' box and it will switch to AC power direct and 'disconnects' the battery until u unplug! AccA makes settings for BCL / ACC much simpler!
[Android Apps and Games] x3o3:
Doesn't work on Oneplus 10 Pro. Any ideas?
[Android Apps and Games] akaloith:
does this work on my lg g6? doesnt seem to work, please heeeelp
[Android Apps and Games] Zaxx32:
You have to add the ACC magisk module first and instead of BCL, I'd use the ACCA front end...it allows u to save different profiles and is more user friendly...unless u got ctrl file kung-fu. that is...(y)
[Android Apps and Games] akaloith:
this is for lg g6 ????

dont know these modules, any more info?
[Android Apps and Games] akaloith:
i installed acc magisk module

acca app

checked first profile (cool down after 60%)

but still charges to 100%

what am i doing wrong?
[Android Apps and Games] Zaxx32:
hmmm...

did u turn 'on' the ACC module in magisk

did u grant AccA root (aka super user) access

launch AccA and actually 'select' the default profile

or maybe try BCL?

that's bout all a got man...🤔
[Android Apps and Games] akaloith:
today it seems to work !

maybe i didnt restart?

does the app need to be on front? maybe it was closed?
[Android Apps and Games] Joe333x:
Sorry random question. I use this on my rooted devices and love it and swear by it. I remembered at some point in development years ago that there was a version for unrooted that would just give you a notification when a certain percentage is reached. I'd like that for a tablet I have thats not rooted but cant seem to find it, all the version I have tried just close out because it's not rooted. Did I imagine this or was there a version of this app that could do that?
[Android Apps and Games] lklaus:
On f-droid, there's for example safe charger, which does this
[Android Apps and Games] killeriq:
Seems like it doesnt work anymore on MIUI 13 / A12 - Xiaomi 12 Pro
[Android Apps and Games] heibert:
AccuBattery app on Google play