yashsingh1/xdaforums huggingface dataset:
[Magisk] VR25:
78 is not a good percentage to test for the auto-recharge threshold mechanism, since it uses a timeout of 10 minutes when battery level is greater or equal to 25%, and 5 minutes when it's at exactly 25% or below. That means the best way to test for that is setting a wider configuration -- such as cs 80 70 and see whether charging resumes at the lower value.

Now, you might ask -- why that long? -- well, I'm trying to determine the optimal values for a balance between efficiency and user experience. Besides, in real life usage, a phone won't discharge so fast that the set timeout range is too long for cs to notice the changes.

If we're talking about the charging stop timeouts, then lower values make sense, since phones nowadays charge very fast (i.e., OnePlus 3). For that reason, these timeout values are way lower -- 25 seconds if battery level is greater or equal to 70%, and 4 minutes if it's less than 70%.

If there were no timeouts at all, devices would freeze due to massive, non-stop loop chains.

It uses battery power. I know, I know... it would be great if it pulled from the charger. That'd be kinda dangerous for the electronic components, though. A charger isn't that stable in delivering proper current and/or voltage at all times. Filtering & stabilizing components would wear out relatively fast.

[MENTION=2863435]Droid_JD[/MENTION], will see what your zip tells me. -- Thanks
[Magisk] x1reN:
I've installed the beta now, where the default settings should be, that it's charging until 90%,but it is still charging until 100%

---------- Post added at 06:40 AM ---------- Previous post was at 06:39 AM ----------

I've installed the beta now, where the default settings should be, that it's charging until 90%,but it is still charging until 100%
[Magisk] jasonkhoo87:
I attached the full info I saw from terminal. Which is weird, the acc displayed at the bottom.

I am using SuperSU method.

I install acc using the apk 'a c-release.apk' might be the latest.

Sorry that I couldn't understand about From [MENTION=5228676]VR25[/MENTION] README documentation. Might be too complicated for me.

After several digging, I found the logs in my root data/adb I attached it here.

And I found 'acc-init.sh' file in 'mattecarra.accapp' folder at root data/data folder. But don't know how to make it run on boot_completed.
[Magisk] ktmom:
I don't use the app so that explains why I didn't see the script. Though I would have expected to be packed as part of the standalone.

To run a script on boot, look here
[Magisk] jasonkhoo87:
I install acc from app, but I still can configure or see status using terminal right? Like perform acc -i or acc -D.

I copy the acc-init.sh to init.d folder and perform reboot. I still get the busybox error.

How to fix it first?

-------Edit-------

I have tried changing various busybox version and perform "sh busybox.sh" from the acc installer folder. I still get the error. I am not sure whether the busybox issue or the acc script to get busybox issue.
[Magisk] jasonkhoo87:
Hi,

I have new finding, lets start from new ignore post above.

Whenever I tried run "sh install-current.sh" there is busybox error.

What I did is, I install using the ACC app and wait for the install finished.

Then I check the log from the app, there no busybox error and indeed it working perfectly.

The problem start after I reboot my phone, the I will get busybox error from the log.

I am not sure what cause but if my busybox is the issue, it shouldn't work at the first place.

I attached the log, here. Please let me know if there anything I do to troubleshoot this.

Thank you.
[Magisk] ktmom:
Sound like either the busybox binaries aren't staying installed after boot, or PATH no longer contains the location of busybox binaries install directory.

I'm on a device and unable to decompress the .bz2 file. You could use pastebin.com, hastebin.com, Google drive....
[Magisk] jawz101:
What does this module do? There is no description here and the github page just says "the module name says it all."

If I were a marketing person that is not the best way to get people to understand what it is that you are trying to achieve. My power cord is a charging controller too, so this doesn't really mean much to me.
[Magisk] ktmom:
The app allows you to control most (all) things involving battery charging on an Android device. Did you read the README on VR25's github?
[Magisk] jawz101:
I did but its description there isn't necessarily a bulleted list of features.
[Magisk] crackers8199:
is this the correct place to report a bug on the ACCA app? when running schedules, the green bar to designate the active profile doesn't change. the schedule does appear to work (verified by checking the config file), but the profiles screen still shows whatever the last selected profile was...
[Magisk] jasonkhoo87:
Hi, I just found the root cause. Indeed it's my busybox problem. I notice I have busybox in sbin and it's regenerate itself every boot. This causing the issue. So, I using app to remove it on boot and install busybox at xbin. This solved my busybox problem.

