Screenshot Protection
When F-Droid is used in a security sensitive context (maybe as a white-labeled version) it can be useful to prevent screenshots from being taken and to hide the app content from the list of recent apps.
Both can be achieved by adding the FLAG_SECURE
to the window. I suggest to introduce a new FDroidActivity
that extends AppCompatActivity
and from which all our activities extend. It overrides onCreate()
, adds the flag if screenshot protection is enabled in the settings and also applies the current theme.
Edited by Torsten Grote