-
public class IntegrityGuardEnterprise Runtime Environment Integrity & Anti-Tamper Guard.
Implements:
Root & custom firmware build indicator detection.
Dynamic hooking / instrumentation engine detection (Frida, Xposed, Substrate).
Debugger attachment checks.
Window protection against tapjacking, overlays, and screen capture (FLAG_SECURE, setHideOverlayWindows).
Memory sanitization helpers for sensitive byte buffers.
-
-
Field Summary
Fields Modifier and Type Field Description public final static IntegrityGuardINSTANCE
-
Method Summary
Modifier and Type Method Description final BooleanisDeviceRooted()Checks if the device environment exhibits root compromise. final BooleanisDebuggerOrHookDetected()Checks for active debugging or dynamic hooking engines (Frida, Xposed). final UnitapplyWindowProtection(Activity activity)Applies complete defense-in-depth window protection against: Screen scraping, screenshot capture, and recent-apps carousel caching (FLAG_SECURE).
Malicious system alert windows, floating overlays, and tapjacking (setHideOverlayWindows).
final Unitwipe(ByteArray buffer)Overwrites mutable byte buffer with zeros. final Unitwipe(CharArray buffer)Overwrites mutable char buffer with zeros. -
-
Method Detail
-
isDeviceRooted
final Boolean isDeviceRooted()
Checks if the device environment exhibits root compromise.
-
isDebuggerOrHookDetected
final Boolean isDebuggerOrHookDetected()
Checks for active debugging or dynamic hooking engines (Frida, Xposed).
-
applyWindowProtection
final Unit applyWindowProtection(Activity activity)
Applies complete defense-in-depth window protection against:
Screen scraping, screenshot capture, and recent-apps carousel caching (FLAG_SECURE).
Malicious system alert windows, floating overlays, and tapjacking (setHideOverlayWindows).
-
-
-