Skip to content

Shizuku collectors: running apps, boot reason, batterystats, thermal #4

Open

Description

@groupsky

Depends on #2.

Goal

Optional collectors that need shell (adb-level) rights, through Shizuku. Without Shizuku the app works as before, and it reports these collectors as "not available".

Collector Values Source (as the shell user)
apps is each package in a configured list running (0/1) pidof / ps
boot reason last boot and shutdown reason, as a log record and an info metric getprop sys.boot.reason.last, sys.boot.reason
batterystats a summary after each boot or gap: what happened to the battery while the app was not running (plug events, level) dumpsys batterystats --history
thermal temperatures per sensor dumpsys thermalservice

Note: the shell user cannot read /sys/class/power_supply on at least some phones (HyperOS 2: "Permission denied"), so do not plan on it.

Done when

  • Each collector works with Shizuku on a real phone; query results in the PR.
  • Without Shizuku, or after a reboot before Shizuku is started, the app keeps running and reports the state. Test or log in the PR.
  • The README explains Shizuku setup, and that Shizuku must be started again after each boot on non-root phones (and what Shizuku offers for that).
  • Shizuku collectors are off by default.

Activity

  1. groupsky commented on Nov 10, 2026

    @groupsky
    ContributorAuthor

    Not queued yet: it waits for #2 (MVP). The spike (#1) is done (2026-11-12) and #2 is queued (2026-11-13). A work job is added when #2 is closed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions