DeviceTamperingPolicy

Policy that checks for device tampering indicators.

Uses the TamperDetector module to analyze the device for signs of rooting or tampering and compares the result against a configurable threshold.

JSON format: {"deviceTampering": {"score": 0.8}}

The score threshold can be configured in the policy data. If the device tampering score exceeds the threshold, the policy will fail.

Properties

Link copied to clipboard
const val POLICY_NAME: String

Functions

Link copied to clipboard
open suspend override fun evaluate(context: Context, data: JsonObject?): Boolean

Evaluate this policy against the current device context.

Link copied to clipboard
open override fun getName(): String

Get the unique name identifier for this policy.