But another issue arise, while the auto charge discharge work but it's not reliable, sometime when it already in discharge stage my battery indicator not showing charging but my battery percentage eventually go up and its charging.

Check with acc -i and acc - D the status discharging and Daemon running.
[Magisk] ktmom:
You might want to provide the logs as described in this post. Your device may not be already submitted.
[Magisk] crackers8199:
actually, i take that back. the scheduler is unreliable...it ran my schedule last night to throttle back charging overnight, but did not run this morning to set it back to daytime charging options. i may just try using tasker to accomplish this...unless there's something i'm missing to make the scheduler reliable. any ideas?
[Magisk] ktmom:
Take a look at; https://dontkillmyapp.com
[Magisk] Taracair:
https://www.kickstarter.com/projects/batterypal/batterypal-the-first-smart-charging-cable

Interesting. Seems like the demand for this thing is significant.
[Magisk] SkyWo:
I'm having a problem with schedules, and I doubt it has to do with the app getting terminated in the backround. Whenever I edit a schedule's profile and save it, it goes back to keep current config, and it happens with all of them, so the schedules probably work and trigger but they won't switch the profile as I can't choose which one I want to be switched.

Does anyone have a solution for this? ty :)
[Magisk] WiZARD7:
Did anyone try it on Pixel 4 XL?

I've installed it, the daemon is running. But it does nothing. Won't stop charging at any level.
[Magisk] ktmom:
Have you tried changing the current charging switch?

At the top of the posts in this thread, VR25 has an announcement. If you follow that link, there instructions on how you can upload specific information about your device and that would be helpful for collecting data about the Pixel 4 series.
[Magisk] MyronAz:
Can anybody tell me what happens if you try to start after an auto shutdown without charging? Will it just immediately shut down again? Also, is there any notification before auto-shutdown?
[Magisk] ktmom:
I don't know how the app manages all of this. I use only the CLI.

No, there's no notification before it shuts down. Yes, the device will shutdown again after reboot if below the shutdown threshold. But not quite immediately. The next time the battery level decreases (e.g. 5 to 4), the shutdown will be triggered again.

You can use the configuration parameter, applyOnBoot to stop the daemon on boot so it won't shutdown after starting. This would mean starting the daemon after every boot when you want it started.

# --exit stops accd.
applyOnBoot=

There is a way to manage this cycle using tasker if your interested.
[Magisk] MyronAz:
It's not working for me. Sometimes it seems to be working. It seems like it's being shut down by the system. When I open ACCA it initially says "ACC daemon not running" for a second or two and then changes to "ACC Daemon is running". Is that normal? I'v tried disabling all the power/battery management stuff to no avail. I'm about to give up, any advice would be greatly appreciated. This is on an ASUS ROG2, Android 9.
[Magisk] ktmom:
You'll want to double check that the charging switch your using is the best option. .that's done by trial and error. Also, double check the power master stuff at https://dontkillmyapp.com/asus
[Magisk] MyronAz:
I tried everything but it still isn't working.

Thanks for your help. :angel:
[Magisk] ktmom:
By chance, is background restrictions enabled for ACCA? That might be in settings -> app -> ACCA -> advanced -> battery
[Magisk] MyronAz:
Battery restriction is not enabled (when you turn off battery optimization it says "Background usage can't be restricted" under the Background restriction option).

