Only allow access to log file via explicitly created URIs

Since ContentProviders are public and permissions don't seem to work any
other application could access the log file.  With this token system
only URIs we explicitly created can be accessed.
This commit is contained in:
Tobias Brunner
2012-08-13 11:27:55 +02:00
parent 6c54c10838
commit 064f4f75c0
2 changed files with 37 additions and 2 deletions
@@ -62,6 +62,9 @@
<provider
android:name=".data.LogContentProvider"
android:authorities="org.strongswan.android.content.log" >
<!-- android:grantUriPermissions="true" combined with a custom permission does
not work (probably too many indirections with ACTION_SEND) so we secure
this provider with a custom ticketing system -->
</provider>
</application>