Apktool MCP Server

list_smali_files

Lists Smali files in a specified APKTool project directory, allowing optional filtering by package prefix to streamline reverse engineering of Android applications.

Instructions

List smali files in a specific smali directory, optionally filtered by package prefix.

Args: project_dir: Path to the APKTool project directory smali_dir: Which smali directory to use (smali, smali_classes2, etc.) package_prefix: Optional package prefix to filter by (e.g., "com.example")

Returns: Dictionary with list of smali files

Input Schema

NameRequiredDescriptionDefault
package_prefixNo
project_dirYes
smali_dirNosmali

Input Schema (JSON Schema)

{ "properties": { "package_prefix": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Package Prefix" }, "project_dir": { "title": "Project Dir", "type": "string" }, "smali_dir": { "default": "smali", "title": "Smali Dir", "type": "string" } }, "required": [ "project_dir" ], "title": "list_smali_filesArguments", "type": "object" }
ID: jtugu4w3w9