Repository navigation
Fix permissions count issue for pkg=null in ADB analysis and add test cases - #4665
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Medium impact] The PR appears safe to merge; both previous defects are fixed and no new blocking issue was found. SummaryThe parser now returns
Reviews (2) · Last reviewed commit: "fix(adb): handle null package permission..." · Reviewed by Greptile |
Recognize pkg=null as unknown permission data and keep the provider projection aligned with the parser. Add regression coverage for the parser and provider. Co-authored-by: Copilot <[email protected]>
|
Thanks for handling the |
Summary
Return
nullforrequested_permissions_countwhen ADB reportspkg=nullfor a package. Add a regression test for this case.Problem and expected behavior
When
dumpsys packagereportspkg=null, the requested-permissions count should be unknown (null), not presented as a count. Available version information can still provide complete coverage.Change and scope
The ADB package projection now returns
nullfor the permission count when parsed package details indicatepkg=null. This is a focused fix to the existing ADB output behavior.Contribution scope fit: ordinary bug fix within existing boundaries; no maintainer scope decision required.
Contract and boundary impact
Expected effects:
Evidence and regression coverage
pkg=null, expectingrequested_permissions_count: nullandcoverage: "complete".pkg=null.For evidence-bearing changes:
Validation performed
npm run test:local -- src/adb/AdbProvider.test.ts— could not run: thevitestpackage is missing.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.