Repository navigation
fix(composer): drop photo library permissions for the system photo picker - #4
Merged
Merged
Conversation
…cker Google Play rejects apps that declare READ_MEDIA_IMAGES / READ_MEDIA_VIDEO unless photos are their core purpose (Photo and Video Permissions policy). Ryan approved removing them as an Android-only exception to iOS parity. What changed: - Manifest: removed READ_MEDIA_IMAGES, READ_MEDIA_VIDEO and READ_MEDIA_VISUAL_USER_SELECTED (the last is useless alone: Android's partial-access dialog only appears when the first two are requested). No library adds them back. - PhotoLibraryClient: new PhotoLibraryAccess.Unavailable; the live client now reports it with no photos. Removed the MediaStore live client (LivePhotoLibrary: library queries, thumbnails, change observer, permission requests, Select More, Open Settings). - Session + menu: Photos opens the system photo picker (ComposerPickers.photosIntent, up to 4, videos when the server takes uploads) and attaches picks through the existing importPickedMedia path, instead of growing into the photo sheet. The in-app photo grid no longer shows, and the hold-on-+ recent-photo peek stays hidden (it already required readable access), so a hold just opens the menu. - Kept: the sheet, peek, labFixture, PhotoRequestGate/PhotoCacheGate and the PhotoLibraryAccessHost seam, so ported tests and fixtures still run. Camera, Files, Location and Paste are untouched. Verified: - Merged manifests (processReleaseMainManifest, processDebugMainManifest): no READ_MEDIA_* or READ_EXTERNAL_STORAGE; installed debug app's requested permissions contain no READ_MEDIA_*. - Emulator (OpenCode_API_36, connected to the review server): + > Photos opens com.google.android.photopicker; picking two pushed images and Done attached both as composer chips (not sent); no permission dialog at any point; hold on + opens the menu with no peek. - scripts/check.sh: BUILD SUCCESSFUL (assemble, lint, unit tests).
…os (S-01 reopened) With no photo library access (play-photo-picker), + → Photos opens Android's system Photo Picker instead of the in-app photo sheet. That path was still on main's 4-photo limit, so the S-01 fix (2883126, photo sheet only) never reached it: the picker refused a 5th pick ("Select up to 4 items"), and even past it staging would have dropped everything after 4. Three places capped it: - SessionView: photosIntent(...) used its default maxItems, AttachmentPickerButton.MAX_PHOTO_SELECTION (4), for EXTRA_PICK_IMAGES_MAX. - SessionAttachmentImporter.importPickedMedia kept uris.take(MAX_PHOTO_SELECTION) (4). - SessionAttachmentImporter.startImageImport left ComposerImageImporter's default limit, maxPhotoSelection(plusMenu = false) (4). This is the same hunk as 2883126, byte for byte, so the two merge cleanly. iOS takes maxPhotoSelection(plusMenu: true) = 8 on the plus menu (Composer/AttachmentPicker.swift:23) and imports with limit: maxPhotoSelection(plusMenu: usesPlusMenuSheet) (Session/SessionView+Attachments.swift:440), always 8. All three now use AttachmentPickerButton.maxPhotoSelection(plusMenu = true). Replaced: the 4-photo cap on the system picker path. ComposerPickers.photosIntent's default (used by the plain ComposerView) is unchanged. Verified on the VM emulator (FX_4), 9 PNGs pushed to /sdcard/Pictures and media-scanned, + → Photos in the system picker: session-lab 4170 (intro) 5 picked → 5 staged → sent "… of 5" (lab files: 5); 8 → 8 staged → sent "… of 8" (lab files: 8); a 9th pick is refused with "Select up to 8 items". Real server 4197: same, server user messages carry 5 and 8 files, 9th refused. Evidence: VM ~/qa/runs/fixes/S-01b/. vm.sh check :feature:session passes.
Brings the branch up to main (sync to iOS ae029f85) before merging, now that it also carries the 8-photo system picker fix (9661424). Only docs/parity/session.md conflicted (the SessionView.swift row); both notes kept. Verified: scripts/check.sh (all modules) passes on main + this branch + play-open-testing on the QA Linux VM.
Tarquinen
added a commit
that referenced
this pull request
Nov 9, 2026
…83 sync Brings in the release workflow (Play uploads only on v* tags), the Play photo policy change, the QA fixes and the navigation-bar spacing for the + menu. Resolutions: - Photos follow main: no READ_MEDIA permissions, the live PhotoLibraryClient reports Unavailable and + → Photos opens the system picker. The photo sheet code stays, unreachable. PhotoRequestGate stays replaced by OneShotRequestGate. - The + menu's navigation-bar inset moved onto AttachmentMenuMeasure (the overlay it was on is gone) and into PlusMenuPlacement.foot. - LocalDrawerVisible (main) folded into LocalDrawerHidden (ours); the activity ring keeps main's TalkBack check on the ambient clock. - Catch Up finish keeps main's modal drawer handling on our motion roles (swap enter/exit). - Transcript row exits (main) keep RowEntrance.EXIT_DURATION alongside the role-driven entrances; LiveTranscript records the cursor as main does and keeps the parse cache. - Title rolls, the draft list exit and the composer swipe/edit paths keep both sides. - ServerLinkTests.expectTimeout keeps stepping the clock until the stream ends (up to 100 s): the watchdog wakes on another thread and can sleep from a clock read taken before a jump. Parity docs merged row by row; test totals recounted. Verified: full scripts/check.sh passes; ios-sync.py check 0 errors.
Tarquinen
added a commit
that referenced
this pull request
Nov 9, 2026
…UI work Brings Ryan's #3, #4, #6 and #7 into the Material 3 branch through PR #5. Conflicts kept both sides: main's TalkBack, touch and focus fixes with this branch's Material styling (Jump to Latest as a small FAB on main's touch tracking, the Export submenu in main's non-focusable menu, the level word ellipsizing inside the outlined model chip, the Catch Up swipe glyph on its tone colour, the transcript's row exits with the soft bottom edge). Verified: scripts/check.sh passes for every module; ios-sync check 0 errors; parity test totals match Gradle.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Google Play rejects apps that declare
READ_MEDIA_IMAGES/READ_MEDIA_VIDEOunless photos are their core purpose (Photo and Video Permissions policy), and won't review an open testing release until that's resolved. Ryan approved dropping them as an Android-only exception to iOS parity.READ_MEDIA_IMAGES,READ_MEDIA_VIDEOandREAD_MEDIA_VISUAL_USER_SELECTED(no library adds them back).importPickedMediapath.Verified: merged release/debug manifests have no
READ_MEDIA_*; on the emulator against the review server, Photos opened the system picker with no permission prompt and two picks attached as composer chips;scripts/check.shpassed.