Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -40% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -22% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -16% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -12% | 0% |
| case-13 | ✓→✓ | = Same ✓ | -20% | 0% |
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.Other measured skills in the registry, with their headline benchmark lift.