I had actually given up and uninstalled it earlier today. So I reinstalled it to check your idea. After reinstalling I did a check of the charging switch. It is now saying "Selected charging switch doesn't work!" for all the options! Is there any way to set a custom charging switch? (Of course, I'd have to find it).

One thing about the ROG2 phone that is different from every other (AFAIK) phone - it has 2 USB ports. Both can be used for charging. (I tested the charging switch with both ports). So things might be setup differently from other phones. Previously I thought ACC had moments when it was working properly but now I'm starting to doubt that. I tried another similar app (Battery Charge Limit) and while it did extinguish the charging notification led when it got to the set charge level, the battery itself continued charging.

This is frustrating. Having an option to limit charging level is essential and should be a requirement for Android. It's one of the main reasons I root and one of the first apps I put on a new phone. IBM Thinkpads have had this option for many years, the idea is not new. All these companies virtue signal their environmental sensitivity but really they design in planned obsolescence. Android is up to version 10 but it's still crap (for many reasons). /soapbox mode off
[Magisk] ktmom:
[MENTION=5461440]MyronAz[/MENTION]

I think your best bet is to follow the instructions in VR25's request for logs. Maybe that will help get your device supported.
[Magisk] zgfg:
Did anybody maybe try BatteryGuru app from Playstore

It doesn't require Root and it can also control battery charging limits
[Magisk] ktmom:
I don't think BatteryGuru actually manages charging in any way. You set thresholds and the app *notifies* you when those thresholds are reached. The user had to take the actual action.

ACC, using root, actually stops and starts charging based on factors including duration, threshold, temperature. A bonus on my current device, when the upper threshold is met, but still on the charger, power is used from the charger, not the battery.
[Magisk] KaMyKaSii:
I'm curious, how is it possible to check this out?
[Magisk] zgfg:
Regarding to Guru, it makes sense, I was asking above being suspicious how it could stop charging if root is needed for.

That would be of not much use - not suitable for over night.

I will test tonight

Regarding to ACC, are you sure that current goes directly from charger, not through battery - if through battery, it would IMO be again a constant stress for the battery since the moment when limit was reached, untill user disconnects the charger
[Magisk] ktmom:
To determine what charging switch(es) work, use the "acc -t --" command in a terminal app, run as root. If battery idle mode is supported, that will be reported as depicted:

# acc -t --

(i) [battery/charge_disable 0 1] works
[b]- battIdleMode=true[/b]

(i) [battery/input_suspend 0 1] works
- battIdleMode=false

(!) [parallel/charging_enabled 1 0] doesn't work

(!) [parallel/input_suspend 0 1] doesn't work

(!) [dc/input_suspend 0 1] doesn't work

To set the switch, use "acc -s s" also in a terminal app as root. This will bring up a menu as depicted:

# acc -s s

(i) Supported charging switches

1) Automatic
2) battery/charge_disable 0 1
3) battery/input_suspend 0 1
4) parallel/charging_enabled 1 0
5) parallel/input_suspend 0 1
6) dc/input_suspend 0 1
7) Exit

(?) Choice, [Enter]: 2

Charging Switch

prioritizeBattIdleMode is an option in the DEFAULT CONFIGURATION

I installed the app to take a look at it. It's quite explicit that it gives notifications when thresholds are met.

FAQ
[Magisk] drsaidalavi:
How to set time scheduling for temperature control nd battery cool own in acc

Hello,

I am new to ACC. I set up my charging limit successfully in ACC. using ACCA apk. But when I enable Temperature control and Cool down functions in it , it takes a long time to charge to the limit I put. So it will be very inconvenient for me during the day time . So i want these to be enabled only during the night time. Is it possible time set for these functions , (the Temperature Control and Cool down ) to be activated between 10 pm and 05:00 am.

Kindly help me
[Magisk] leonettmj:
request

hi. how can I avoid screen turno on when the SmartPhone start And stop to charge?
[Magisk] ktmom:
The app should have the ability to install and use a daily job scheduler (djs). If there isn't s way to install it in the app, there's a zip at the end of the following quoted post.

(I'm not using the app, and don't have it installed)

I'm not sure that you can disable the screen turning on when background command are given. Some devices require this action.

If you provide device information, ROM and android version, maybe someone with a similar setup can share their experience.
[Magisk] leonettmj:
Motorola G4 Plus with custom ROM Arrows Android 9.0

