adb_file_touch
Create an empty file on an Android device or update its timestamps. Supports three modes: create, update to current time, or set an explicit timestamp.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path on device | |
| timestamp | No | Explicit timestamp in 'YYYY-MM-DD HH:MM:SS' format. Omit to use current time. | |
| root | No | Use root shell for protected paths | |
| device | No | Device serial |