add_custom_hooks
Adds or replaces custom hook entries for Android app reversing, then syncs configuration and LSPosed settings, with optional app relaunch.
Instructions
Add or replace custom hook entries, then sync config, AppSwitch, LSPosed, and optionally relaunch the target.
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": {
"targetPackage": "<targetPackage>",
"hookEntries": "<hookEntries>"
},
"name": "add_custom_hooks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetPackage | Yes | ||
| serial | No | ||
| hookEntries | Yes | ||
| enabledScriptName | No | ||
| configPatch | No | ||
| replaceExisting | No | ||
| trigger | No | ||
| launchTargetApp | No | ||
| collectLogs | No | ||
| outputDir | No | ||
| includeSystemFramework | No | ||
| dryRun | No |