adb_file_chown
Change file ownership on Android devices with ADB. Supports user:group formats and recursive depth-protected changes.
Instructions
Change file ownership on the device. Requires root. Supports both numeric UID:GID (e.g., '10150:10150') and symbolic user:group (e.g., 'system:system'). Recursive mode uses depth-based protection: refuses at depth ≤ 2 from root. Note: sdcardfs/FAT32 ignore ownership changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File or directory path | |
| owner | Yes | Owner in user:group format (e.g., '0:0', 'system:system', '10150:10150') | |
| recursive | No | Apply recursively to directory contents. Depth-protected. | |
| device | No | Device serial |