android-security-best-practices

android-security-best-practices is a skill for Claude Code, Codex from noloman/Android-AI-skills. It costs 0 tokens per session (348 once invoked), scanned A, original, MIT.

A set of security rules and coding patterns for Android applications. Android is Google's operating system for phones, tablets, TVs, and other devices.

In plain words
What is it for?
Use it when building or reviewing Android apps, especially their storage, network connections, WebViews, intents, app components, release settings, and secret handling.
Why use it?
It helps prevent common problems such as exposed secrets, unsafe data storage, unencrypted network traffic, exported app components, and sensitive information in logs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building or reviewing Android apps, especially their storage, network connections, WebViews, intents, app components, release settings, and secret handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/noloman/android-ai-skills/android-security-best-practices
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add noloman/Android-AI-skills --skill android-security-best-practices
Clone the repo
git clone --depth 1 https://github.com/noloman/Android-AI-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for android-security-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/noloman/android-ai-skills/android-security-best-practices/github.svg)](https://agentmods.dev/skills/noloman/android-ai-skills/android-security-best-practices)
Your own site
<a href="https://agentmods.dev/skills/noloman/android-ai-skills/android-security-best-practices"><img src="https://agentmods.dev/badge/skills/noloman/android-ai-skills/android-security-best-practices/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for android-security-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/noloman/android-ai-skills/android-security-best-practices"><img src="https://agentmods.dev/badge/skills/noloman/android-ai-skills/android-security-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 348 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00348
Opus 5 $0.00000 $0.00174
Sonnet 5 $0.00000 $0.00070
Haiku 4.5 $0.00000 $0.00035

Measured 9d ago against content hash a2e4f38daf7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

android-security-best-practices scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

android-security-best-practices/SKILL.md · 40 lines

What it actually says


name: android-security-best-practices description: Android security best practices — secrets, storage, network, components, WebView, R8. user-invocable: true

Android Security Best Practices

Cross-cutting skill — always activates alongside the project-type-specific skill.

Hard Rules

  • No hardcoded secrets (API keys, tokens, passwords) in source code.
  • Use EncryptedSharedPreferences or Android Keystore for sensitive data at rest.
  • Enforce HTTPS for all network traffic — no cleartext permitted.
  • Set android:exported="false" on all components unless explicitly needed.
  • Use PendingIntent.FLAG_IMMUTABLE for all PendingIntents (or FLAG_MUTABLE only when required).
  • Disable WebView file access — setAllowFileAccess(false).
  • Validate all incoming Intent data before use.
  • Enable R8 (minifyEnabled true) for release builds.
  • Never log sensitive data (tokens, passwords, PII) — not even at DEBUG level.
  • Use network_security_config.xml in production.

Core Patterns

  • Store secrets in local.properties (gitignored) or CI environment variables.
  • Use Secrets Gradle Plugin to inject secrets as BuildConfig fields.
  • Pin certificates for critical API endpoints.
  • Prefer explicit intents over implicit for internal communication.
  • Restrict ContentProvider access with read/write permissions.
  • Use Play Integrity API for device attestation — SafetyNet is deprecated and shut down.

References

  • references/secure_storage.md
  • references/network_security.md
  • references/webview_security.md
  • references/intent_component_security.md
  • references/r8_proguard.md
  • references/secrets_management.md
  • references/play_integrity.md
Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 40 lines · 0 tokens per session scan A a2e4f38daf7d

Subscribe to this mod's changes

android-security-best-practices is a skill published in the GitHub repository noloman/Android-AI-skills (6 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 348 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

orca-emulator-android

Android device and emulator control from inside Orca over adb, with the live device view in Orca's emulator pane. Use when driving an adb-connected emulator or phone on Windows, Linux, or macOS: booting AVDs, taps, swipes, typing, hardware buttons, rotation, app install and launch, runtime permissions, the…

stablyai/orca · 102 tokens

android-tombstone-symbolication

Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app…

dotnet/skills · 176 tokens

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

winapp-maui

Package and sign .NET MAUI Windows apps with winapp, resolving the resizetizer manifest dependency. Use when packaging or signing a .NET MAUI Windows app, building a MAUI MSIX or signed unpackaged build in CI, or fixing 'manifest contains unresolved placeholders ($placeholder$)' errors from winapp package.

microsoft/winappCli · 71 tokens

apple-search-ads

When the user wants to set up, optimize, or scale Apple Search Ads (ASA) campaigns — including keyword bidding, match types, campaign structure, Creative Product Sets, CPP routing, and ROAS optimization. Use when the user mentions "Apple Search Ads", "ASA", "Search Ads", "Search tab ads", "Today tab ads", "CPT"…

Eronred/aso-skills · 127 tokens

android-pentest

A guide for authorized security testing of Android apps, covering APK inspection, runtime testing, traffic capture, code review, and function hooking. An APK is the installable package used by an Android app.

Netw0rkNoob/VulnClaw · 32 tokens