Check whether a build is packed
get_protectionWhether this build is wrapped in a commercial protector — DexProtector, Jiagu, Bangcle, Legu, AppSealing, Google's own PairIP — and what that means for everything else you can find out about it. Defaults to the newest build. A PROTECTOR IS NOT A MALWARE SIGNAL: anti-piracy, anti-tamper and anti-cheat are what these are sold for, and saying an app is 'suspicious' because it is packed is wrong about a large part of the catalogue. What it does mean is that the app's real code is not in classes.dex for anyone to read, so an empty SDK list, a short permission list or any other analysis of the same artifact is a floor and not a census — call this BEFORE you report that a build carries no trackers. analyzed: false means the archive was never opened, which is not the same as an unpacked build. Relay summary whole: it carries the finding and the bound in one sentence.
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>"
},
"name": "get_protection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apkId | No | A specific build from list_versions. Omit for the newest one. | |
| packageName | Yes | Android package id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dex | No | How much code was read, when any was: read of total dex files, bytes, and truncated (one file ran out of budget part-way). NULL when none was read. | |
| apkId | Yes | The build this describes — the one asked for, or the newest held. | |
| capped | No | Evidence tiers that hit their size cap while the artifact was being read, so the analysis worked from a subset of what the file carries. The one bound no later corpus can repair — fixing it needs the bytes back. | |
| pairip | Yes | Google PairIP licence protection specifically. Beyond packing, it checks the app's licence at run time, so a plain sideload of the file may refuse to run. | |
| summary | Yes | One sentence carrying both halves — what was found, and what it bounds. Relay it whole: 'packed with Jiagu' on its own turns a build-tool choice into an accusation, and the second clause is the part a reader can act on. | |
| analyzed | Yes | Was the artifact ever opened? FALSE means every field below is a default and none of them is a finding. | |
| protected | Yes | At least one commercial protector was identified. FALSE with analyzed:false above it means nobody looked — not that the build is unpacked. | |
| protectors | Yes | What was identified. NOT a malware signal — anti-piracy and anti-tamper are what these are sold for, Google's own PairIP included. What it does mean is that the app's real code is not in classes.dex for anyone to read. | |
| packageName | Yes | The package asked for. | |
| versionCode | Yes | Its build number. | |
| versionName | Yes | Version name of that build. | |
| codeCoverage | Yes | How far the analysis reached into the app's OWN code: none — only the manifest and bundled libraries were read; partial — the code was read but not through; full — read through. Only 'full' makes an empty result mean anything close to 'none'. |