malarkey25
malarkey25

Reputation: 19

How to restrict file copying shared using Content Provider in Android?

Is it possible to forbid making copies of files for third party applications (like adobe reader), that I am using to open pdf files stored in internal memory of my application?

Upvotes: 0

Views: 285

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006674

No, sorry. If you hand bytes over to a third-party app, that third-party app can do what it wants with those bytes.

So only solution is to use some in-app pdf reader right?

This will not completely stop people from copying your PDFs. However, it will limit attacks to those who have rooted their devices, which is probably under 1% of users.

Upvotes: 1

Related Questions