write_file
Write text content to any Android device file by pushing a temporary file, safely handling content that shell echo cannot. Optionally push as root into protected paths and return status, remote path, and byte count.
Instructions
Write text content to a device file by pushing a temp file (handles any
content safely, unlike shell echo). as_root pushes to /data/local/tmp then
su -c cp into place. Returns {status, remote, bytes}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remote | Yes | ||
| serial | No | ||
| as_root | No | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||