Package-level declarations

Types

Link copied to clipboard
class DiagnosticsExporter(context: Context, cfgProvider: () -> KioskOpsConfig, logs: RingLog, logExporter: LogExporter, telemetry: EncryptedTelemetryStore, audit: AuditTrail, clock: Clock, sdkVersion: String, queueDepthProvider: suspend () -> Long, quarantinedSummaryProvider: suspend () -> List<QuarantinedEventSummary>, postureProvider: () -> DevicePosture, policyHashProvider: () -> String)
Link copied to clipboard
data class DiagnosticsSchedulePolicy(val scheduledEnabled: Boolean = false, val scheduleType: DiagnosticsSchedulePolicy.ScheduleType = ScheduleType.DAILY, val scheduleHour: Int = 3, val scheduleDayOfWeek: Int = 1, val remoteTriggerEnabled: Boolean = false, val maxRemoteTriggersPerDay: Int = 3, val remoteTriggerCooldownMs: Long, val autoUploadEnabled: Boolean = false, val includeExtendedPosture: Boolean = true, val maxExportBytes: Long = 50L * 1024L * 1024L)

Policy for scheduled and remote-triggered diagnostics collection.

Link copied to clipboard
@Serializable
data class HealthSnapshot(val ts: Long, val sdkVersion: String, val appPackage: String, val androidSdkInt: Int, val deviceModel: String, val manufacturer: String? = null, val securityPatch: String? = null, val isDeviceOwner: Boolean? = null, val isInLockTaskMode: Boolean? = null, val policyHash: String? = null, val queueDepth: Long, val quarantinedCount: Long = 0, val locationId: String, val regionTag: String? = null, val includeDeviceId: Boolean, val sdkDeviceId: String? = null, val supportsHardwareAttestation: Boolean = false, val keySecurityLevel: String? = null, val keysAreHardwareBacked: Boolean = false)
Link copied to clipboard
class RemoteDiagnosticsTrigger(context: Context, policyProvider: () -> DiagnosticsSchedulePolicy, auditTrail: AuditTrail, clock: Clock)

Handles remote diagnostics trigger requests.

Link copied to clipboard

Reason for trigger rejection.

Link copied to clipboard
sealed class TriggerResult

Result of a remote diagnostics trigger request.