I’m using ContentProvider in my android application to share the database between the application. For sharing the database I need to add the provider access in AndroidManifest.xml like as follows:
<provider
android:name="Contentprovider"
android:authorities="umb.con.apps.vid" />
I added and implemented successfully but the warning message showing in the <provider/> tag like this “Exported content providers can provide access to potentially sensitive data”. Will it cause any security problem in future?
If you just want the content provider to be accessed internally from within your app, simply add
into the node in the manifest.
From the doc:
If, on the other hand, you really want to expose your data to other apps but you also have sensitive data in your data storage, remember that you can have more than one content provider and thus expose just the “public” one.