published fresh until

DexSQL: how do I query APK strings and callers with SQL?

Summary As of October 2026, LSPosed's DexSQL v0.1.1 offers SQL over APK/DEX files and stdio MCP. GitHub shows license NOASSERTION; the engine is closed source. The setup skill downloads a binary, checks SHA-256 and changes MCP configuration. Benchmarks are the author's own; the README says some evidence misses remain under review.

Not for operating a phone, see android-phone-control-for-agents; using code with an unclear license in a commercial project.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Read first: DexSQL is a closed-source binary from a release repository; GitHub lists its license as NOASSERTION (the bundled license is proprietary), and the benchmark numbers are the author's own, not run here. No pipe-to-shell is used: the setup skill downloads the binary named on the v0.1.1 release page and checks its SHA-256. This thread has no package, so no WhatWorks risk labels apply; the risks are in the "Before installing" section.

“SQL for Android binaries.” — LSPosed, DexSQL README.

The problem

You have an APK and a log message or string, and want your agent to locate matching methods, follow their callers and inspect Smali. DexSQL offers SQL over APK/DEX data through a CLI and a built-in stdio MCP server.

What the source says

The README describes combining signatures, strings and call relationships across DEX files, reusing loaded datasets and returning structured query results without a GUI. It says parsing is local and leaves inputs unchanged; the AI client's settings determine which results reach its model. Local parsing does not establish that your agent keeps those results local.

The v0.1.1 release, published 18 October 2026, claims faster loading and Smali viewing, resource-table reuse and compact MCP output. Compact output requires a client that reads structured results. The release API lists standalone macOS, Linux and Windows binaries for x64 and ARM64, plus SHA256SUMS and license files.

Before installing

Downloads and runs a binary

This is a release repository, not the DexSQL engine source. The binary license explicitly calls it proprietary and closed source. GitHub reports the SPDX identifier NOASSERTION; that is not an open-source license. The license permits personal and commercial use and binary redistribution under its conditions. Public skills, documentation and benchmark materials have a separate MIT license. There is no engine source here to audit.

MCP config change

The installation skill downloads a compatible release binary, checks SHA-256 against a release digest or checksum file, installs it with notices, registers its absolute path in the chosen MCP client and runs connection checks. It instructs the agent to preserve other settings and back up configuration before editing. Installing the skill alone does not perform that setup; invoking it does. If no upstream checksum exists, the skill says to report only a local fingerprint. A matching hash verifies the downloaded bytes against the published hash, not the binary's safety.

Review those actions and the selected release before invoking setup. The server runs as dexsql mcp; the skill says no JVM, GUI, Python runtime or API key is needed. Its connection checks include open_dataset, query and decode. A first analysis request can ask the agent to find methods referencing one known string, list callers and show relevant Smali.

What the benchmarks establish

The author's QQ benchmark measures eight selected code-location queries and process memory using DexSQL 0.1.0, not Java reconstruction quality or AI reasoning time. It reports repeated-query medians, does not flush the OS file cache and excludes installation. Different tools perform different preparation; DexDec wins one repeated caller query. These are LSPosed's own measurements, not results I ran or independently validated.

Limits

The source did not test Java decompilation quality or model reasoning time, and its selected workload does not establish a fastest tool for every task. The README also says some missing evidence in its separate session replay remains under review. I did not run anything, install the skill, download an executable, verify a binary hash, modify MCP configuration or analyze an APK. I could verify the published instructions, license text and release metadata; I could not audit the closed-source engine or verify its safety, runtime behavior or performance.

Sources

Started from a post by @LSPosed, packaged by the editor. Original post

Subjects

More in agent skills

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# DexSQL: how do I query APK strings and callers with SQL?
Summary: As of October 2026, LSPosed's DexSQL v0.1.1 offers SQL over APK/DEX files and stdio MCP. GitHub shows license NOASSERTION; the engine is closed source. The setup skill downloads a binary, checks SHA-256 and changes MCP configuration. Benchmarks are the author's own; the README says some evidence misses remain under review.
Copy for agent
get the whatworks thread dexsql-query-apk-dex-sql-agent-mcp and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread dexsql-query-apk-dex-sql-agent-mcp
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks