high · M8 · MASVS-PLATFORM-3 · PTKD-ASC-ANDROID-OVERLAY-TAPJACKING

    System overlay permission, a tapjacking and malware signal (text search)

    SYSTEM_ALERT_WINDOW or application overlay declared, especially combined with AccessibilityService.

    How it is exploited

    A malicious overlay draws a fake 'Continue' button on top of a system permission dialog, so the user grants something they never saw. Because overlays enable exactly this, Google Play reviews every app that asks for SYSTEM_ALERT_WINDOW, and treats overlay plus an AccessibilityService as a malware pattern.

    Why it matters

    Play can reject the update or suspend the app if the overlay is not core to the app (a floating video player or a call bubble usually is; an ad overlay is not).

    How to fix it

    1. Remove SYSTEM_ALERT_WINDOW if the feature can use a notification, a bubble or picture-in-picture instead.
    2. If you keep it, explain the core feature in the Play Console permission declaration, and never combine it with an AccessibilityService you do not need.
    3. Protect your own sensitive screens: set filterTouchesWhenObscured on buttons that grant access or confirm payments.

    layout XML

    <Button
      android:id="@+id/confirm"
      android:filterTouchesWhenObscured="true" />

    Does your app have this?

    PTKD checks your build or your source project for PTKD-ASC-ANDROID-OVERLAY-TAPJACKING and every other check in this knowledge base.

    Scan your app

    References

    Related checks (M8)