smali_search
Search smali directories with regular expressions to locate API calls, strings, permissions, or encryption logic; results return file and line matches.
Instructions
在 smali 目录中按正则搜索内容(用于分析 API 调用、字符串、加解密、权限等)。返回 文件:行号 命中。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"smaliDir": "<smaliDir>",
"pattern": "<pattern>"
},
"name": "smali_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | 正则 flags,默认 i | |
| pattern | Yes | 正则表达式 | |
| smaliDir | Yes | ||
| maxResults | No | 最大命中数,默认 500 |