Back to top

Screen capture permissions don’t update after calling setScreenCapture()

Last updated March 11th, 2024

Environment

  • Knox SDK
  • Devices running One UI 6.0

Overview

The setScreenCapture() method can be called to allow or restrict a user from taking screenshots on a device. If setScreenCapture() is disabled initially and later enabled, device users might encounter unexpected behaviour. Either the screenshot is blank or the following error is displayed:

This app doesn’t allow screenshots.

This issue has been resolved in the One UI 6.1 release.

Cause

The setScreenCapture() method stores the state of the screen capture permission as a flag. For most devices running One UI 6.0, this flag doesn’t update properly, causing the issue.

Resolution

To resolve the issue, you or the device user must restart the affected device.

Back to KBAs

Is this page helpful?