storageIsNotEncrypted

Determine if the storage is not encrypted.


🔑 Minimum required license level: Core.


Sample usage

try {
val systemDiagnostic = rasp.diagnostic.system
val storageIsNotEncrypted = systemDiagnostic.storageIsNotEncrypted()
Log.d("RASP-DEMO", "storageIsNotEncrypted: $storageIsNotEncrypted")
} catch (e: Exception) {
Log.e("RASP-DEMO", "[systemDiagnostic] storageIsNotEncrypted error: ${e.message}")
}


To observe changes of this function. You can use the observe() method.

val systemNetwork = rasp.watcher.system.observe()
launch {
systemModel.storageIsNotEncrypted.collect { detected ->
if (detected != null && detected) {
Log.d("RASP-DEMO", "[storageIsNotEncrypted] $detected")
}
}

Return

Boolean — true if the not encrypted storage is currently detected.