when acc is working and stops the charging process, for example when the battery temperature rises and the screen is off, the screen turns on as if the charger had been disconnected, when the charging process restarts the screen turns back on in signal that the charger was connected, and repeated several times while the cooldown cycles are fulfilled. I want to know if there is any way to keep the screen off because it is quite annoying when the phone is charging at night
[Magisk] SkyWo:
Can someone help me with this ^ ? :)
[Magisk] heithered:
Moto Z, when max charging % reached it stops charging but device wont go into deepsleep and causes high battery drain and because of this i can't leave it charging overnight. A few times i did and accubattery read something like 200% total charged overnight. Searched the thread about changing switches and only 2 switches available for me and one of them straigh doesnt work. Any way to fix this?
[Magisk] capscorn:
How to use this module, flash & forget or need some setup in terminal ?

Sorry im newbie here, maybe some expert user can help to or explain clearly
[Magisk] ktmom:
The default are stop charging at 80% resume charging at 70%. If you are happy with that, then there's no setup needed. You can use the app for a gui interface. But in either case, everything you need to know is in the extensive README.md
[Magisk] capscorn:
So how much charging rate i get ? And it that possible to change stop charging value?

---------- Post added at 07:05 PM ---------- Previous post was at 07:04 PM ----------

So how much i will get charging rate ? And is that possible to change stop charging value ?
[Magisk] mysubcult:
Hello Friends. I really need your help, I installed your module through the magisk and after that I lost my fast charge.Removing a module and application does not help, what should I do?

Phone Honor 8.
[Magisk] Ixioon:
well i don't know, it supposed to work for s10+ but after i install with magisk manager and i reboot phone is stuck on boot loop :/
[Magisk] mysubcult:
Hello everyone, I need help. After installing the module, fast charging on the phone disappeared. nothing helps, nor a change of profiles in ass. force fast charging also did not give an effect.Removing the module does not help either, there is no quick charge. On the phone, the battery was changed at one time, the temperature sensor does not work.
[Magisk] zohrann:
the only solution i know is to dirty flash your rom again. This way all of the original settings are restored, and you won't lose any data. See it like doing a reset without losing your data, this is also how an OTA mostly works...

look at this reddit artikel to see the dirty flash and other flash methodes explained...

Good luck!!
[Magisk] aL_09:
Does this mod prolong lithium polymer battery life? Or does it only works with lithium ion battery?
[Magisk] ktmom:
A "lithium polymer" battery used in mobile devices are just repackaged lithium-ion batteries. The "polymer" version is packaged in a soft, slightly mold-able form rather than the harder cases seen in removable batteries.

An actual lithium-ion polymer battery is of lithium-ion design but using a polymer electrolyte instead of a liquid electrolyte.

You can convince yourself that you really have a lithium-ion battery by turning it off and observing its discharge rate. Lithium-ion polymer batteries have a much higher self discharge rate. The lithium-ion battery self discharges at a much slower rate. This is why the partial charge the device has when manufactured is still available when the new device is opened.

Adding a link to the batteryuniversity.com page that states the charge/discharge characteristics of a lithium-ion polymer battery is the same as a lithium-ion battery.
[Magisk] ziki:
That is a really important things to a have wireless charging well controlled.

Now when ACC stop the charging at e.g. 80%, the charger does not know that it has to stop the charging and keeps its coil powered. This produce heat that prevents the phone battery to cool down.

I made some test checking battery temperature and measuring absorbed power by the charger: in that situation all the wireless chargers I have are still absorbing from 1.4 to 2.2 W and the temperature of the battery (increased by charging) does not decrease.

I do not think that could be resolved by using a different charging switches...the only way to fix this could be that the ACC daemon sends the "full" signal to the charger (if possible) or to limit in some way the capacity of the battery and rescaling the percentage calculation.

