More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Kotlin Android Code Check

    1

    Check Android Kotlin and Java code before release: WebView JavaScript bridges on remote pages, onReceivedSslError proceed(), trust-all TLS, keys in the APK, tokens in SharedPreferences and logs, mutable PendingIntents.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Kotlin Android Code Check

    Kotlin Android Code Check

    Example session with this skill installed

    Check this project with kotlin-android-code-check.

    • Read your context and instructions
    • Compiled the kotlin android code

    $ python3 scripts/check_android_code.py examples/risky
    BLOCK app/src/main/java/com/example/shop/net/ApiClient.kt:16 A02 TLS_CHECK_DISABLED
    override fun checkServerTrusted(chain: Array<out X509Certificate>?, authType: String?) {}
    Why: A certificate check is turned off: a WebViewClient's onReceivedSslError calls handler.proceed() without looking at the certificate (checking only getPrimaryError() or asking the user in a dialog is not a check), an X509TrustManager's checkServerTrusted accepts every chain, or a HostnameVerifier accepts every host (ALLOW_ALL_HOSTNAME_VERIFIER, NoopHostnameVerifier, { _, _ -> true }). Anyone on the same Wi-Fi or behind a proxy can then read and change the traffic, logins and tokens included. Google Play sends warnings for these handlers and may remove apps that keep them.
    Safer: Remove the override and fix the server certificate; in onReceivedSslError call handler.cancel() (the default). For your own CA or a staging server, add it in a network security config (res/xml, with debug-overrides for debug-only CAs) or pin with OkHttp's CertificatePinner instead of writing a TrustManager. Code that only debug builds compile (src/debug/, or inside if (BuildConfig.DEBUG)) is not reported.

    BLOCK app/src/main/java/com/example/shop/net/ApiClient.kt:24 A02 TLS_CHECK_DISABLED
    BLOCK app/src/main/java/com/example/shop/net/PaymentsConfig.kt:6 A03 SECRET_IN_APP
    BLOCK app/src/main/java/com/example/shop/web/HelpActivity.kt:23 A01 WEBVIEW_JS_BRIDGE_ON_REMOTE_PAGE
    BLOCK app/src/main/java/com/example/shop/web/ShopWebViewClient.kt:12 A02 TLS_CHECK_DISABLED
    BLOCK app/src/main/res/values/strings.xml:8 A03 SECRET_IN_APP
    REVIEW app/src/main/java/com/example/shop/auth/SessionStore.kt:11 A12 SECRET_IN_LOG
    REVIEW app/src/main/java/com/example/shop/auth/SessionStore.kt:13 A11 TOKEN_IN_PLAIN_PREFERENCES
    REVIEW app/src/main/java/com/example/shop/auth/SessionStore.kt:14 A11 TOKEN_IN_PLAIN_PREFERENCES
    REVIEW app/src/main/java/com/example/shop/data/OrderDao.java:20 A17 SQL_BUILT_FROM_VALUES
    REVIEW app/src/main/java/com/example/shop/data/OrderDao.java:24 A13 WORLD_ACCESSIBLE_FILE
    REVIEW app/src/main/java/com/example/shop/net/ApiClient.kt:12 A15 CLEARTEXT_HTTP_URL
    REVIEW app/src/main/java/com/example/shop/net/ApiClient.kt:25 A12 SECRET_IN_LOG
    REVIEW app/src/main/java/com/example/shop/notify/OrderNotifier.kt:15 A14 MUTABLE_PENDING_INTENT
    REVIEW app/src/main/java/com/example/shop/web/HelpActivity.kt:16 A18 WEBVIEW_DEBUGGING_ON
    REVIEW app/src/main/java/com/example/shop/web/HelpActivity.kt:20 A16 WEBVIEW_FILE_ACCESS
    REVIEW app/src/main/java/com/example/shop/web/HelpActivity.kt:21 A15 CLEARTEXT_HTTP_URL
    REVIEW app/src/main/res/values/strings.xml:6 A15 CLEARTEXT_HTTP_URL

    (Each finding also has Why and Safer lines, as in the first one.)
    Verdict: BLOCK. Checked 8 files, 8 with Android Kotlin, Java or string resource content.
    This is a static check of file text. NOT FLAGGED is not a guarantee.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    handler.proceed() in onReceivedSslError, added once for a staging server, or addJavascriptInterface on a WebView that opens any URL from a deep link: the first lets anyone on the same Wi-Fi read your users' traffic, the second lets any web page call your app's code. This skill finds those and nine other Android code mistakes before you ship, and tells you how to fix each one.

    Your agent runs a scanner on your app's .kt and .java files and the string resources in res/values. It reads Kotlin and Java as code (comments, raw strings, $templates), skips tests, generated code and build folders, and knows the usual guards: if (BuildConfig.DEBUG), debug source sets, a shouldOverrideUrlLoading allow list, ? placeholders in SQL, FLAG_IMMUTABLE set in a local variable. Keys meant to ship in apps, such as Google Maps and Firebase keys, are not reported. It never runs Gradle or the app. It returns BLOCK, REVIEW, or NOT FLAGGED, with the file, line, reason, and a safer approach. Secrets are never printed.

    What it checks

    BLOCK

    • A01: a WebView JavaScript bridge (addJavascriptInterface) on a page loaded from the web or from an Intent, with no navigation allow list
    • A02: onReceivedSslError that calls proceed(), trust-all TrustManagers, and hostname verifiers that accept any host
    • A03: secrets in code or string resources: known key formats, Supabase service_role keys, fixed Authorization and X-Api-Key headers, Gemini keys, long values under secret names

    REVIEW

    • A11: tokens and passwords saved in plain SharedPreferences or Preferences DataStore
    • A12: tokens, passwords and session ids in Log, Timber or println output, and HttpLoggingInterceptor logging bodies or unredacted headers
    • A13: MODE_WORLD_READABLE, setReadable(true, false) and chmod 666 or 777
    • A14: PendingIntents without FLAG_IMMUTABLE, or FLAG_MUTABLE around an implicit Intent
    • A15: http:// and ws:// servers in code and string resources, and WebView mixed content
    • A16: WebView file access (allowFileAccess and the file-URL access settings)
    • A17: SQL for rawQuery, execSQL or SimpleSQLiteQuery built from text values with templates or + (typed numbers are fine)
    • A18: WebView debugging turned on outside debug builds

    What's included

    • The scanner (Python 3.9+, standard library only)
    • A rules guide with the reason and safer approach for each rule
    • A risky and a safe example Android project, and the real report the scanner produces on the risky one

    Limits It reads each file as written: values that pass between files, Gradle buildConfigField values, AndroidManifest.xml, native code and your dependencies are not checked. NOT FLAGGED is not a guarantee.

    Static check of Kotlin, Java and string resource text, one file at a time. AndroidManifest.xml, network security config and Gradle files are not read. NOT FLAGGED is not a guarantee.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    Permissions

    Terminal / Shell
    Read Files

    Runs one local Python script in the terminal. It reads your project's files, writes nothing, and makes no network calls. The example project includes clearly fake, inert keys (NOTREAL, EXAMPLE) for the scanner to find. It is never built or run.

    Listed5 days ago

    What's inside

    Frequently Asked Questions

    No. The script reads local files only and makes no network calls.

    No. It only reports. Your agent changes files only if you ask it to.

    Any agent that supports SKILL.md skills and can run a terminal command, such as Claude Code. It needs Python 3.9 or newer and nothing else.

    No. It reads Kotlin, Java and resource files as text. It never runs Gradle, adb or an emulator.

    BLOCK: fix it before you ship. REVIEW: check it before release. NOT FLAGGED: no rule matched. It is a static check, so NOT FLAGGED is not a guarantee.

    The scanner, a rules guide with the reason and safer approach for every rule, a risky and a safe example Android app, and the real report the scanner prints on the risky example.

    New in Mobile Development