adb_file_write
Write or append text content to a file on an Android device via ADB. Supports root paths and overwrite or append modes, ideal for configs and scripts up to 128KB.
Instructions
Create or overwrite a text file on the device. Content is delivered via shell heredoc — suitable for config files, scripts, test fixtures, and small data files. For large or binary files, use adb_push instead. Shell buffer limits content to approximately 128KB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Destination file path on device | |
| content | Yes | File content to write | |
| append | No | Append to existing file instead of overwriting | |
| root | No | Use root shell for protected paths | |
| device | No | Device serial |