isHooked
Determine if the application or the system is hooked.
🔑 Minimum required license level: Core.
Sample usage
try {
val systemDiagnostic = rasp.diagnostic.system
val isHooked = systemDiagnostic.isHooked()
Log.d("RASP-DEMO", "isHooked: $isHooked")
} catch (e: Exception) {
Log.e("RASP-DEMO", "[systemDiagnostic] isHooked error: ${e.message}")
}
Content copied to clipboard
To observe changes of this function. You can use the observe() method.
val systemModel = rasp.watcher.system.observe()
launch {
systemModel.isHooked.collect { detected ->
if (detected != null && detected) {
Log.d("RASP-DEMO", "[isHooked] $detected")
}
}
Content copied to clipboard
Return
Boolean, ArrayList<RootDiagnosticSymptom>
— true if the device is hooked, the list of detected symptoms.