# Disable Screenshot, Copy & Paste

DevFeed: [Disable Screenshot, Copy & Paste](<https://devfeed.tech/articles/disable-screenshot-copy-paste-19289.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/disable-screenshots-copy-paste/>)

Author: Shai Almog

Published: 2017-01-31T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Android Security](<https://devfeed.tech/topics/android-security.md>), [Security](<https://devfeed.tech/topics/security.md>), [App](<https://devfeed.tech/topics/app.md>), [Jailbreak](<https://devfeed.tech/topics/jailbreak.md>), [iOS](<https://devfeed.tech/topics/ios.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-security](<https://devfeed.tech/tags/android-security.md>), [app](<https://devfeed.tech/tags/app.md>), [ios](<https://devfeed.tech/tags/ios.md>), [jailbreak](<https://devfeed.tech/tags/jailbreak.md>), [security](<https://devfeed.tech/tags/security.md>)

## AI overview

The article describes Codename One features for blocking screenshots and copy-and-paste operations in Android apps. Screenshot blocking uses the android.disableScreenshots=true build hint, may affect task view, and may fail on jailbroken devices. Screenshot blocking is Android-specific, while copy-and-paste blocking is discussed for Android and future iOS support.

## Source excerpt

Continuing our security trend from the past month we have a couple of new features for Android security that allow us to block the user from taking a screenshot or copying & pasting data from fields. Notice that these features might fail on jailbroken devices so you might want to check for jailbreak/rooting first. Blocking screenshots is an Android specific feature that can't be implemented on iOS. This is implemented by classifying the app window as secure and you can do that via the build hint android.disableScreenshots=true. Once that is added screenshots should no longer work for the app, this might impact other things as well such as the task view etc.