android-permissions-security
Skill by android
Audits Android projects for permission and IPC security gaps, and guides remediation of manifest, component and runtime permission issues. It is written for Android developers reviewing AndroidManifest.xml and securing Services, Receivers and Providers.
Install android-permissions-security
Built from the published package, never by AI.
git clone --depth 1 https://github.com/android/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/security/android-permissions-security ~/.claude/skills/android-permissions-securityRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install android-permissions-security in Claude Code
git clone --depth 1 https://github.com/android/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/security/android-permissions-security ~/.gemini/antigravity-cli/skills/android-permissions-securityAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install android-permissions-security in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Android Permissions Security is a skill that guides an AI assistant through auditing Android projects for permission and inter-process communication (IPC) security problems. It provides a playbook of vulnerability areas, each with a search pattern, risk and remediation action. These cover weak custom permission protection, overly broad URI grants, missing ContentProvider split permissions, spoofable caller identity checks, bound service permission bypass, and insecure broadcasts.
The skill also explains how to declare custom permissions with protection levels such as signature and signature|knownSigner, and how to split ContentProvider read and write permissions. It covers runtime permission flows, including rationale handling, permanent denial, and the Photo Picker for media selection. It is aimed at Android developers reviewing AndroidManifest.xml, securing components, and verifying caller UID with Binder. The metadata lists Google LLC as author and 2026-12-03 as the last update date.
Written from the project's SKILL.md and checked against it.
What it can do
- Permission gap auditChecks an Android project against a playbook of permission and IPC vulnerability areas, with risks and fixes.
- Custom permission protectionExplains signature and signature|knownSigner protection levels and when to use each.
- ContentProvider split permissionsConfigures separate read and write permissions for a provider with signature protection.
- URI grant scopingReplaces wildcard grant-uri-permission paths with explicit scoped subpaths.
- Caller identity verificationReplaces spoofable string checks with Binder.getCallingUid() and signing certificate checks.
- Bound service method checksAdds enforceCallingPermission checks to mutating AIDL methods in bound services.
- Runtime permission flowDescribes a three-step grant, rationale and request flow, with handling for permanent denial.
- Runtime UriPermission managementShows how to grant, persist, audit and revoke scoped URI access at runtime.
What you need
- Android project with androidx core-ktx and activity-ktx (or fragment-ktx) dependencies
- compileSdk and targetSdk of at least 31 for knownSigner permissions
- compileSdk and targetSdk of at least 34 for broadcast identity sharing
Try asking
- Audit my AndroidManifest.xml for weak custom permissions and wildcard URI grants.
- Split my ContentProvider read and write permissions with signature protection.
- Replace my user image picker with the zero-permission Photo Picker.
Good to know
- knownSigner permissions require API 31 or higher.
- Broadcast identity sharing requires API 34 or higher.
- The signatureOrSystem protection level is deprecated and should be avoided in non-system apps.
- The source ends partway through a code snippet.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: security/android-permissions-security/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md29 KB -
references/android/guide/topics/manifest/permission-element.md6 KB -
references/android/guide/topics/permissions/overview.md10 KB -
references/android/privacy-and-security/risks/sender-of-pending-intents.md4 KB -
references/android/training/permissions/requesting.md38 KB
Alternatives to android-permissions-security
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
android-permissions-security: common questions
Which Android API levels do the knownSigner and broadcast identity features need?
knownSigner partner permissions need API 31 or higher. BroadcastOptions.setShareIdentityEnabled needs API 34 or higher, according to the prerequisites.
How should caller identity be verified in a bound service?
The skill says to remove string-based checks and authenticate the caller using Binder.getCallingUid() and pm.hasSigningCertificate().
What should replace a wildcard grant-uri-permission path?
Replace pathPrefix="/" or pathPrefix="" with an explicit scoped subpath such as /shared/, and keep grantUriPermissions set to true.
How do I install android-permissions-security?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is android-permissions-security free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is android-permissions-security safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to android-permissions-security?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
