hoangnguyen0403/android-legacy-security
Harden Intent handling, WebView configuration, and FileProvider access in Android apps. Use when securing Intent extras, configuring WebViews, or exposing files via FileProvider; defer manifest export flags and generic Bundle typing to focused Android security guidance.
npx skills add https://github.com/HoangNguyen0403/agent-skills-standard --skill android-legacy-security
android:exported="false" for all internal Activities/Services unless needed for deep links.resolveActivity before starting implicit intents.See hardening examples for manifest and component restrictions.
javaScriptEnabled = false. Use WebViewClient and WebChromeClient to restrict navigation.allowFileAccess and allowFileAccessFromFileURLs to prevent local file theft via XSS.@JavascriptInterface (API 17+), strictly limit exposed API surface.See hardening examples for WebView lockdown patterns.
file:// URIs. Use FileProvider to generate content:// URIs with temporary permissions.EncryptedSharedPreferences for auth tokens and PII. Never use legacy public-read file modes.NetworkSecurityConfig to disable cleartextTrafficPermitted and implement certificate pinning.Take hoangnguyen0403/android-legacy-security from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.