Skip to content

feat(charging): add configurable charging limit and pass-through control - #105

Open
alterkeyy wants to merge 2 commits into
SoClear:mainfrom
alterkeyy:BypassCharging
Open

alterkeyy wants to merge 2 commits into
SoClear:mainfrom
alterkeyy:BypassCharging

Conversation

@alterkeyy

@alterkeyy alterkeyy commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add a configurable 20–100% battery charge limit, using Samsung battery protection at supported levels and the device charge threshold for other levels.
  • Add a setting to restore the preferred limit after restart and a Quick Settings tile to pause charging at the current battery level.
  • Add charging policy and control engine unit tests, plus user-facing guidance.

Validation

  • ./gradlew :app:testDebugUnitTest :app:assembleDebug --offline (passed)
  • Device behavior was not tested; applying the controls requires root, and pass-through charging requires a compatible USB PD PPS charger.

Acknowledgement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant