renef_server
Deploy, start, stop, restart, and check logs for the Android on-device daemon and libagent.so to support dynamic instrumentation.
Instructions
Manage the on-device Android renef_server daemon and libagent.so deployment.
Uses Renef v0.4.0 device paths:
/data/local/tmp/renef_server(chmod +x)/data/local/tmp/libagent.so(chmod 777+chcon u:object_r:app_data_file:s0)
Actions:
status(default): Check deployment of both binaries and whetherrenef_serveris runningdeploy: Push v0.4.0renef_serverandlibagent.soto device with proper permissions/SELinux contextstart: Setup ADB port forward (tcp:<port>) and startrenef_serverin background as rootkill: Stop runningrenef_serverand close local sessionrestart: Kill and startrenef_serverlogs: Show tail of/data/local/tmp/renef.log(optionally truncate withclear_logs=True)
Args:
action: "status", "deploy", "start", "kill", "restart", or "logs"
lines: Number of log lines for action="logs" (default: 100)
clear_logs: If True with action="logs", clear the log file after reading
Returns: JSON status or server logs
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "renef_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| action | No | status | |
| clear_logs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |