adb_file_checksum
Compute a file's checksum (SHA-256, SHA-1, or MD5) on an Android device to verify firmware integrity, detect tampering, or compare files across devices. Reports file size alongside the hash.
Instructions
Compute SHA-256 hash of a file on the device. Critical for firmware integrity verification, tamper detection, and comparing files across devices. Read-only operation. Reports file size alongside the hash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path on device | |
| algorithm | No | Hash algorithm (default: sha256) | sha256 |
| root | No | Use root shell for protected paths | |
| device | No | Device serial |