Skip to content

Add permission security snippets and region tags - #1074

Open
strzyzkat wants to merge 3 commits into
mainfrom
strzyzkat/permissions-security-snippets
Open

strzyzkat wants to merge 3 commits into
mainfrom
strzyzkat/permissions-security-snippets

Conversation

@strzyzkat

@strzyzkat strzyzkat commented Sep 8, 2026

Copy link
Copy Markdown

Add Android permission security and inter-component IPC snippets

Summary

Adds code snippets, manifest configurations, and resource declarations covering permission security, caller verification, and inter-component communication patterns for documentation and skill grounding.

Patterns covered

Topic Primary file Snippet tags
Custom signature permissions AndroidManifest.xml android_security_custom_permission_signature_manifest
android_security_custom_permission_service_manifest
knownSigner permissions security_certs.xml
AndroidManifest.xml
android_security_known_signer_certs_xml
android_security_custom_permission_known_signer_manifest
android_security_known_signer_service_manifest
Caller authentication & anti-pattern CallerVerifier.kt android_security_caller_verifier
android_security_caller_signature_verification
android_security_caller_spoofing_vulnerable
Runtime permissions flow RuntimePermissionsActivity.kt android_security_runtime_permission_request
Protected broadcasts & sender identity ProtectedBroadcastSnippets.kt
AndroidManifest.xml
android_security_protected_broadcast_send
android_security_broadcast_sender_identity
android_security_broadcast_receiver_verify_identity
android_security_protected_broadcast_receiver_manifest
Bound service permission checks FineGrainedBoundService.kt android_security_service_enforce_calling_permission
Split read/write provider & scoped URIs AndroidManifest.xml
UriPermissionSnippets.kt
android_security_content_provider_read_write_manifest
android_security_provider_read_write_manifest
android_security_uri_permission_management
Sequential location LocationPermissionSnippets.kt android_security_sequential_location_permission
Photo picker MediaPickerSnippets.kt android_security_photo_picker_request
Runtime error boundaries PermissionErrorHandling.kt android_security_permission_error_handling

Validation

  • Executed ./gradlew :security:spotlessCheck (0 errors).
  • Executed ./gradlew :security:check and ./gradlew :security:lintDebug (0 errors, 0 warnings).

@strzyzkat
strzyzkat requested a review from sabs231 September 8, 2026 14:11
@strzyzkat
strzyzkat requested a review from a team as a code owner September 8, 2026 14:11
@snippet-bot

snippet-bot Bot commented Sep 8, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 21 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@sabs231 sabs231 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to use agent to reject/accept comments :)

Comment thread security/src/main/AndroidManifest.xml Outdated
Comment thread security/src/main/AndroidManifest.xml Outdated
Comment thread gradle/libs.versions.toml Outdated

@sabs231 sabs231 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one minor thing on this file: security/src/main/res/xml/allowed_peers.xml

Left comment there

and don't forget to update the branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants