Repository navigation
fix(adb): mark unknown permission coverage partial - #4663
Conversation
894ae21 to
03809a8
Compare
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 reviewed changes appear safe to merge, subject to the required checks passing. SummaryPreserves unknown permission counts from
No new actionable issues or security concerns were identified in the changed code. Tests were inspected, not run. Checking whether this PR was superseded was blocked by missing GitHub authentication. Reviews (4) · Last reviewed commit: "fix(adb): mark unknown package coverage ..." · Reviewed by Greptile |
6996490 to
106e559
Compare
106e559 to
0c06f1c
Compare
|
Thanks @gongfpp for clarifying when Android permission coverage is actually established. Marking unknown package state or an unestablished requested-permissions count as partial keeps missing evidence from looking like a complete zero. |
Summary
Follow-up to #4665 for Issue #4654. The merged change handles explicit
pkg=null; this PR covers unestablished package state and keeps permission coverage visibly partial instead of reporting a complete zero.Expected behavior
pkg=nullwith no requested-permissions section:requested_permissions_count: null,coverage: "partial".pkgvalue and no requested-permissions section: also unknown (null/partial).pkg=Package{...}with no requested-permissions section: known empty (0/complete).Change and scope
dumpsysestablished a loaded package.pkg=nullfix merged in Fix permissions count issue forpkg=nullin ADB analysis and add test cases #4665, not a second implementation of that same fix.Evidence and regression coverage
pkg=null, missingpkg, a confirmed loaded package with no permission section, and a populated permission list.npm run test:local -- src/adb/AdbProvider.test.ts src/adb/AdbShellOutput.test.ts— 90 passed.npm run check:fast— passed.npm run build:cached— passed; emitted two existingINEFFECTIVE_DYNAMIC_IMPORTwarnings.39017514115passed all selected required checks: source tests, static checks, build package, all five test shards, Portable tests, CI required, and native package lanes. PR title check run39017519480passed; optional lanes were skipped by change selection.39016861665passed for basea04053347034fb2a5061a927eebd0b5a6ef772c3.Contract and boundary impact
dumpsys packageparser, then ADB package provider projection.nullwithpartialcoverage.Author readiness
Human owner: @gongfpp
Before merge