Skip to content

Overlay Showing Up On Lock Screen #927

Description

@vibhor1102

Version of Smart AutoClicker

4.0.0-beta02

Apk

Github

Device brand and model

Xiaomi 11X Pro

Version of your Android OS

14

Type

Smart scenario

Describe what happened?

When the app is running and the device is locked, the Scenario list / overlays (which use accessibility overlay windows TYPE_ACCESSIBILITY_OVERLAY) remain visible on top of the lockscreen. This:

  1. Exposes all scenario configurations and settings directly from the lockscreen without requiring a password/PIN.
  2. Captures touch events and potentially blocks the password/PIN entry area, preventing the user from unlocking their phone.

Screenshot

Image

Describe what should have happened?

The overlays/UI should be hidden or paused when the device is locked / keyguard is active.

Context / Code Reference

In OverlayManager.kt:

        /** The type of window used for the overlays. */
        const val OVERLAY_WINDOW_TYPE: Int = WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY

Since it uses TYPE_ACCESSIBILITY_OVERLAY, these windows are displayed over everything, including the lockscreen, by default.

To fix this, the app could:

  1. Listen to broadcast actions Intent.ACTION_SCREEN_OFF or check KeyguardManager.isKeyguardLocked() to hide or suspend overlays when the screen is locked/keyguard is active.
  2. Resume overlays when the user unlocks the device (Intent.ACTION_USER_PRESENT).

Is it a duplicate?

  • There is no duplicates

Did you provide enough information?

  • I have attached the required files

Metadata

Metadata

Assignees

Labels

acknowledged-priority-normalThe bug has been reproduced, would be nice to fix it in next stable versionbugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions