Skip to content

Feasibility: option to stop charging at a target level (research — no non-root API) #115

Description

@almothafar

Request

Investigate adding an option to stop charging at a chosen level (e.g. hold at 80%).

Feasibility note (important — research first)

On stock, non-rooted Android there is no public API to stop or limit charging. Charge control is handled by the kernel/firmware; apps can read battery state but cannot tell the device to stop drawing power. So a true "stop charging" feature is generally not possible without root (or a vendor-specific feature the OEM exposes).

What is realistic to explore:

  • Root devices: writing to the vendor's charge-control sysfs node (varies per device; fragile, requires root permission and per-device paths).
  • Non-root: we can't stop charging, but we can already do the next best thing — alert the user to unplug at a target level. We have a full-battery alert today; a configurable "remind me to unplug at X%" would deliver most of the benefit safely.

Suggested direction

  1. Confirm the above (no non-root API) so we don't promise something we can't ship.
  2. Decide between:
    • A safe, non-root "unplug reminder at X%" (recommended default), or
    • An optional, clearly-labelled root-only charge-limit for advanced users.
  3. If we proceed with an unplug reminder, it pairs naturally with the 20–80% healthy-range work.

Filing as research/feasibility rather than a committed feature.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions