You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if we set the passcode or the pattern as lock for the app, the screen is black from that screen on, in programs such as Vysor, or if we try to record the screen in some way.
Expected behaviour
The passcode or pattern unlock screen should appear in black when recording, but not the rest of the screens.
Steps to reproduce
Set passcode or pattern
Close the app
Open the app while recording it or watching it with Vysor
Unlock the app
From that moment, every screen appear in black
The code responsible for this is located in MainApp.kt:
if (!enabledLogging) {
// To enable biometric you need to enable passCode or pattern, so no need to add check to if
if (passCodeEnabled || patternCodeEnabled) {
activity.window.addFlags(WindowManager.LayoutParams.FLAG_SECURE)
} else {
activity.window.clearFlags(WindowManager.LayoutParams.FLAG_SECURE)
}
} // else, let it go, or taking screenshots & testing will not be possible
We should check if this makes sense and if so, how to fix this unexpected behaviour.
Activity
jesmrec commentedon Dec 10, 2021
Howto
Debug:
Release:
michaelstingl commentedon Dec 20, 2021
Maybe other content is also worth protecting it? Branding/MDM option for full-protection vs. login-protection?
jesmrec commentedon Jan 13, 2022
How could this be useful for external users/customers? our idea is helping ourselves with that... any hidden use case?