SYSTEM_ALERT Overlay Test (Unreleased) for Android
Run the app on Wear, and it should just show two buttons, for testing two different aspects of Marshmallow.
The same buttons appear on the phone app, and should give you some idea of what the successful outcome should be. On the Marshmallow Wear emulator, however, both functions fail, showing error messages like the following:
REQUEST PERMISSION: No Activity found to handle Intent { act=android.settings.action.MANAGE_OVERLAY_PERMISSION dat=package:com.udellent.overlaytest }
SHOW OVERLAY: Unable to add window android.view.ViewRootImpl$W@8c0ad5c -- permission denied for this window type