haveRiskyAccessibilityOption
Determine the presence of certain accessibility options that may pose a security or privacy risk.
🔑 Minimum required license level: Core.
Sample usage
try {
val systemDiagnostic = rasp.diagnostic.system
val haveRiskyAccessibilityOption = systemDiagnostic.haveRiskyAccessibilityOption()
Log.d("RASP-DEMO", "haveRiskyAccessibilityOption: $haveRiskyAccessibilityOption")
} catch (e: Exception) {
Log.e("RASP-DEMO", "[systemDiagnostic] haveRiskyAccessibilityOption error: ${e.message}")
}
Content copied to clipboard
To observe changes of this function. You can use the observe() method.
val systemNetwork = rasp.watcher.system.observe()
launch {
systemModel.haveRiskyAccessibilityOption.collect { detected ->
if (detected != null && detected) {
Log.d("RASP-DEMO", "[haveRiskyAccessibilityOption] $detected")
}
}
Content copied to clipboard
Return
Boolean
— true to indicate that a risky accessibility option is present.
Since
v1.5.0