Skip to content
This documentation is also available as markdown. For a complete index of all pages, see llms.txt at /llms.txt

Hardware Key Attestation

Hardware Key Attestation verifies the device’s bootloader and integrity state through Android’s hardware-backed Key Attestation. It protects the endpoints of your app that you specify as Target URLs, and applies a detection mode that you set per app.

Hardware Key Attestation is configured in two places:

WhereWhat you set
Sealing wizard, Step 5 (or a preset)Turn attestation on or off for each sealing, and choose the Target URLs.
App ConfigurationsChoose which detection cases are enforced for the app.
  • Sealing version 3.3.0.0 or higher.
  • Hardware Key Attestation is enabled for your account. Until it is, the option is not shown in the sealing wizard or in presets, and App Configurations shows that the feature is not enabled.

On Step 5 — Advanced Detection of the sealing wizard:

OptionValuesDefaultDescription
Hardware Key AttestationEnable / DisableDisableTurns attestation on for this sealing.
Target URLsURLs—Shown when attestation is enabled. The endpoints of your app that attestation protects — an exact URL or a regular expression, up to 50 URLs of 500 characters each.

Whenever attestation is enabled, the detection mode set in App Configurations is applied automatically.

Open Android Mobile App Security → App Configuration, select the app, and go to the Hardware Key Attestation section. There is no on/off switch here — attestation is turned on or off per sealing, as described above.

Detection modeBehavior
BasicDetects only the three definitive cases — unlocked bootloader, Verified Boot failure, and app signature mismatch. The other four cases are allowed, to avoid false positives on older OS versions, LineageOS, and certain device manufacturers.
CustomYou turn each case on individually. Cases you leave unchecked are allowed.
Detection caseBadgeAction when detected
Unlocked bootloader detectionDefinitiveDeny
Verified Boot failure detectionDefinitiveDeny
App signature mismatch detectionDefinitiveDeny
Revoked certificate detectionRecommendedLimit
Software-level attestation detectionFalse-Positive RiskLimit
Attestation data absent detectionFalse-Positive RiskLimit
Root certificate verification failure detectionFalse-Positive RiskLimit

Click Save to store the detection mode.

The CLI tool has no options for Hardware Key Attestation. To apply it when you seal through the CLI, use a sealing preset:

  1. Set the detection mode for the app in App Configurations, as described above.

  2. Open Android → Preset and create or edit a preset with sealing version 3.3.0.0 or higher.

  3. In Advanced Features, enable Hardware Key Attestation and add the Target URLs, then save the preset.

  4. Seal with the preset name:

    Terminal window
    $ java -jar sealing.jar -url https://api.appsealing.com/covault/gw -authkey 123456789ABCDE -srcapk app-release.aab -sealedapk app-release-sealed.aab -sealing_preset_name my-preset-name

See Using a Preset with the CLI Tool for the preset naming rules and the related warnings.