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:
- Exposes all scenario configurations and settings directly from the lockscreen without requiring a password/PIN.
- Captures touch events and potentially blocks the password/PIN entry area, preventing the user from unlocking their phone.
Screenshot
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:
- 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.
- Resume overlays when the user unlocks the device (
Intent.ACTION_USER_PRESENT).
Is it a duplicate?
Did you provide enough information?
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:Screenshot
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:
Since it uses
TYPE_ACCESSIBILITY_OVERLAY, these windows are displayed over everything, including the lockscreen, by default.To fix this, the app could:
Intent.ACTION_SCREEN_OFFor checkKeyguardManager.isKeyguardLocked()to hide or suspend overlays when the screen is locked/keyguard is active.Intent.ACTION_USER_PRESENT).Is it a duplicate?
Did you provide enough information?