Compare two builds
compare_versionsWhat changed between two releases: permissions gained and lost, whether the signing key moved, size and minimum Android. Name either side by version name or by version code — the code is tried first, because a version name is free text the developer sets and is often a placeholder. A version name the developer shipped more than once (two builds under one name) matches its newest build; name an older one by its version code. Order does not matter; the higher build number is treated as the newer. Check permissionsKnown before reading two empty permission lists as 'nothing changed'.
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": {
"packageName": "<packageName>",
"from": "<from>",
"to": "<to>"
},
"name": "compare_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The other release, by version name or version code. | |
| from | Yes | One release, by version name or version code. A version name the developer shipped more than once (two builds under one name) matches its newest build; name an older one by its version code. | |
| packageName | Yes | Android package id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Byte delta for one arch present in both releases. Null when they share none — comparing across differing split sets would report a change that is only a change in what we store. | |
| minSdk | No | Minimum Android API level move, when both sides are known and differ. | |
| version | Yes | The newer of the two, whichever order they were asked for in, by version name, with the build number in brackets (`1.0.0 (5)`) when the developer shipped that name more than once. | |
| noteworthy | Yes | Worth a human's attention: a permission was gained, or the signer moved. | |
| newCertShas | No | Certificates signing the newer release but not the older one. | |
| packageName | Yes | The package compared. | |
| signerChange | No | 'same', 'added', 'narrowed', 'changed' or 'replaced'; null when either side's signature was never extracted. | |
| previousVersion | Yes | The older of the two, by version name, with the build number in brackets (`1.0.0 (5)`) when the developer shipped that name more than once. | |
| permissionsAdded | No | ||
| permissionsKnown | Yes | Both releases had their manifests read. When FALSE the permission arrays are empty because we could not look, not because nothing moved. | |
| signerChangeLabel | No | Short reading of `signerChange`. | |
| permissionsRemoved | No | ||
| signerChangeDetail | No | What it means for whoever installs the build. |