feat: dumpsys_acquirer #40

Merged
n merged 3 commits from feat/dumpsys_acquirer into develop 2026-02-11 16:06:33 +00:00
Owner

🛠 Type of Change

  • 🐛 Bug fix
  • New Feature (androidqf module)
  • ️ Performance / Refactoring
  • 📝 Documentation

📖 Description

Implementa l'acquirer dumpsys

🧪 Testing

  • Manually tested with device: (Pixel 7)
  • Unit tests passed (pnpm test)
  • Lint verified (pnpm lint)
### 🛠 Type of Change - [ ] 🐛 Bug fix - [x] ✨ New Feature (androidqf module) - [ ] ⚡️ Performance / Refactoring - [ ] 📝 Documentation ### 📖 Description Implementa l'acquirer dumpsys ### 🧪 Testing - [x] Manually tested with device: (Pixel 7) - [x] Unit tests passed (`pnpm test`) - [x] Lint verified (`pnpm lint`)
Consolidate three separate dumpsys command classes into DumpsysCommand with:
- Optional service parameter and dynamic command building
- Support for packageName and args
- Sensor information collection

Remove redundant GetBatteryInfoCommand, GetMemoryInfoCommand, GetPackageInfoCommand.
Rewrite tests with proper Adb mocking and realistic dumpsys outputs.

BREAKING CHANGE: Use DumpsysCommand.exec({ service }) instead of removed command classes
feat: implement dumpsys acquirer
All checks were successful
WAFB CI + Deploy / quality (pull_request) Successful in 1m58s
WAFB CI + Deploy / deploy-dev (pull_request) Has been skipped
WAFB CI + Deploy / release (pull_request) Has been skipped
811f9545d2
garrett force-pushed feat/dumpsys_acquirer from 811f9545d2
All checks were successful
WAFB CI + Deploy / quality (pull_request) Successful in 1m58s
WAFB CI + Deploy / deploy-dev (pull_request) Has been skipped
WAFB CI + Deploy / release (pull_request) Has been skipped
to 0c4f2f679b
All checks were successful
WAFB CI + Deploy / quality (pull_request) Successful in 2m27s
WAFB CI + Deploy / deploy-dev (pull_request) Has been skipped
WAFB CI + Deploy / release (pull_request) Has been skipped
2026-02-11 13:44:23 +00:00
Compare
garrett force-pushed feat/dumpsys_acquirer from 0c4f2f679b
All checks were successful
WAFB CI + Deploy / quality (pull_request) Successful in 2m27s
WAFB CI + Deploy / deploy-dev (pull_request) Has been skipped
WAFB CI + Deploy / release (pull_request) Has been skipped
to a14cb6dfa0
All checks were successful
WAFB CI + Deploy / quality (pull_request) Successful in 2m26s
WAFB CI + Deploy / deploy-dev (pull_request) Has been skipped
WAFB CI + Deploy / release (pull_request) Has been skipped
2026-02-11 14:25:08 +00:00
Compare
fix(core/adb): implement idle timeout for ShellCommand to prevent hanging
All checks were successful
WAFB CI + Deploy / quality (pull_request) Successful in 1m58s
WAFB CI + Deploy / deploy-dev (pull_request) Has been skipped
WAFB CI + Deploy / release (pull_request) Has been skipped
7ac2d4890e
ShellCommand previously relied on the stream's `done` signal to finish reading.
Some ADB daemons (especially with dumpsys) never close the stream, causing
commands to hang indefinitely until the global timeout. This replaces the
read loop with an idle‑aware mechanism: if no data is received for
`idleTimeout` ms (default 5s), reading stops and the accumulated output is
returned. This ensures commands complete promptly after the last byte of
output, while preserving backward compatibility.

- Add `idleTimeout` option to CommandOptions (default 5000ms)
- Replace `readStreamAsText` with manual chunk reading + idle timeout
- Keep global timeout as safety net for commands that produce no output
n merged commit 7e81512e9e into develop 2026-02-11 16:06:33 +00:00
n referenced this pull request from a commit 2026-02-11 16:06:35 +00:00
Sign in to join this conversation.
No reviewers
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
garrett/wafb!40
No description provided.