public abstract class HideOverlaysReceiver
extends android.content.BroadcastReceiver
Base receiver to extend to catch notifications when overlays should be hidden.
Tapjacking protection in SuperSU prevents some dialogs from receiving user input when overlays are present. For security reasons this notification is only sent to apps that have previously been granted root access, so even if your app does not require root, you still need to request it, and the user must grant it.
Note that the word overlay as used here should be interpreted as "any view or window possibly obscuring SuperSU dialogs".
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_HIDE_OVERLAYS |
static java.lang.String |
CATEGORY_HIDE_OVERLAYS |
static java.lang.String |
EXTRA_HIDE_OVERLAYS |
| Constructor and Description |
|---|
HideOverlaysReceiver() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
onHideOverlays(android.content.Context context,
android.content.Intent intent,
boolean hide)
Called when overlays should be hidden or may be shown
again.
|
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtraspublic static final java.lang.String ACTION_HIDE_OVERLAYS
public static final java.lang.String CATEGORY_HIDE_OVERLAYS
public static final java.lang.String EXTRA_HIDE_OVERLAYS
public final void onReceive(android.content.Context context,
android.content.Intent intent)
onReceive in class android.content.BroadcastReceiverpublic abstract void onHideOverlays(android.content.Context context,
android.content.Intent intent,
boolean hide)
context - App contextintent - Received intenthide - Should overlays be hidden?