Setting to enable FLAG_SECURE in WindowManager

First off, thank you for Brave, it’s awesome!

I have a feature I would like to please request.

Please add an option to disable screenshots within Brave.

As an example, this is a security feature available in Signal and is turned on by default in the TOR browser.

The benefit of this feature is security. When clicking the recent apps or window manager button in Android, a screenshot of your currently open apps is displayed. I always mistakenly throught this was a realtime preview.

This screenshot is stored within the device and is both recoverable forensically and potentially accessible by malicious apps on rooted phones.

Window flag: treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays.

https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SECURE

For example, I utilise LineageOS for my mobile and therefore do not utilise my banking app. I use Brave to access my banking. I would prefer that when I switch between apps, a screenshot of my sensitive information is not saved to the device.

There are more extreme examples and it never hurts to have options!

Thank you for your time and consideration!


Thought I might provide you with an example.