Android Health Report CLI for private battery, build, and storage summaries

The command reads text you already collected, recognizes a small allowlist of Android fields, and writes a reduced report. It does not connect to a phone, run ADB, upload input, or preserve unrecognized lines.

Runtime
Node.js 20 or newer
Network
No request made
Dependencies
None at runtime
Local Android diagnostic text reduced into battery, build, and storage summaries
Selected diagnostic lines stay inside a local input, parse, and reduced-output boundary.
local terminal
$ android-health-report diagnostic.txt
$ android-health-report diagnostic.txt --json
$ adb shell dumpsys battery | android-health-report -

The CLI parses text. It does not control the device.

  • No device discovery
  • No shell execution
  • No arbitrary file traversal
  • No raw input in the report

Registry installation instructions will appear only after the staged package publication is approved. This page does not offer an unverified download.

Exactly what the Android Health Report reads

Anything outside these recognized fields is ignored rather than copied into the output.

Battery snapshot

Level and status
Current charge state at capture time
Power source
Whether a recognized source is reported
Voltage and temperature
Momentary values, not health certification
adb shell dumpsys battery

Build context

Model
Device context supplied by the property text
Android release
Platform version in the captured build
Security patch
Reported patch date, not support verification
adb shell getprop

Data storage

Total space
Size of the captured data partition
Used and available
Space at the time of collection
Use percentage
Partition occupancy, not RAM pressure
adb shell df /data

Reduce diagnostic text before it reaches a support ticket

The report is designed to carry a few useful values without carrying the complete command output. Inspect the input yourself and remove anything you did not intend to collect.

Kept when recognized

  • Selected battery state
  • Selected build properties
  • Data-partition totals

Excluded from output

  • Raw input and unknown lines
  • Serial numbers and IMEIs
  • Android IDs and account data

From Android text to a reviewable report

  1. Collect only the command needed

    Do not capture a broad device dump when battery, build, or storage text answers the question.

  2. Inspect and save inside one working directory

    File input must be a regular non-symlink file inside the current directory and is limited to one MiB.

  3. Run human or JSON output

    Human output is the default. Add --json when a local tool or structured support record needs it.

  4. Review before sharing

    The reduced report still describes a real device. Remove anything unnecessary for the recipient and keep the original local.

Interpret each output with the right guide

Start with the Android update-layer explanation when a build report shows several dates that appear to disagree.