-
public class SenseRaspMonitor
-
-
Field Summary
Fields Modifier and Type Field Description private SenseRaspEventListenereventListenerprivate SenseRaspThreatListenerthreatListenerprivate final <ERROR CLASS>simBindingHelperprivate BooleanhasSimpublic final static SenseRaspMonitorINSTANCE
-
Method Summary
Modifier and Type Method Description final Unitinit(Context context)final Unitstop()final UnitpreventScreenCapture(Activity activity)Apply FLAG_SECURE if Activity or Window is provided final BooleanisScreenSharingActive(Context context)Detect if screen projection (MediaProjection) is active final BooleanhasOverlayPermission(Context context)Detect overlay/tapjacking final BooleanisDeviceCompromised(Context context)Combine all checks final SenseRaspEventListenergetEventListener()final UnitsetEventListener(SenseRaspEventListener eventListener)final SenseRaspThreatListenergetThreatListener()final UnitsetThreatListener(SenseRaspThreatListener threatListener)final <ERROR CLASS>getSimBindingHelper()final BooleangetHasSim()final UnitsetHasSim(Boolean hasSim)-
-
Method Detail
-
preventScreenCapture
final Unit preventScreenCapture(Activity activity)
Apply FLAG_SECURE if Activity or Window is provided
-
isScreenSharingActive
@RequiresApi(value = 29) final Boolean isScreenSharingActive(Context context)
Detect if screen projection (MediaProjection) is active
-
hasOverlayPermission
@RequiresApi(value = 23) final Boolean hasOverlayPermission(Context context)
Detect overlay/tapjacking
-
isDeviceCompromised
@RequiresApi(value = 29) final Boolean isDeviceCompromised(Context context)
Combine all checks
-
getEventListener
final SenseRaspEventListener getEventListener()
-
setEventListener
final Unit setEventListener(SenseRaspEventListener eventListener)
-
getThreatListener
final SenseRaspThreatListener getThreatListener()
-
setThreatListener
final Unit setThreatListener(SenseRaspThreatListener threatListener)
-
getSimBindingHelper
final <ERROR CLASS> getSimBindingHelper()
-
-
-
-