Repository navigation
fix(android): drop READ_MEDIA_* for the system photo picker (Play photo/video policy); release 2.2.3 (Android only) - #257
Merged
Conversation
…_* (Play photo/video policy) Play's pre-review checks flag READ_MEDIA_IMAGES / READ_MEDIA_VIDEO: apps that aren't gallery apps must use the system photo picker instead. Pulse already does: expo-image-picker opens Android's PickVisualMedia picker, which needs no permission, and saving to Photos is write-only, which needs no permission on Android 13+. - app.json: expo-media-library granularPermissions [] (the default adds all three), and READ_MEDIA_IMAGES/VIDEO/AUDIO/VISUAL_USER_SELECTED in blockedPermissions so they're removed from the merged manifest even when a library manifest declares them (expo-media-library declares READ_MEDIA_VISUAL_USER_SELECTED). - use-recorder: the import's photo-library permission check and request are iOS-only. On Android 13+ expo-media-library throws when asked for a photo/video permission the manifest doesn't declare, so the hook doesn't check there either.
There was a problem hiding this comment.
🔵 Needs a closer look
Release-manifest and physical-device validation remain pending for this policy-sensitive permission change.
0 open findings
What changed in this PR
Updates Android imports to use the permissionless system photo picker, complying with Google Play media-access policy while preserving iOS behavior.
Changes:
- Blocks Android
READ_MEDIA_*permissions. - Limits import permission checks to iOS.
| File | Description |
|---|---|
app.json |
Removes granular media permissions and blocks manifest additions. |
src/features/recorder/use-recorder.ts |
Skips media-library permission checks on Android. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
1 of 4 tasks
This was referenced Oct 8, 2026
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's pre-review checks blocked the 2.2.2 production release: "Use alternative system pickers for photos / videos". Apps that aren't gallery apps may not request
READ_MEDIA_IMAGES/READ_MEDIA_VIDEOon Android 13+ and must use the system photo picker.Pulse doesn't need either permission:
expo-image-picker'slaunchImageLibraryAsync, which on Android launches the system photo picker (PickVisualMediainImageLibraryContract.kt) and needs no permission. Theexpo-media-librarypermission request before it was redundant.expo-media-library's Android code, saving needs no permission on Android 13+ (hasWritePermissions()returns false there); on Android 12 and lower it usesWRITE_EXTERNAL_STORAGE, which stays.The same permissions were in 2.0.4 (the commit it shipped from, e550fdd, has the identical
expo-media-libraryconfig); the check is new, not the permissions.Changes
app.json:expo-media-librarygranularPermissions→[](the plugin's default adds photo, video and audio), andREAD_MEDIA_IMAGES,READ_MEDIA_VIDEO,READ_MEDIA_AUDIO,READ_MEDIA_VISUAL_USER_SELECTEDadded toandroid.blockedPermissions. Blocking matters:expo-media-library's own library manifest declaresREAD_MEDIA_VISUAL_USER_SELECTED.src/features/recorder/use-recorder.ts: the import's photo-library permission check and request are iOS-only (get: Platform.OS === 'ios'on the hook, and the gate inimportClip). Required, not cleanup: with the permissions out of the manifest,expo-media-librarythrows on Android 13+ when asked about photo/video access (assertGranularPermissionIntegrity).Tested
npx tsc --noEmitwithmain's dependencies (npm ci): clean.npx expo prebuild --platform android: the generatedAndroidManifest.xmlmarks all fourREAD_MEDIA_*permissionstools:node="remove"../gradlew :app:processReleaseMainManifest: the merged release manifest has noREAD_MEDIA_*permission at all (including theREAD_MEDIA_VISUAL_USER_SELECTEDthatexpo-media-library's library manifest declares). Storage permissions left:READ_EXTERNAL_STORAGEandWRITE_EXTERNAL_STORAGE, bothmaxSdkVersion="32".Not tested yet
Release 2.2.3 (Android only)
This PR also cuts 2.2.3:
app.jsonversion 2.2.3, Android baseversionCode20220 → 20230 (CI adds the run number; the last Play upload was 20236),package.json/ lock 2.2.3.Android only: iOS behaviour is unchanged by this fix, and iOS 2.2.2 is in App Review, so iOS stays on 2.2.2 until the next regular release (#255 runbook: a one-platform bug ships on that platform only).
Release note: "Importing videos on Android no longer asks for access to your photos."
After merge
Run only the Android build workflow with
track=production. On Play Console, the blocked 2.2.2 production change is replaced by 2.2.3. Shipping without the on-phone test listed above, by decision; check import and Save to Photos on the S24 once 2.2.3 is live.