bedkillerspacex-boop/codex-skill-library/android-photo-picker

Claude Code and agent skill by bedkillerspacex-boop/codex-skill-library

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Android Photo Picker for owned apps: least-privilege media access without broad storage permissions, single/multiple select, and migration off READ_EXTERNAL_STORAGE where possible. Use when implementing image/video selection with modern privacy — not for bypassing user consent to read the entire gallery.

Install

npx vskill@latest install bedkillerspacex-boop/codex-skill-library/android-photo-picker

SKILL.md

The same SKILL.md was published earlier as bedkillerspacex-boop/codex-skill-library/android-photo-picker.

Android Photo Picker

Scope And Authorization

  • In scope: Apps you own that need user-selected photos/videos.
  • Out of scope: Covert gallery exfiltration; exploiting picker bugs on third-party apps without authorization.
  • Treat selected media as user-sensitive; upload over TLS with authz.
  • Pair with code-quality-standards.

When To Use

  • Letting users choose images/videos for avatar, attachments, posts.
  • Removing broad storage permissions on modern Android.
  • Replacing ACTION_GET_CONTENT / Storage Access Framework patterns with Photo Picker UX when appropriate.
  • Privacy review of media access.

Do Not Use As Primary

NeedSkill instead
Health data permissionsandroid-health-connect
General intent securityandroid-intent-security
WebView file upload hardeningandroid-webview-security
Implementation quality baselinecode-quality-standards

Domain Focus

ApproachPermission posture
Android Photo PickerNo broad storage read for simple picks
SAF OpenDocumentUser-granted URI per file
READ_MEDIA_IMAGES etc.Broader access — justify strongly
Legacy READ_EXTERNAL_STORAGEAvoid on new targets

Workflow

1. Confirm scope and success criteria
  1. Record media types (image/video), multi-select needs, max count, upload destinations.
  2. Success: picker works without broad storage permission; app only accesses returned URIs; revoke/unload handled.
  3. Privacy policy mentions media uploads.
2. Prefer Photo Picker APIs
kotlin
// Activity Result API — PickVisualMedia
val pickMedia = registerForActivityResult(ActivityResultContracts.PickVisualMedia()) { uri ->
if (uri != null) handleUri(uri) else /* canceled */
}
pickMedia.launch(
PickVisualMediaRequest(ActivityResultContracts.PickVisualMedia.ImageOnly)
)
// Multi-select
val pickMultiple = registerForActivityResult(
ActivityResultContracts.PickMultipleVisualMedia(maxItems = 5)
) { uris -> handleUris(uris) }
  1. Use ImageOnly / VideoOnly / ImageAndVideo intentionally.
  2. Cap maxItems for multi-select.
3. Handle URIs safely
kotlin
// Persist permission only if you must re-read later and API grants it
contentResolver.takePersistableUriPermission(
uri, Intent.FLAG_GRANT_READ_URI_PERMISSION
)
// Read via ContentResolver.openInputStream(uri) — not raw paths
// Never log full content; scrub EXIF if product requires (location)
RiskMitigation
Path traversal assumptionsUse ContentResolver only
EXIF GPSStrip before upload if policy requires
Huge filesSize limits + streaming upload
Malicious image codecsServer-side re-encode; updated image libs
4. Permissions cleanup
xml
<!-- Remove unnecessary -->
<!-- <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> -->
<!-- Add only if true need for broad library access beyond picker -->
  1. Audit merged manifest for SDK-added permissions.
  2. Document any remaining READ_MEDIA_* with product justification.
5. WebView / hybrid note
  1. File chooser callbacks should also launch Photo Picker / SAF — not grant full storage.
  2. See android-webview-security for JS bridges.
6. Verify
bash
adb shell dumpsys package com.example.app | rg -i 'READ_MEDIA|READ_EXTERNAL|WRITE_EXTERNAL'
# Manual: deny storage; picker still works
# Manual: select image; upload succeeds; app cannot list other photos
7. Hand off
  1. UX copy for permission-less picker.
  2. Server virus/malware scanning for uploads if threat model requires.
  3. Retention/deletion for uploaded media.

Good / Bad

TopicGoodBad
AccessUser-selected URIs onlyRequest all photos for one avatar
EXIFStrip location when neededUpload raw GPS to public CDN
SizeClient + server limitsDecode unbounded bitmaps on main thread
PermissionsMinimalLegacy storage “for convenience”

Output Checklist

  • [ ] Media types and limits defined
  • [ ] Photo Picker / SAF implemented
  • [ ] Broad storage permissions removed or justified
  • [ ] URI handling + EXIF policy done
  • [ ] Upload security (TLS, authz, size) reviewed
  • [ ] Manual tests without storage permission
  • [ ] Privacy policy updated
  • [ ] code-quality-standards applied

Rules

  • User selection is the privacy boundary — honor it.
  • Prefer Photo Picker over broad media permissions.
  • Do not attempt to read gallery without consent.
  • Treat uploaded media as sensitive user content.
  • Owned apps only.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bedkillerspacex-boop/codex-skill-library/android-photo-picker/badge)](https://verified-skill.com/skills/bedkillerspacex-boop/codex-skill-library/android-photo-picker)

Something wrong with this skill or its page? Tell us.