You still need the actual acc app: https://github.com/VR-25/acc/
This tool will allow a limit to be placed on the charging percentage; I have my phone set at 80%, so the battery never spends time at 100% charge which is the most damaging.
[Advanced Charging Controller (ACC)](https://github.com/VR-25/acc)
[BU-808: How to Prolong Lithium-based Batteries](https://batteryuniversity.com/article/bu-808-how-to-prolong-...)
https://linrunner.de/tlp/settings/battery.html
https://support.apple.com/en-us/HT210512
The best implimentation from my understanding is this one under android.
By hack I mean a bypass versus your meaning of attacking the security and removing DRM, is there a reason you can't just use another chip or anything special its doing? Do you need the CPU and is the cryptography documented enough to make it easy or woth the effort? It may also be a passion project so I understand if you just want to do it to do it, and even share the information. If it is battery charging features if they're important are not special. The last 20% makes extra cycles and is the most stressful.
https://batteryuniversity.com/article/bu-409-charging-lithiu...
>Turn off the device or disconnect the load on charge to allow the current to drop unhindered during saturation. A parasitic load confuses the charger.
>Charge at a moderate temperature. Do not charge at freezing temperature. (See BU-410: Charging at High and Low Temperatures)
>Lithium-ion does not need to be fully charged; a partial charge is better. Not all chargers apply a full topping charge and the battery may not be fully charged when the “ready” signal appears; a 100 percent charge on a fuel gauge may be a lie.
>Discontinue using charger and/or battery if the battery gets excessively warm.
>Apply some charge to an empty battery before storing (40–50 percent SoC is ideal). (See BU-702: How to Store Batteries.)
Pair with something like AccuBattery for visibility into battery capacity over time.