Repository navigation
refactor(android): remove unused updater export root - #139198
Conversation
The retired updater streamed APKs through PackageInstaller sessions rather than FileProvider grants. Remove its unused cache mapping while preserving both active export roots and their retention. Resource-backed tests cover active byte reads and retired URI issuance and resolution.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 5, 2026, 12:41 PM ET / 16:41 UTC. ClawSweeper reviewWhat this changesRemoves Android’s unused updater file-sharing root and adds tests preserving active exports while rejecting retired updater URIs. Merge readiness⛔ Blocked before merge - 1 item remains Keep open for normal landing. The cleanup remains absent from main and the latest release, no actionable patch defects were found, and the updated evidence addresses the previous proof request. Priority: P3 Review scores
Verification
How this fits togetherAndroid’s FileProvider turns exported cache files into content URIs that other apps can read through granted access. Workspace sharing and widget clipboard exports use the two retained roots. flowchart TD
A[Workspace file preview] --> C[Export cache files]
B[Widget clipboard export] --> C
C --> D[FileProvider root mapping]
D --> E[Granted content URI]
E --> F[Receiving app reads bytes]
G[Retired updater path] --> H[URI rejected]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +77, Other -1. Total +76 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep only the two actively produced export roots while preserving their URI names, grants, and existing file-retention behavior. Do we have a high-confidence way to reproduce the issue? Not applicable: this is obsolete-configuration cleanup, not a reported runtime bug; current main still contains the unused mapping. Is this the best way to solve the issue? Yes. Removing the unused declaration at its resource owner is simpler than adding caller guards or compatibility paths, and both active callers remain unchanged. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ac4c669dc5ae. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* commit '3e4becea5e2ce38ede69e8ecf5302805ecbfc09c': refactor: simplify outbound message execution context (openclaw#139107) fix(models): keep ordinary chat selections session-scoped (openclaw#139232) docs: slim root agent instructions and clarify testing scope (openclaw#139236) test(agents): give the sibling-drain completion wait a tolerance on slow runners (openclaw#139176) refactor(workboard): use canonical queries for card-tree writes (openclaw#139106) fix(canvas): recognize versioned macOS nodes (openclaw#138958) fix: load GitHub connections without a default agent (openclaw#139222) fix(memory): explain unsafe legacy host-event path recovery (openclaw#139195) refactor(talk): centralize typed voice session queries (openclaw#139103) fix(cli): preserve command dispatch and structured errors (openclaw#139067) refactor(agents): consolidate reply failure summaries (openclaw#139175) fix(auth): keep an unset default model unchanged during login (openclaw#139218) perf(media): reuse validated attachment read handles (openclaw#139168) refactor(channels): simplify account configuration updates (openclaw#139096) refactor(android): remove unused updater export root (openclaw#139198) fix(gateway): stop admitting post-ready producers during close (openclaw#139092) fix(gateway): expose agent hook completion outcomes (openclaw#139155) fix(config): return the saved configuration after plugin install commits (openclaw#139203) fix(android): reduce repeated retries to unreachable gateways (openclaw#138732)
The retired updater streamed APKs through PackageInstaller sessions rather than FileProvider grants. Remove its unused cache mapping while preserving both active export roots and their retention. Resource-backed tests cover active byte reads and retired URI issuance and resolution.
What Problem This Solves
Android's sharing configuration still exposes a cache root for the removed in-app updater. There is no remaining producer for that root. This removes obsolete configuration, not a demonstrated vulnerability or a user-visible feature.
Related: #139141.
Why This Change Was Made
Remove only the
apk_updatesmapping. Keep thewidget_exportsandworkspace_filesnames, directories, provider authority, non-exported provider declaration, grant flags, and retention behavior unchanged.The updater's original implementation and its last implementation before removal both wrote APK bytes through
PackageInstaller.Sessionstreams; neither issued FileProvider URIs. Its removal is already in stable v2026.3.8. This change does not assume that URI grants expire when a screen closes or an app upgrades.User Impact
No intended user-visible change. Widget clipboard exports and workspace sharing retain their existing paths. No dependency, configuration option, permission, storage schema, or migration changes.
Evidence
Fresh committed-head Play and third-party APK builds passed. Both packaged manifests, resource tables, and compiled FileProvider mappings retain exactly the two active roots; both APK signatures verify. Exact-head CI and its required gate passed.
Installed API36 proof used exact Play APK
41669de2bd5c0a665258dde8764531b4741497003d5aea0994ef59b3ed13e44ffromce7fdc7888dc4ad47e366cadde0065542018e250, a real Gateway atc748cd5714b8160f0ce0a895071f039877082f08, and a separately signed receiving app on Blacksmith Testbox. The normal error retained the loaded preview; retry worked; first text, second same-name text, and PNG reached the same receiving Activity. It reopened all earlier URI streams and verified their distinct bytes, MIME types, permissions, and separate source/receiver UIDs. Root and independent review rehashed all 2,859 evidence files. The native run exited 0, and native/Gateway processes, ports, lease, temporary key and checkout were verified closed.Installed scope is workspace sharing; widget clipboard coverage here is resource-backed tests and compiled mapping inspection, not a new installed clipboard test. This does not change or certify a new retention policy, OEM matrix, or release build.
Review dispositions
The completed review's APK/installed-proof prerequisite and rank-up move are now complete above. No source change followed review.
The review worker could not obtain dependency/history blobs; that evidence gap was resolved by direct maintainer and independent inspection, not assumed away. AndroidX Core 1.19.0 source, SHA256
dabdcce52939de70764cf967c7844da2222830d6a17ae20eefb41b2051964712, was inspected for FileProvider root parsing, issuance, resolution and manifest attachment. The original updater and last pre-removal updater useSession.openWrite, stream copy,fsync, andcommit, not FileProvider grants. Raw-parent history and the removal commit were verified. No grant-expiry assumption, compatibility wrapper, or permission weakening is introduced.The branch is in
openclaw/openclaw, where maintainers can update it directly.