public class SecurityDetectionService
extends java.lang.Object
Constructor and Description |
---|
SecurityDetectionService() |
Modifier and Type | Method and Description |
---|---|
static void |
clearHookingDetectionListener()
Remove HookingDetectionListener.
|
static java.util.Set<java.lang.String> |
getPotentialOverlayAttackAppInfo()
Detects if there are apps installed(non-system app) which will potentially do overlay attack, and return the app info.
|
static void |
setDebuggerDetection(java.lang.Boolean enableDebuggerDetection)
Set debugger detection to prevent any debugger attach to the application process.
|
static void |
setHookingDetectionListener(HookingDetectionListener listener)
Set HookingDetectionListener to receive callbacks when protected methods in SDK are detected
as hooked.
|
public static void setHookingDetectionListener(HookingDetectionListener listener)
listener
- the listener to receive hooking detection callbacks.public static void clearHookingDetectionListener()
public class Activity implements HookingDetectionListener {
When activity is killed you must remove the listener to avoid leaks.
And to add back the listener when the activity is created.
public static void setDebuggerDetection(java.lang.Boolean enableDebuggerDetection)
enableDebuggerDetection
- the value to set, true
or false
. If not set, the default value is false
prior to 4.8. Since 4.8, it has been turned ON by default.public static java.util.Set<java.lang.String> getPotentialOverlayAttackAppInfo()