refactor/commands #18

Merged
n merged 42 commits from refactor/commands into develop 2026-01-15 20:58:27 +00:00
Collaborator

🛠 Type of Change

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

📖 Description

extract commands in a module use command interface to expose exec

🧪 Testing

  • Manually tested with device: (Model/Version)
  • Unit tests passed (pnpm test)
  • Lint verified (pnpm lint)
### 🛠 Type of Change - [ ] 🐛 Bug fix - [ ] ✨ New Feature (androidqf module) - [x] ⚡️ Performance / Refactoring - [ ] 📝 Documentation ### 📖 Description extract commands in a module use command interface to expose exec ### 🧪 Testing - [ ] Manually tested with device: (Model/Version) - [x] Unit tests passed (`pnpm test`) - [x] Lint verified (`pnpm lint`)
n added 40 commits 2026-01-15 18:11:02 +00:00
### 🛠 Type of Change
- [ ] 🐛 Bug fix
- [x]  New Feature (androidqf module)
- [ ] ️ Performance / Refactoring
- [ ] 📝 Documentation

### 📖 Description
introduce root_binaries acquirer

### 🧪 Testing
- [x] Manually tested with device: (Model/Version)
- [x] Unit tests passed (`pnpm test`)
- [x] Lint verified (`pnpm lint`)

Reviewed-on: #5
Co-authored-by: ntonjeta <ntonjeta@autistici.org>
Co-committed-by: ntonjeta <ntonjeta@autistici.org>
feat: env_variables acquirer support (#7)
All checks were successful
WAFB CI / quality (push) Successful in 1m35s
WAFB CI / release (push) Has been skipped
9179c48121
add envoriment variable acquirer

Co-authored-by: ntonjeta <ntonjeta@autistici.org>
Co-committed-by: ntonjeta <ntonjeta@autistici.org>
- Deleted obsolete command files: ListPackageCommand, LogCatCommand, ReadFileCommand, RootBinariesCommand, ShellCommand, WriteFileCommand.
- Created new command files with improved structure: listPackageCommand, logCatCommand, readFileCommand, rootBinariesCommand, shellCommand, writeFileCommand.
- Introduced a new base interface ADBCommands to standardize command implementation.
- Added new commands: CheckCommandExistsCommand, DeleteFileCommand, EnvCommand, GenerateBugReportCommand, GenerateBugReportzCommand, GetBatteryInfoCommand, GetMemoryInfoCommand, GetNetworkInfoCommand, GetPackageInfoCommand, GetPropCommand, GetSensorsCommand, GetStorageInfoCommand, IsRootedCommand.
- Updated import paths to reflect new command file names.
- Enhanced error handling and logging across commands.
- Improved command execution logic and output parsing for better reliability.
- Implemented comprehensive tests for GetPackageInfoCommand to validate package information parsing, permission extraction, and error handling.
- Created tests for ListPackageCommand to ensure correct package listing, filtering, and handling of various output formats.
- Added tests for ReadFileCommand to verify file reading functionality, including handling of binary files and error scenarios.
- Developed tests for ShellCommand to check command execution, output handling, and timeout behavior.
- Established tests for WriteFileCommand to confirm file writing capabilities, including overwriting existing files and handling JSON content.
- Introduced test helpers for mocking ADB interactions and simulating shell socket behavior.
refactor: update command execution to use shell protocol and improve error handling
All checks were successful
WAFB CI / quality (pull_request) Successful in 1m44s
WAFB CI / release (pull_request) Has been skipped
43cf3320cb
n force-pushed refactor/commands from 43cf3320cb
All checks were successful
WAFB CI / quality (pull_request) Successful in 1m44s
WAFB CI / release (pull_request) Has been skipped
to aab4983dc7
Some checks failed
WAFB CI / quality (pull_request) Failing after 41s
WAFB CI / release (pull_request) Has been skipped
2026-01-15 20:41:25 +00:00
Compare
n added 1 commit 2026-01-15 20:46:40 +00:00
refactor: rename root binaries files and update imports for consistency
Some checks failed
WAFB CI / quality (pull_request) Failing after 2m29s
WAFB CI / release (pull_request) Has been skipped
9b86a8b771
n added 1 commit 2026-01-15 20:53:37 +00:00
refactor: remove obsolete root binaries test file and clean up related code
All checks were successful
WAFB CI / quality (pull_request) Successful in 1m42s
WAFB CI / release (pull_request) Has been skipped
b2d277aa37
n merged commit 852af726f7 into develop 2026-01-15 20:58:27 +00:00
n referenced this pull request from a commit 2026-01-15 20:58:28 +00:00
n deleted branch refactor/commands 2026-01-15 21:09:24 +00:00
n referenced this pull request from a commit 2026-01-16 17:41:50 +00:00
n referenced this pull request from a commit 2026-01-17 09:54:35 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
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!18
No description provided.