Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent user to take photo of app display

I'm trying to improve security of data in my Android app and I wonder if there is any tool or something for this problem. I can't find any solution for this on internet. I disable screen capture but users still can take photo of device display. Maybe changing resolution or combining some of colors can help this situation but I really don't have any idea.

like image 982
kagkar Avatar asked Dec 14 '15 09:12

kagkar


People also ask

How do I stop an app from taking screenshots?

According to this official guide, you can add WindowManager. LayoutParams. FLAG_SECURE to your window layout and it will disallow screenshots. Save this answer.

How do I restrict screenshots on Android?

java file simply add the following code and it will prevent taking Screenshot in Android App. getWindow(). setFlags(WindowManager. LayoutParams.

Do apps take pictures of you?

A researcher has demonstrated that it's possible for malicious attackers to create an Android app that will surreptitiously take pictures and upload them to a remote server without the user being aware of or noticing it.


1 Answers

In short - you can't, not when your legitimate user is identical with your adversary. If the users are capable of seeing it, they are also capable of taking a picture. It's the quintessential Red Queen situation: the "anti-protection" technology reacts at the same speed as your "protection" technology evolves: if you invent unpolarized displays, users would take pictures through polarizing filters; the only thing that actually changes are the side effects.

See this for a longer version: Is it possible to protect from downloading a video from a site

(What you could try is enforcing the security through legal means instead of technologically: "I hereby agree that I can use the app only if I don't take pictures of it, in a secure room and all by myself; otherwise I lose access and I'll have to pay a $zillion fine." It does sound unenforceable, but it's still easier to implement and more effective - mainly because of FUD - than blocking the users technologically. IANAL. ;))

like image 163
Piskvor left the building Avatar answered Oct 11 '22 16:10

Piskvor left the building