-
public class ScreenProtectionScreen capture / overlay / tapjacking protections and detectors.
-
-
Field Summary
Fields Modifier and Type Field Description public final static ScreenProtectionINSTANCE
-
Method Summary
Modifier and Type Method Description final static UnitenableFlagSecure(Activity activity)Applies WindowManager.LayoutParams.FLAG_SECURE to prevent screenshots / recents previews. final static UnitdisableFlagSecure(Activity activity)final static List<Threat>detectAccessibilityAbuse(Context context)Detects accessibility services that can observe UI (possible abuse). final static List<Threat>detectOverlayThreats(Context context)Best-effort MediaProjection / overlay heuristics. final static UnitenableTapjackingGuards(Activity activity)Marks a view hierarchy to ignore touches when obscured (tapjacking mitigation). -
-
Method Detail
-
enableFlagSecure
final static Unit enableFlagSecure(Activity activity)
Applies WindowManager.LayoutParams.FLAG_SECURE to prevent screenshots / recents previews.
-
disableFlagSecure
final static Unit disableFlagSecure(Activity activity)
-
detectAccessibilityAbuse
final static List<Threat> detectAccessibilityAbuse(Context context)
Detects accessibility services that can observe UI (possible abuse).
-
detectOverlayThreats
final static List<Threat> detectOverlayThreats(Context context)
Best-effort MediaProjection / overlay heuristics.
-
enableTapjackingGuards
final static Unit enableTapjackingGuards(Activity activity)
Marks a view hierarchy to ignore touches when obscured (tapjacking mitigation).
-
-
-
-