adb_file_touch
Create an empty file or update timestamps on Android devices via ADB. Set explicit timestamps or use current time. Supports 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.
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 |