Adnan Ahmad Khan
Adnan Ahmad Khan

Reputation: 644

Hide SQLite Database in Android from Other Applications

I am Working on an Android Application which will be launched with a huge Pre loaded SQLite database. Problem is that database is visible to Applications like HACKDataApp etc. And Can also be viewed and copied in Android Device Monitor. Question is, Is there any way to protect\hide my database from other applications??

Upvotes: 0

Views: 453

Answers (1)

mcfly
mcfly

Reputation: 834

you got to make your contentProvider not exported. SImply as that :

from official documentation : android:exported: Flag allowing other applications to use this provider.

put this in your manifest declaration for each contentProvider.

Upvotes: 1

Related Questions