Skip to content

Fix Android external power detection - #101

Merged
Chris-ObtuseAI merged 1 commit into
mainfrom
agent/android-usb-power
Aug 13, 2026
Merged

Chris-ObtuseAI merged 1 commit into
mainfrom
agent/android-usb-power

Conversation

@Chris-ObtuseAI

Copy link
Copy Markdown
Contributor

What changed

Android external-power telemetry now reads the sticky ACTION_BATTERY_CHANGED plugged source instead of relying only on BatteryManager.isCharging.

Why

A Samsung Galaxy S25 Ultra connected over powered USB reported isCharging=false even while Android reported USB power. That incorrectly tripped the owner battery reserve guard below 40%.

Impact

Powered phones can enter the foreground edge lane without weakening the battery, thermal, power-save, foreground, adapter, lease, or receipt guardrails.

Validation

  • Edge UI tests: 2 passed
  • Native plugin test: 1 passed
  • ARM64 Rust release compilation passed
  • Android Gradle release assembly: 126 tasks passed
  • APK v2/v3 signature verification passed
  • Physical Android 16 test: external power detected at 38% battery
  • Four-node topology observed the Android phone
  • Phone-only eval job returned signed result 49.75 and receipt 019ffd74-ccf0-76f2-9d6a-c92c0f97193c

@Chris-ObtuseAI
Chris-ObtuseAI merged commit e67214d into main Aug 13, 2026
2 of 14 checks passed
@Chris-ObtuseAI
Chris-ObtuseAI deleted the agent/android-usb-power branch August 13, 2026 23:33
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