Package 

Object IntegrityGuard


  • 
    public class IntegrityGuard
    
                        

    Enterprise 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.

    • Method Summary

      Modifier and Type Method Description
      final Boolean isDeviceRooted() Checks if the device environment exhibits root compromise.
      final Boolean isDebuggerOrHookDetected() Checks for active debugging or dynamic hooking engines (Frida, Xposed).
      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).

      final Unit wipe(ByteArray buffer) Overwrites mutable byte buffer with zeros.
      final Unit wipe(CharArray buffer) Overwrites mutable char buffer with zeros.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isDeviceRooted

         final Boolean isDeviceRooted()

        Checks if the device environment exhibits root compromise.

      • 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).