80

Some apps don't allow screenshots so how can I still take a screenshot?

It is my phone and I should be able to do whatever I want with it so why is there even a feature to disallow screenshots?

Android 5.0.1

6
  • 11
    It doesn't matter what app it is (an online shopping app and an online banking app) it is the fact that apps have some kind of control of some features of my OS, what's next? Disallowing internet connection while having an app opened?
    – Pali
    Dec 31, 2015 at 0:19
  • Go to setting and dont allow the app to control that permition
    – maks112v
    Dec 31, 2015 at 0:21
  • 2
    I can't edit the apps permissions nor is there such a permission for this type of control.
    – Pali
    Dec 31, 2015 at 0:25
  • @Pali You'll have to play by the book unless you root your phone.
    – SarpSTA
    Dec 31, 2015 at 0:56
  • 1
    @SarpSTA well then I have found the final reason to root it ;)
    – Pali
    Dec 31, 2015 at 0:59

7 Answers 7

35

Note: this answer is a bit outdated as of August 31, 2022. Will try to update it soon.

Why apps prevent screen capturing, and how to disable the restriction

Some apps present sensitive data (e.g. banking apps) or copyright-protected content (e.g. video streaming apps). App developers can opt to use the Android platform’s FLAG_SECURE setting to prevent the screen from being captured, recorded, or shown on “non-secure displays” such as the recent apps view. There are a couple of ways to disable this flag:

  1. Smali Patcher module for Magisk. Magisk is officially supported on Android versions 4.2⁠–⁠12.0.
  2. DisableFlagSecure module for Xposed. Xposed is officially supported on Android versions 5.0⁠–⁠8.1.

The Smali Patcher method requires you to connect your phone to a PC and run a Windows program to actually generate the module. Note that Magisk on Android 4.2 does not support MagiskHide.

The Xposed method has a big caveat: many banking apps use Google’s SafetyNet platform for checking device integrity, and prevent the application from being used on devices that have Xposed installed. This renders the module useless in SafetyNet-enabled apps, and there is currently no way to hide Xposed from SafetyNet.

Use these modules with caution, as they disable the flag system-wide.

Taking a screen capture of your phone on your PC

If you can’t or don’t want to disable FLAG_SECURE on your phone, you can also use scrcpy. It lets you mirror your phone’s display to your computer, and then you can just use a screenshot software of your choice on your computer to capture the phone’s screen. This requires you to turn on ADB debugging from your phone’s development settings, but beware that some apps restrict their functions when they detect that development settings are enabled. Scrcpy works on Android versions 5.0–12.0.

0
5

You can use Scrcpy or Vysor app and project your android screen to computer screen and then take screenshot on your PC.

8
  • 1
    I tried this and it did not work. Basically, since you are "casting" your screen through the Vysor app, screenshots will not work.
    – Arete
    Mar 1, 2017 at 10:00
  • 2
    You have to take screenshots in your PC, not on mobile Mar 2, 2017 at 17:21
  • 15
    On your PC you will get a black screen because Android determines that your app is using FLAG_SECURE. So that does not help. You clearly haven't tried this.
    – Arete
    Mar 2, 2017 at 17:23
  • 1
    I can confirm that on Marshmallow this app does NOT work for secure apps at all.
    – George Y.
    Jul 1, 2017 at 0:58
  • 3
    TeamViewer would be another option to accomplish the same thing. Install the host app on your phone, then connect to it from your PC and take a screenshot of your PC screen.
    – July.Tech
    Jun 13, 2018 at 13:40
3

There's also Smali Patcher program for Windows which creates custom Magisk module for your device and has option to disable FLAG_SECURE system-wide.

2

Apps which are set with LayoutParams.FLAG_SECURE flag do not allow screenshots (or videos recording) to be taken. It is of-course your phone but the app belongs to its owner (and he can rightfully wish to prevent users from capturing something sensitive in nature). You're barred from taking a screenshot only for those screens that have the above flag set. However you can still take a screenshot by projecting your phone on the PC screen and capturing it. That way, the device has no idea that screenshot is taken.

5
  • How does one project a "phone on the PC screen" and then capture it? Can you clarify if you are implying use of a separate or multiple different applications? Thanks. Sep 9, 2016 at 13:21
  • 2
    "However you can still take a screenshot by projecting your phone on the PC screen and capturing it. That way, the device has no idea that screenshot is taken." That is missing a crucial aspect: Taking a screenshot should be a nearly instantaneous operation that should NOT require the use of a secondary device to aid the taking of a screenshot.
    – bgoodr
    Oct 28, 2016 at 20:18
  • 3
    This answer is flase. For apps that use the FLAG_SECURE there is no way to project the app to another screen because the app won't allow it.
    – Arete
    Mar 1, 2017 at 10:03
  • I have encountered this for LastPass. I don't see a reason why you would want to take a screenshot of one of your own passwords in-app. It actually holds your hand so you don't fuck up your own security. Mar 18, 2019 at 9:22
  • 1
    "he can rightfully prevent wish to prevent users..." - I don't really care about his wishes. He doesn't have a legal right to prevent me (eg. It's not illegal to take a photo of my phone with another phone). Besides, lots of apps use FLAG_SECURE even when there is no sensitive data on the screen. Jun 17, 2021 at 9:46
2

Just for those guys who came here by error in Chrome Incognito mode

Can't take screenshot due to error policy

There is a special flag Incognito screenshots that can be accessed via

chrome://flags

The default value is disabled but if you enable it, you are done. Screenshots are allowed.

enter image description here

1

In some banks you must log in first and disable security measures in regards to mobile applications. I did it with my bank.

0

Following on from 'user's' answer, using a program such as Droid@screen droid at screen will allow you to project your phone screen to the PC, and then screenshot it via the PC Prnt Scrn button.

UPDATE: Android screen mirror is a better and faster screen mirror

https://github.com/adakoda/android-screen-monitor

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .