adb_file_checksum
Compute a file's SHA-256 hash on an Android device to verify firmware integrity, detect tampering, and compare files across devices; returns the hash and file size.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "adb_file_checksum"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path on device | |
| root | No | Use root shell for protected paths | |
| device | No | Device serial | |
| algorithm | No | Hash algorithm (default: sha256) | sha256 |