/vibe:android-privacy-expertfrom vibe
Guides implementing Android privacy features: photo picker, partial photo/video access, per-app languages, package visibility, scoped storage, and runtime permission rationales.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in Android's user-privacy surface — the photo picker that makes READ_MEDIA_IMAGES largely unnecessary, partial photo/video access for apps that still need a custom picker, per-app languages without a settings screen, package visibility queries that survive the Android 11 lockdown, scoped storage, and the right way to ask for runtime permissions including shouldShowRequestPermissionRationale.
ActivityResultContracts.PickVisualMedia / PickMultipleVisualMedia)READ_MEDIA_VISUAL_USER_SELECTED (partial photo/video access, Android 14+)READ_MEDIA_IMAGES / READ_MEDIA_VIDEO / READ_MEDIA_AUDIO (Android 13+)AppCompatDelegate.setApplicationLocales)<queries> element)MediaStore APIshouldShowRequestPermissionRationale and the educational UI requirementThe system photo picker requires no permission. Use it whenever you need user-selected images/videos:
val pickMedia = registerForActivityResult(PickVisualMedia()) { uri ->
if (uri != null) loadImage(uri)
}
// One image
pickMedia.launch(PickVisualMediaRequest(PickVisualMedia.ImageOnly))
// Multiple
val pickMultiple = registerForActivityResult(PickMultipleVisualMedia(maxItems = 5)) { uris ->
/* ... */
}
The picker is backported to Android 4.4+ via Google Play Services so you don't need if (Build.VERSION.SDK_INT >= ...) branches.
If you maintain a custom gallery picker (your own grid view) instead of the system picker, declare READ_MEDIA_VISUAL_USER_SELECTED so users can grant a subset rather than all-or-nothing:
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
val perms = arrayOf(
Manifest.permission.READ_MEDIA_IMAGES,
Manifest.permission.READ_MEDIA_VIDEO,
Manifest.permission.READ_MEDIA_VISUAL_USER_SELECTED
)
val launcher = registerForActivityResult(RequestMultiplePermissions()) { result ->
val full = result[Manifest.permission.READ_MEDIA_IMAGES] == true
val partial = result[Manifest.permission.READ_MEDIA_VISUAL_USER_SELECTED] == true
when {
full -> showFullGallery()
partial -> showSelectedSubsetAndOption("Select more")
else -> showRationale()
}
}
launcher.launch(perms)
You can re-prompt for additional selection later with MediaStore.ACTION_PICK_IMAGES or by re-requesting the permission.
Google Play strongly recommends migrating to the system photo picker unless you have a documented need for the custom UI (and Play policy enforces this for some app categories).
Users can pick a language per-app from system Settings (Android 13+). To set it programmatically (e.g., from in-app settings):
AppCompatDelegate.setApplicationLocales(LocaleListCompat.forLanguageTags("fr-FR"))
Backported to AppCompat for older OS versions. Declare LocaleConfig so the system Settings page shows your supported locales:
AndroidManifest.xml:
<application android:localeConfig="@xml/locales_config" ... >
res/xml/locales_config.xml:
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
<locale android:name="en"/>
<locale android:name="fr-FR"/>
<locale android:name="ja"/>
</locale-config>
<queries>)Since Android 11 (API 30), you can't enumerate installed apps unless declared. Add <queries> for the apps/intents you legitimately need:
<queries>
<package android:name="com.example.partner" />
<intent>
<action android:name="android.intent.action.SEND" />
<data android:mimeType="image/*" />
</intent>
<provider android:authorities="com.example.contentprovider" />
</queries>
Use the broad QUERY_ALL_PACKAGES permission only when justifiable (some Play categories ban it).
On Android 10+, app-scoped storage is enforced. Use MediaStore for shared media, app-private Context.filesDir / Context.cacheDir for everything else. Avoid READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE on Android 13+; they no longer apply to media (use the READ_MEDIA_* set instead).
val resolver = context.contentResolver
val uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY)
val newUri = resolver.insert(uri, ContentValues().apply {
put(MediaStore.MediaColumns.DISPLAY_NAME, "photo.jpg")
put(MediaStore.MediaColumns.MIME_TYPE, "image/jpeg")
put(MediaStore.MediaColumns.RELATIVE_PATH, Environment.DIRECTORY_PICTURES + "/MyApp")
put(MediaStore.MediaColumns.IS_PENDING, 1)
})
// write into newUri, then clear IS_PENDING
Permission UX should be: explain → request → degrade gracefully if denied.
when {
permGranted -> doThing()
activity.shouldShowRequestPermissionRationale(perm) -> showInAppRationale()
else -> launcher.launch(perm) // first ask, or "don't ask again" — handle deny
}
shouldShowRequestPermissionRationale returns true only between the first denial and "don't ask again". After "don't ask again", it returns false even though permission is denied — fall back to a Settings deep-link.
Users can put apps inside a separate, locked profile. Apps installed in Private Space are hidden from recents/launcher when locked. Most apps need no changes; just don't assume your package is unique on a device — the same app may be installed in main and private profiles.
READ_MEDIA_IMAGES when the photo picker would do — Play policy strongly discourages, and it's a bad UX cost.READ_MEDIA_VISUAL_USER_SELECTED as a one-time grant — users can re-prompt; honor partial state.shouldShowRequestPermissionRationale before the first request — always returns false; you can't differentiate "fresh install" from "don't ask again". Track first-ask in your own preferences.<queries> for legitimate intent resolution — PackageManager.queryIntentActivities returns empty.WRITE_EXTERNAL_STORAGE — ignored on Android 11+./sdcard/... — broken under scoped storage.localeConfig — Settings page won't show your app's supported languages.READ_MEDIA_VISUAL_USER_SELECTED: API 34 (Android 14)+.READ_MEDIA_IMAGES/VIDEO/AUDIO: API 33 (Android 13)+; older devices use READ_EXTERNAL_STORAGE.Use this when designing any media access flow, evaluating Play Store rejection risk for permission usage, adding multi-language support, integrating with other apps via implicit intents, or auditing your app's Manifest.xml against modern Android norms. Pair with android-security-expert-mode for KeyStore/biometric flows and android-15-features-expert-mode for Private Space and screen-recording detection.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job