analyze

abstract suspend fun analyze(context: Context): Double

Determines if the current device has been tampered with or compromised.

This method performs security checks to detect if the device has been modified in ways that could compromise security, such as:

  • Root access on Android devices

  • Modified system files

  • Debugging tools or emulators

  • Custom ROMs or firmware

Return

A confidence score where: - 1.0 indicates high confidence that tampering is detected - 0.0 indicates no tampering detected - Values between 0.0 and 1.0 indicate varying levels of suspicion

Parameters

context

The Android context used for performing security checks

Throws

if security checks cannot be performed