[Magisk] VR25:
Some Clarification

acc not only controls charging based on battery capacity (percentage) as mcs did -- it also works with other variables, namely battery temperature, charging current and charging voltage.

If charging control is i consistent, simply changing the charging switch (acc --set switch or acc -s s) may solve the problem.

Adding to [MENTION=8010004]guest4711[/MENTION]'s answer...

Some chargers (built-in, not the power adapter) have the ability to put the battery on idle and draw power directly from the external power supply when charging is completed or switched off. It is up for users to test.

Samsung devices have the batt_slate_mode charging switch and it behaves exactly that way. Keep in mind that this is recommend only for voltages lower than 4.2V (3.92V seems to be the magic number) as prolonged high voltage stresses the battery. The best capacity range for battery storage or holding charge while the device is in use is 40-60%. At that range, battery voltage is not over the roof nor low enough to cause damage. You can now gess why the default coolDown capacity is 60%.

The coolDown algorithm is meant for keeping battery temperature AND voltage within acceptable limits by periodically pausing charging for a few seconds (default 10). It can be disabled

- Entirely: by setting coolDown and temp values to null -- acc -s coolDown, acc -s temp)

- Partially: by either setting the coolDown capacity to null -- e.g., acc -s capacity 5,,70-80, or the lower temperature value to null -- e.g., acc -s temp ,450_90)

To prevent the annoying charging notifications, there's an app... Snoozy Charger... whatever... look that up on the Play Store.

Limiting charging voltage is better than simply stopping charging at a certain capacity. Those who can modify voltage_max value (i.e., their devices allow such a change) are better off with acc --set onBoot ./FOLDER/voltage_max:VALUE (where FOLDER can be battery, main, etc., depending on the device) and acc -s onBootExit true

These settings tell accd to set the voltage value and exit.

Why exit? There's no point in keeping it running. If the voltage is already limited, you don't have to worry about charging above a certain capacity. That becomes irrelevant. Temperature will not go over the roof either.

Those who prefer a text editor over terminal commands can edit /sdcard/acc/config.txt.

For those who actually like to read, and dive deeper into things, the README.md file which ships with every zip has all this information and more, in details.

Things are clearly getting more advanced. Without a graphical user interface, customizing and/or troubleshooting this thing is pissing some people off.

I've been thinking on creating a setup and troubleshooting wizard for acc (take adk, fbind and mm as examples).

In the near future, I'll eventually grab Java/Kotlin candies and build actual GUIs for configuration and troubleshooting.

[MENTION=1389822]lentm[/MENTION], you can try setting wireless charging current and voltage with acc --set onPlugged "/sys/class/power_supply/wireless/voltage_max:VALUE /sys/class/power_supply/wireless/current_max:VALUE".

If the input voltage is always 5V, set only current_max: 3 (A) , or 3000 (mA) or 3000000 (uA), depending on how many digits the default value has.

Upload /sdcard/acc/logs/acc-power_supply*.log if you need further assistance.

[MENTION=6245194]KitsuneFoxy[/MENTION], unfortunately, I can't see your screenshot at the moment. You may have got the "argument error" due to missing quotes.

The correct syntax for setting custom charging switch parameters is acc --set switch "PATH onValue offValue" (mind the quotes!). For you case, the ON and OFF values are 0 and 1, respectively. e.g., acc --set switch "/sys/.../pm8921_charger/parameters/disabled 0 1" (find's output should have given you the correct path to use).

[MENTION=5056724]paolocorpo[/MENTION], why exactly do you lose root on reboot? Does your system somehow restore the default boot.img?