Merge pull request #5925 from k9mail/do_not_expose_MessageProvider

Don't expose MessageProvider to third-party apps
This commit is contained in:
cketti 2022-02-21 16:57:37 +01:00 committed by GitHub
commit b94113f8b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 27 deletions

View file

@ -25,23 +25,6 @@
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<permission
android:name="${applicationId}.permission.READ_MESSAGES"
android:description="@string/read_messages_desc"
android:label="@string/read_messages_label"
android:permissionGroup="android.permission-group.MESSAGES"
android:protectionLevel="dangerous"/>
<uses-permission android:name="${applicationId}.permission.READ_MESSAGES"/>
<permission
android:name="${applicationId}.permission.DELETE_MESSAGES"
android:description="@string/delete_messages_desc"
android:label="@string/delete_messages_label"
android:permissionGroup="android.permission-group.MESSAGES"
android:protectionLevel="dangerous"/>
<uses-permission android:name="${applicationId}.permission.DELETE_MESSAGES"/>
<application
android:name="com.fsck.k9.App"
android:allowTaskReparenting="false"
@ -411,11 +394,7 @@
<provider
android:name=".external.MessageProvider"
android:authorities="${applicationId}.messageprovider"
android:exported="true"
android:grantUriPermissions="true"
android:multiprocess="true"
android:readPermission="${applicationId}.permission.READ_MESSAGES"
android:writePermission="${applicationId}.permission.DELETE_MESSAGES"/>
android:exported="false" />
<provider
android:name=".provider.EmailProvider"

View file

@ -77,11 +77,6 @@ Please submit bug reports, contribute new features and ask questions at
<string name="authors">Authors</string>
<string name="read_messages_label">Read Emails</string>
<string name="read_messages_desc">Allows this application to read your Emails.</string>
<string name="delete_messages_label">Delete Emails</string>
<string name="delete_messages_desc">Allows this application to delete your Emails.</string>
<string name="about_title">About K-9 Mail</string>
<string name="accounts_title">Accounts</string>
<string name="advanced">Advanced</string>