How close is this to being implemented and this is basically all code needed to make it work
If battery % 80 stop charging which exploit would os need to protect against with this feature
Charge limit 80% when update pls
For development questions and feature requests, please refer to GitHub.
Here is the relevant issue for your query: https://github.com/GrapheneOS/os-issue-tracker/issues/3213.
Until then, perhaps Accubattery. Not making any assumption about privacy, but you could easily block net access
5 days later
You can find the official post about this here:
https://discuss.grapheneos.org/d/9017-how-can-i-limit-battery-charge-to-80/36
It might also come with AOSP with Android 15:
https://www.androidauthority.com/google-pixel-manual-charge-limit-3462210/
It's unclear at this point.