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
- Remove SYSTEM_ALERT_WINDOW if the feature can use a notification, a bubble or picture-in-picture instead.
- 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.
- 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 appReferences
Related checks (M8)
- JavaScript obfuscation in the build
- Export compliance (ITSAppUsesNonExemptEncryption) not declared
- HealthKit app that also ships an ads SDK
- Hardcoded unlock or promo code
- Purchases SDK configured with an empty or test key
- Purchase screen falls back to made-up prices or 'coming soon' text
- False-urgency copy on a purchase screen
- Hardcoded price on a purchase screen