Push Adb File
push_adb_fileTransfers a local file to an absolute path on an Android device over ADB, refusing to replace existing files unless overwrite is enabled and verifying the transfer with a SHA-256 digest if available.
Instructions
Push one local file to an absolute device path. The only device-mutating ADB tool: existing device files are refused unless overwrite is explicitly requested, and the transfer is verified by comparing the local digest with the device's own sha256sum when the device provides one.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"serial": "emulator-5554",
"local_path": "/tmp/frida-server",
"device_path": "/data/local/tmp/frida-server"
},
"name": "push_adb_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | Yes | Device serial exactly as `adb devices` reports it | |
| overwrite | No | Allow replacing an existing device file; refused by default | |
| local_path | Yes | Existing local regular file to push | |
| device_path | Yes | Absolute destination path on the device |