Authorization notice. Dexsql Release is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Reverse engineering. Only analyze APKs you have the right to inspect, since this traces an app's internal logging and call paths.
Who it is forA reverse engineer or security reviewer who sees a log message in an app and wants to know which code produces it and what triggers that code.
The problemFollowing a string through Smali and decompiled code by hand is slow, and call chains are easy to lose track of.
The outcomeThe agent returns the methods that reference the message, their callers, and the relevant Smali, based on structured query results.
What you need first
- A terminal on macOS, Linux or Windows
- The DexSQL executable or archive from the Releases page that matches your OS and CPU
- An APK or DEX file you have the right to analyze
- An MCP-capable AI client such as Codex, if you want agent access
Steps
- Open the Releases page and download the executable or archive that matches your operating system and CPU.
- Rename the executable to
dexsql.exeon Windows ordexsqlon macOS/Linux, then runchmod +x /path/to/dexsqlon macOS/Linux. - Save
LICENSEandLICENSE-AUXILIARYfrom the same release alongside the executable. - Register the server with Codex by running
codex mcp add dexsql -- /absolute/path/to/dexsql mcp. - Ask the agent: Open /path/to/app.apk. Find methods referencing this log message, list their callers, and show the relevant Smali.
Prompt for your agent
Use the dexsql MCP server to open <path to APK>. Find every method that references the log message <message text>, list each caller of those methods, and show the relevant Smali. Before summarizing, confirm that each reported method name appears in the query results.
Caveat. The README lists the bundle for macOS, x86_64 Linux and x86_64 Windows only, so other platforms need the install skill or manual setup, and the README's Codex command is the only client registration it gives.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for LSPosed/dexsql-release and "Trace which methods log a given string and who calls them"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer