← All documentation

Developer quickstart

Choose your platform
and integrate

Install Guardian from Maven Central, CocoaPods or pub.dev to try free local checks. Connect Sentinel for premium detection, centralized monitoring and backend risk decisions.

Guardian 3.6.3 is on Maven Central; iOS 3.6.0 on CocoaPods; Flutter plugin 3.6.3 on pub.dev. The standalone SDK is free; Sentinel premium features require an active subscription.

START WITHOUT A SENTINEL SUBSCRIPTION

Try Guardian’s free local checks.

Install the SDK below and use the local inspection API. No Sentinel URL or Client ID is needed. Frida, server-authorized app identity, blocklists, and centralized monitoring are premium features.

Start with the standalone guide for shared Application / app-service configuration and local policies. Native TLS pinning, device signing, and optional modules have their own guide below.

MAVEN CENTRAL →

Install with Maven Central

PUBLISHED VERSION 3.6.3

// app/build.gradle.kts
dependencies {
    implementation("id.aegis-sentinel:aegis-guardian:3.6.3")
    // Optional: Play Integrity evidence for Sentinel
    implementation("id.aegis-sentinel:aegis-guardian-integrity:3.6.0")
}

What changed in 3.1

Guardian 3.1.0 migration

Android, iOS, and Flutter now share ten named checks and five statuses: clear, detected, unavailable, notConfigured, and unsupported. Required checks pass only when their status is clear. Android reports observable probe failures as unavailable; a false boolean alone does not prove a check passed.

Sentinel telemetry failures return a failure result on every platform. Network, URL, Client ID, and server failures do not trigger the local violation callback or close the host app when the result is ignored. Treat a failed or unavailable result as unverified when authorizing a sensitive action.

Failure categories: premiumRequired, invalidUrl, invalidConfiguration, networkUnavailable, invalidClientId, serverRejected, verificationFailed, and unexpected. An unknown Client ID uses invalidClientId when Sentinel returns a recognized error code.

Handle a telemetry result

val result = guardian.inspectAndMonitor() // Run on a worker thread
result.onSuccess { assessment -> handleVerifiedAssessment(assessment) }
result.onFailure { error ->
    when (error.sentinelFailureCode()) {
        SentinelFailureCode.NETWORK_UNAVAILABLE -> showOfflineState()
        SentinelFailureCode.INVALID_CLIENT_ID -> showConfigurationError()
        else -> logTelemetryFailure(error)
    }
}

Android · SDK Monitoring & Evidence

3.2 API · VERIFIED ENROLLMENT REQUIRED

import com.jimmyleonardo.guardian.AegisGuardian
import com.jimmyleonardo.guardian.SentinelConfig
import com.jimmyleonardo.guardian.integrity.AegisIntegrityProvider

val localGuardian = AegisGuardian.Builder(context).build()
val play = AegisIntegrityProvider(context, cloudProjectNumber)
val evidence = play.sentinelEvidenceProvider(localGuardian, savedEnrollmentId)
val guardian = AegisGuardian.Builder(context)
    .setSentinelConfig(SentinelConfig(
        baseUrl = "https://sentinel.example.com",
        clientId = "YOUR_PUBLIC_CLIENT_ID",
        evidenceProvider = evidence
    ))
    .build()

val result = guardian.inspectAndMonitor() // Run on a worker thread

BACKEND DECISION ASSESSMENT

Validate Tokens Server-Side

curl -X POST https://sentinel.example.com/api/v1/assess \
  -H "Authorization: Bearer <CLIENT_SECRET>" \
  -H "Content-Type: application/json" \
  -d '{"device_token": "<token from Guardian>"}'

Full Platform Support Matrix

Understand exactly which runtime checks and security signals are supported across Android, iOS, and Flutter.

Security capabilityAndroidiOSFlutter package
Root / Jailbreak detectionSupportedSupportedSupported
Frida detection (Sentinel premium)Subscription + connectionSubscription + connectionSubscription + connection
Debugger attachment detectionSupportedSupportedSupported
Virtual device / emulator detectionSupportedSupportedSupported
VPN / proxy detectionSupportedSupportedSupported
Local app identity diagnosticsCertificate comparisonBundle ID comparisonPlatform-specific diagnostics
Sentinel integrity evidenceEnrollment + integrity policyOptional App AttestNative bridge + platform setup
Screen privacy protectionFLAG_SECUREVisual blur overlaySupported
App-scoped Device IDWidevine/Android ID hashKeychain UUIDSupported
Sentinel telemetry & decisionsSupportedSupportedSupported