adb_file_touch
Create an empty file or update file access and modification timestamps on an Android device, optionally with an explicit time or root access for protected paths.
Instructions
Create an empty file or update timestamps. Three modes: create (touch non-existent path), update (set atime/mtime to now), or set explicit timestamp. On FAT32, timestamps have 2-second resolution. On tmpfs, timestamps are volatile.
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": {
"path": "<path>"
},
"name": "adb_file_touch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path on device | |
| root | No | Use root shell for protected paths | |
| device | No | Device serial | |
| timestamp | No | Explicit timestamp in 'YYYY-MM-DD HH:MM:SS' format. Omit to use current time. |