{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "lsposed-dexsql-release--trace-log-string-callers-with-agent",
 "repo": "LSPosed/dexsql-release",
 "repo_url": "https://github.com/LSPosed/dexsql-release",
 "repo_slug": "lsposed-dexsql-release",
 "title": "Trace which methods log a given string and who calls them",
 "page_title": "How to trace which methods log a given string and who calls them with Dexsql Release",
 "summary": "Have an agent query an APK over MCP to map a log message to its methods and callers.",
 "who": "A 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.",
 "problem": "Following a string through Smali and decompiled code by hand is slow, and call chains are easy to lose track of.",
 "outcome": "The agent returns the methods that reference the message, their callers, and the relevant Smali, based on structured query results.",
 "steps": [
  "Open the Releases page and download the executable or archive that matches your operating system and CPU.",
  "Rename the executable to `dexsql.exe` on Windows or `dexsql` on macOS/Linux, then run `chmod +x /path/to/dexsql` on macOS/Linux.",
  "Save `LICENSE` and `LICENSE-AUXILIARY` from 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."
 ],
 "agent_prompt": "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.",
 "agents": [
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "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.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "python",
 "requirements": [
  "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"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "reverse-engineering",
   "notice": "Only analyze APKs you have the right to inspect, since this traces an app's internal logging and call paths."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/lsposed-dexsql-release/trace-log-string-callers-with-agent/",
 "md": "https://dedupedai.com/use-cases/lsposed-dexsql-release/trace-log-string-callers-with-agent/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/lsposed-dexsql-release--trace-log-string-callers-with-agent.json",
 "api_version": "v1"
}
