STWSecurityManagerKt

class STWSecurityManagerKt

The security manager is a class that allows applications to check the security policy. It allows an application to determine, before performing a possibly unsafe or sensitive operation, to check the device security status based on two configuration flags can be configured using the STWConfiguration builder.

  • Vulnerability Checker : whether the device is rooted (or have a security issue) or not

  • Secure Storage Checker : whether the device storage is encrypted and the security keyguard (PIN, pattern, password, ...) exist

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun checkSecurityStatus(context: Context): String

This method is used to check if the application is installed and executed on a safety device.

Link copied to clipboard
suspend fun checkSecurityStatusAsFlow(): Flow<String>

This method is used to check if the application is installed and executed on a safety device.