Merge pull request #5504 from ByteHamster/opml-only-intent

Make opml intent filter more strict
This commit is contained in:
ByteHamster 2021-10-30 14:31:18 +02:00 committed by GitHub
commit cda8e8d5da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 17 deletions

View File

@ -166,34 +166,23 @@
android:exported="true"> android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW"/> <action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:mimeType="text/xml"/>
<data android:mimeType="text/x-opml"/>
<data android:mimeType="application/xml"/>
<data android:mimeType="application/octet-stream"/>
<data android:scheme="file"/>
<data android:scheme="content"/>
<data android:host="*"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND"/> <action android:name="android.intent.action.SEND"/>
<category android:name="android.intent.category.DEFAULT"/> <category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/> <category android:name="android.intent.category.BROWSABLE"/>
<data android:mimeType="text/xml"/> <data android:mimeType="text/xml"/>
<data android:mimeType="text/plain"/>
<data android:mimeType="text/x-opml"/> <data android:mimeType="text/x-opml"/>
<data android:mimeType="application/xml"/> <data android:mimeType="application/xml"/>
<data android:mimeType="application/octet-stream"/>
<data android:scheme="file"/>
<data android:scheme="content"/>
<data android:scheme="http"/> <data android:scheme="http"/>
<data android:scheme="https"/> <data android:scheme="https"/>
<data android:host="*"/>
<data android:pathPattern=".*.xml" />
<data android:pathPattern=".*.opml" />
</intent-filter> </intent-filter>
</activity> </activity>
<activity <activity