Skip to content

[BUG] Security flags for screen recording #3468

Closed

Description

@JuancaG05

Actual behaviour

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

  1. Set passcode or pattern
  2. Close the app
  3. Open the app while recording it or watching it with Vysor
  4. Unlock the app
  5. 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.

Environment data

ownCloud app version: 2.19

Activity

  1. jesmrec commented on Dec 10, 2021

    @jesmrec
    Member

    Howto

    Debug:

    • All clear

    Release:

    • Passcode / Pattern hidden
    • Login hidden
  2. added this to the 2.20-current milestone on Dec 10, 2021
  3. michaelstingl commented on Dec 20, 2021

    @michaelstingl
    Contributor

    but not the rest of the screens.

    Maybe other content is also worth protecting it? Branding/MDM option for full-protection vs. login-protection?

  4. jesmrec commented on Jan 13, 2022

    @jesmrec
    Member

    How could this be useful for external users/customers? our idea is helping ourselves with that... any hidden use case?

  5. modified the milestones: 2.20-current, -next on Feb 3, 2022
  6. linked a pull request that will close this issue[FIX] Security flags for screen recording #3560on Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions