<< All versions
Skill v1.0.2
currentAutomated scan100/100hoangnguyen0403/agent-skills-standard/android-legacy-security
4 files
──Details
PublishedJune 27, 2026 at 09:18 PM
Content Hashsha256:3e42ebaa98c00f82...
Git SHA05883775ee79
Bump Typepatch
──Files
Files (1 file, 1.9 KB)
SKILL.md1.9 KBactive
SKILL.md · 51 lines · 1.9 KB
version: "1.0.2" name: android-legacy-security description: Harden Intent handling, WebView configuration, and FileProvider access in Android apps. Use when securing Intent extras, configuring WebViews, or exposing files via FileProvider. metadata: triggers: files:
- '**/*Activity.kt'
- '**/WebView.kt'
- 'AndroidManifest.xml'
keywords:
- Intent
- WebView
- FileProvider
- javaScriptEnabled
Android Legacy Security Standards
Priority: P0
1. Secure Intents and Components
- Set
android:exported="false"for all internal Activities/Services unless needed for deep links. - Verify
resolveActivitybefore starting implicit intents. - Treat all incoming Intent extras as untrusted — validate all schema/data types.
See hardening examples for manifest and component restrictions.
2. Lock Down WebViews
- Default to
javaScriptEnabled = false. UseWebViewClientandWebChromeClientto restrict navigation. - Disable
allowFileAccessandallowFileAccessFromFileURLsto prevent local file theft via XSS. - If using
@JavascriptInterface(API 17+), strictly limit exposed API surface.
See hardening examples for WebView lockdown patterns.
3. Protect Storage and Files
- NEVER expose `file://` URIs. Use
FileProviderto generatecontent://URIs with temporary permissions. - Use
EncryptedSharedPreferencesfor auth tokens and PII. Never use legacy public-read file modes. - Use
NetworkSecurityConfigto disablecleartextTrafficPermittedand implement certificate pinning.
Anti-Patterns
- No Implicit Intents Internally: Use explicit intents with component class name.
- No Public Read Modes: Never expose SharedPreferences or files with global read access.