Some Samsung tables (like Galaxy Tab S3) have a "Proctect battery" option that does the second thing (see attachment).
[Magisk] eggmama:
Hello, anyone here uses a zenfone 3 ZE552KL with this ACC module? Just wanna get some tips. I don't see any error in my phone when I type acc -s, or acc -i, but ACC is unable to stop my phone from charging after the threshold. I read something here about using acc -c cat to make changes 1 or 0. But i'm not quite understanding that part yet. I guess my next step is to download and post a log script here? With the printscreen attached I don't see anything about disable when I ran ACC -s ss, does that me I cannot control when my phone stop charging? The ACC works flawlessly on my Samung Galaxy tab 4 8.0 though.
[Magisk] ktmom:
Have you tried switching to the other switch using the acc -s s command? That allows you to enter a number corresponding to the switch you want to try. Try both, though one is currently set since apparently you have only two possible switches. An "acc -i" command will tell you what is currently set.

"cat" is a command line interface (cli) command that prints the contents of a file to the terminal (e.g. cat /data/adb/acc-data/config.txt - this is equivalent to acc -s). The point of this explanation is I have no idea what "acc -c cat" would be. If you could link to this instruction, maybe I can help.

I also want to say, that on a device I know works, every once in awhile, the install glitches and charging doesn't stop (this is after an install of the module done after a clean flash). Removing and reinstalling always fixes the problem.
[Magisk] eggmama:
Thanks giving that one a try, one switch at a time.
[Magisk] eggmama:
I gave the different switches a try.

With switch 1 [automatic] My phone would go charge and stop charge randomly even beyond the stop charging threshold.

With Switch 2 [battery /charging enabled 1 0], and Switch 3 [battery /battery charging enabled 1 0]. My phone would stop after the stop charging threshold, the battery symbol would not have lightning symbol, except I noticed the battery percentage was still going up every few minutes.

I think it's still not working. Would the log script shows what's going on to troubleshoot this?
[Magisk] shadow19400:
It seems from what I've seen that the pixel stand puts out 5V at 2 amps making 10W and with this method, you're putting 9 volts at 1 amp (ampere app showed about 1050 mA for me) on a third party charger will get you 9W. I'm wondering whether or not putting 9 volts into a pixel 3 xl wirelessly is safe for the charging circuits and can it potentially fry something? I'm also curious as to how changing this setting using the command above actually increases the current? Before running the command, my current is about 450-500 mA but after it jumps to 1050 mA. Shouldn't this command only affect the voltage and not the current? I could be just missing some basic knowledge on how electricity and power works with this second question.
[Magisk] ktmom:
I looked through the currently submitted power supply logs and I don't see any for zenfone. I strongly suggest adding your log to VR25's Dropbox. Info in the README.md.

If you attach it here, maybe we can come up with a work around. No promises :)

Edit:

There is also this earlier post from VR25
[Magisk] eggmama:
Thanks KTmom, I actually read that VR25 posts before, I went from page 1 to pay 50ish of this thread before I stopped.

With the VR25 post, I have a question, it talked about changing the values to test the devices, but I didn't understand where to change the values. And I also didn't understand the control files. Are those files where I need to download to test them out on my device by changing the on/off values? Sorry I'm very new to this and asking all these green questions. Lastly is there a page where it explains about how to download a log? Thanks again
[Magisk] ktmom:
Each of those files described in the previously linked post are potentially control files. If you "cat path/to/control/file" in a terminal, if the file exists, the output will be the contents of the file. Usually, it's a "1" or a "0". If it's a "1", the command "echo "0" > path/to/control/file" will change it to a 0.

As described in the README link I provided, the logs of interest are located at

"/sbin/.acc/acc-power_supply-*.log".

You might be better served reading the first post, any links in the first post and then backwards in threads, especially when so much development has occurred over the last several years.
[Magisk] eggmama:
Thanks again. How do I access "/sbin/.acc/acc-power_supply-*.log".? I read the threads, and spent some time on the phone, but was unable to locate the log file.
[Magisk] ktmom:
Use a root capable file explorer to navigate to /sbin/.acc/, then look for a file that starts with "acc-power_supply" and ends with ".log"

Use a terminal and switch to su (because the file is in a location that only root can access), then use the command "ls /sbin/.acc/acc-power_supply-*.log" which will list the full name of the file (* is a wildcard character).

Reading up on basic Linux commands may be in order.
[Magisk] eggmama:
Thanks. Just uploaded file to dropbox. Zenfone3