TechBuzzPro

Display Over Other Apps Not Available on Android

· 5 min read · Phones & Tablets

In this article
  1. What You’ll Need
  2. Step‑by‑Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

No, Android does not allow arbitrary apps to display over other apps unless the app requests the SYSTEM_ALERT_WINDOW permission, which is limited to system or specially privileged apps. The operating system blocks most overlay attempts to protect user privacy and prevent malicious behavior.

What You’ll Need

  • Android device running Android 6.0 (Marshmallow) or newer
  • App that explicitly requests the "Draw over other apps" permission (e.g., chat heads, screen recorders, or accessibility services)
  • Developer options enabled if you are testing custom overlays
  • Root access or a custom ROM if you need to bypass restrictions (not recommended for most users)

Step‑by‑Step

  1. Confirm the app’s permission request. Open the Play Store page for the app and scroll to the permissions section. The app must list "Draw over other apps". If it does not, the app cannot create a persistent overlay on standard Android installations.
  2. Enable developer options (optional). If you plan to test custom overlay code, go to Settings > About phone, tap Build number seven times until a message says you are a developer. Return to Settings and open Developer options. Some overlay debugging tools require the “Show layout bounds” or “Debug layout” toggles.
  3. Grant the overlay permission. Toggle the switch next to “Draw over other apps” to ON. If the toggle is missing, the app has not requested the permission or the OS has blocked it.
  4. Test the overlay. Launch the app. If it is a chat‑head or floating widget app, you should see a small icon appear on top of other screens. Tap the icon to expand the overlay. If nothing appears, proceed to troubleshooting.
  5. Check for manufacturer restrictions. Some OEMs (e.g., Samsung, Huawei, Xiaomi) add an extra layer that blocks overlays on certain apps. Open the device’s security or battery optimization settings and look for a “Display over other apps” list. Add the app to the whitelist if available.
  6. Verify Android version compatibility. Overlays are fully supported from Android 6.0 onward. If you are on Android 5.1 or earlier, the permission does not exist; the app will not function as intended.
  7. Consider accessibility services. If the overlay is part of an accessibility feature (e.g., magnification, screen reader), enable it under Settings > Accessibility. These services automatically receive the overlay permission.
  8. Use the Android Settings API for custom apps. If you are developing an app, request the permission at runtime with ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.SYSTEM_ALERT_WINDOW}, 0). Handle the result in onRequestPermissionsResult and direct the user to Settings if denied.
  9. Restart the device. Some overlay permissions require a reboot to take effect fully. Power off the phone, wait a few seconds, then power it back on.
  10. Re‑install the app. If the overlay still does not appear, uninstall the app, clear its data, and reinstall from the Play Store. This can reset hidden flags that prevent overlay usage.

Common Mistakes

  • Assuming any app can overlay; only apps that request the SYSTEM_ALERT_WINDOW permission can.
  • Granting the permission but ignoring manufacturer‑level restrictions that block the overlay.
  • Using an older Android version where the permission is not supported.
  • Forgetting to enable developer options when debugging custom overlay code.
  • Restarting the app without rebooting the device, causing the permission not to refresh.

Tips

  • Some devices provide a quick toggle in the notification shade.
  • For developers, test overlays on a physical device rather than an emulator; emulators often simulate the permission but do not enforce the same restrictions.
  • When using accessibility services, enable “Show pointer location” to see the overlay’s touch area during testing.
  • Keep your device’s OS updated; newer releases sometimes refine overlay behavior and security checks.
  • Document the overlay’s behavior in a user guide; explain that the overlay may disappear when the device enters battery‑saving mode.

Troubleshooting

  1. Permission denied after grant. If the toggle is grayed out, the OS has blocked the permission. Check for OEM restrictions or battery‑saving modes that might override it.
  2. Overlay not visible. Verify that the app’s overlay window type is TYPE_APPLICATION_OVERLAY (Android 10+) or TYPE_SYSTEM_ALERT (pre‑Android 10). If the window type is incorrect, the system will not display it.
  3. Overlay disappears on lock screen. Some devices hide overlays when the screen is locked. Enable the “Show on lock screen” option in the app’s settings or in Settings > Display > Lock screen behavior.
  4. Overlay blocks other interactions. Adjust the overlay’s layout parameters: set FLAG_NOT_FOCUSABLE to allow touch events to pass through to underlying apps.
  5. App crashes when overlay starts. Check the logcat for android.view.WindowManager$BadTokenException. This often indicates the overlay was started from a non‑activity context without the proper Application context.
  6. Overlay blocked by battery optimizer. Go to Settings > Battery > Battery optimization. Add the app to the “Not optimized” list.
  7. Overlay not working after OS update. Some updates roll back overlay permissions for security. Re‑grant the permission and, if necessary, reinstall the app.

Frequently Asked Questions

Can I create my own overlay app without root?

Yes, if you request the SYSTEM_ALERT_WINDOW permission and use the correct window type. The app must be signed with a certificate that the user trusts, and the user must grant the permission in Settings.

Will an overlay app compromise my privacy?

Only if the app is malicious. Android’s permission system requires explicit user consent, and the system logs all overlay requests. Still, review the app’s privacy policy before installing.

What happens if I disable the overlay permission?

The app will still run but cannot display any floating windows. Features that rely on overlays will be disabled.

Can I use overlays on a rooted device without permission?

Rooting bypasses many restrictions, but it also removes the safety net that protects users from malicious overlays. Use root only if you understand the risks and have a backup plan.

Is there a way to allow overlays on all apps without modifying each one?

No. Android enforces the permission per‑app basis. You can only enable overlays for apps that explicitly request the permission.