android: Add additional Intent filter for import Activity with MIME type mask
Chrome creates such an Intent when opening downloaded files (not when directly opening them), a MIME type is set, but apparently not ours.
This commit is contained in:
@@ -83,6 +83,7 @@
|
|||||||
<data android:scheme="content" />
|
<data android:scheme="content" />
|
||||||
<data android:mimeType="application/vnd.strongswan.profile" />
|
<data android:mimeType="application/vnd.strongswan.profile" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
<!-- this matches by file extension if no MIME type is provided -->
|
||||||
<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.DEFAULT" />
|
||||||
@@ -97,6 +98,22 @@
|
|||||||
<data android:pathPattern=".*\\..*\\.sswan" />
|
<data android:pathPattern=".*\\..*\\.sswan" />
|
||||||
<data android:pathPattern=".*\\.sswan" />
|
<data android:pathPattern=".*\\.sswan" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
<!-- this matches by file extension if any MIME type (but not ours) is provided -->
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.VIEW" />
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
<category android:name="android.intent.category.BROWSABLE" />
|
||||||
|
<data android:scheme="http" />
|
||||||
|
<data android:scheme="https" />
|
||||||
|
<data android:scheme="file" />
|
||||||
|
<data android:scheme="content" />
|
||||||
|
<data android:host="*" />
|
||||||
|
<data android:mimeType="*/*" />
|
||||||
|
<data android:pathPattern=".*\\..*\\..*\\..*\\.sswan" />
|
||||||
|
<data android:pathPattern=".*\\..*\\..*\\.sswan" />
|
||||||
|
<data android:pathPattern=".*\\..*\\.sswan" />
|
||||||
|
<data android:pathPattern=".*\\.sswan" />
|
||||||
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.TrustedCertificateImportActivity"
|
android:name=".ui.TrustedCertificateImportActivity"
|
||||||
|
|||||||
Reference in New Issue
Block a user