charging-sensor
Design and review an Android sensor that detects mains power loss from the phone's charging state, using a JobScheduler job with a charging constraint whose stop is the signal. Use when building or debugging a charging-stop or unplug detector, handling job stop reasons, plug types, battery-full cases, monotonic event time, reboots and process death, a foreground-service receiver for phones that sit at 100%, or a native alarm that rings offline when power returns.
- License
- MIT
Pinned to revision 18ab87dd7664, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/charging-sensor/SKILL.md
- skills/charging-sensor/references/android-facts.md
- skills/charging-sensor/references/decision-table.md
- skills/charging-sensor/references/device-probe.md
Every link opens the file at its source, pinned to the revision this page describes.