> android-legacy-security

Standards for Intents, WebViews, and FileProvider. Use when securing Intent handling, WebViews, or FileProvider access in Android. (triggers: **/*Activity.kt, **/*WebView*.kt, AndroidManifest.xml, Intent, WebView, FileProvider, javaScriptEnabled)

fetch
$curl "https://skillshub.wtf/HoangNguyen0403/agent-skills-standard/android-legacy-security?format=md"
SKILL.mdandroid-legacy-security

Android Legacy Security Standards

Priority: P0

Implementation Guidelines

Intents

  • Implicit: Always verify resolveActivity before starting.
  • Exported: Verify android:exported logic (as per security skill).
  • Data: Treat all incoming Intent extras as untrusted input.

WebView

  • JS: Default to javaScriptEnabled = false. Only enable for trusted domains.
  • File Access: Disable allowFileAccess to prevent local file theft via XSS.

File Exposure

  • FileProvider: NEVER expose file:// URIs. Use FileProvider.

Anti-Patterns

  • Implicit Internal: **No Implicit for Internal**: Use Explicit Intents (class name).
  • World Readable: **No MODE_WORLD_READABLE**: SharedPreferences/Files.

References

┌ stats

installs/wk0
░░░░░░░░░░
github stars341
██████████
first seenMar 17, 2026
└────────────

┌ repo

HoangNguyen0403/agent-skills-standard
by HoangNguyen0403
└────────────

┌ tags

└────────────