Repository navigation
feat(android): project declared component process and access flags - #7264
harshjohiya wants to merge 5 commits into
Conversation
[Medium impact] The reviewed changes appear safe to merge, with no outstanding findings. SummaryAdds declared
Reviews (2) · Last reviewed commit: "test(android): enforce cumulative proces..." · Reviewed by Greptile |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 987b5aceb6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| enabled: z.boolean().nullable().default(null), | ||
| process: z.string().nullable().default(null), | ||
| grant_uri_permissions: z.boolean().nullable().default(null), |
There was a problem hiding this comment.
Preserve unknown coverage for legacy component fields
When inspect_android_package Evidence produced after the component inventory was introduced but before this change is loaded, each item lacks these keys while retaining components.status: "complete" and no limitation; these defaults turn that unobserved coverage into null. Such an APK may actually declare any of these attributes, so replay now presents a complete inventory in which a historical unknown is indistinguishable from an absent declaration. Detect the omitted legacy shape at the inventory boundary and report partial/unavailable facet coverage (or preserve the declaration) instead of silently defaulting it.
AGENTS.md reference: AGENTS.md:L19-L19
Useful? React with 👍 / 👎.
|
CI status clarification: the |
Summary
Adds a bounded, declaration-only projection of three remaining Android manifest component attributes:
android:enabled,android:process, and providerandroid:grantUriPermissions.Related: #4448 (partial contribution; this does not close the full issue).
Problem and expected behavior
The component inventory currently exposes exported state, permissions, intent actions, and provider authorities, but omits these three declared attributes. Analysts otherwise need to inspect raw manifest XML. The new fields preserve exact process spellings and represent missing or nonliteral boolean declarations as null rather than inferring runtime state.
Change and scope
enabled,process, andgrant_uri_permissionsfields.No provider, runtime target action, CLI parameter, or authority expansion. The remaining #4448 requests (intent-filter structure, metadata locations, class-name alias handling) are outside this PR.
Contract and boundary impact
Evidence and validation
tests/boundary/android/androidManifestComponents.test.ts, including a follow-up cumulative-budget regression prompted by Greptile review (commit987b5ac).npm ci, Vitest, typecheck,npm run check:fast, and real JADX/APK verification. The execution environment could not resolve github.com for a local checkout; upstream CI workflows currently reportaction_required(no test-job results). The tests have been added but are not claimed to pass.npm ci && npm run test:focused -- tests/boundary/android/androidManifestComponents.test.ts,npm run check:fast, and a representative realinspect-android-packageworkflow.Compatibility, safety, and release
No new process execution, network access, code injection, or target mutation. Static declared attributes are not treated as runtime facts. No breaking schema changes are intended.
Author readiness
Human owner: @harshjohiya
Before merge