Double the filter sections for opening pebble apps/firmwares and miband firmwares

There are some inconsistencies across ROMs: some need the mimetype filter to be present in order to match the file extension, other refuse to do so if the filter is present. Current strategy is to satisfy both requirements by duplicating the filter element.
This commit is contained in:
Daniele Gobbetti 2015-07-30 17:14:44 +02:00
parent e4ddbf4aaa
commit 0a6dc8f7a0
1 changed files with 36 additions and 1 deletions

View File

@ -69,7 +69,7 @@
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" /> <!-- needed for android 5 -->
<data android:mimeType="*/*" /> <!-- needed for aosp-derived ROMs? -->
<data android:host="*" />
<data android:scheme="file" />
@ -87,16 +87,51 @@
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />
<data android:pathPattern=".*\\.pbw" />
<data android:pathPattern=".*\\..*\\.pbw" />
<data android:pathPattern=".*\\..*\\..*\\.pbw" />
<data android:pathPattern=".*\\..*\\..*\\..*\\.pbw" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.pbw" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbw" />
<data android:pathPattern=".*\\.pbz" />
<data android:pathPattern=".*\\..*\\.pbz" />
<data android:pathPattern=".*\\..*\\..*\\.pbz" />
<data android:pathPattern=".*\\..*\\..*\\..*\\.pbz" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.pbz" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.pbz" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<!-- no mimeType filter, needed for CM-derived ROMs? -->
<data android:host="*" />
<data android:scheme="file" />
<!-- as seen on openkeychain repo: https://github.com/open-keychain/open-keychain/blob/master/OpenKeychain/src/main/AndroidManifest.xml -->
<data android:pathPattern=".*\\.fw" />
<data android:pathPattern=".*\\..*\\.fw" />
<data android:pathPattern=".*\\..*\\..*\\.fw" />
<data android:pathPattern=".*\\..*\\..*\\..*\\.fw" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.fw" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.fw" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\..*\\.fw" />
<data android:pathPattern=".*\\.pbw" />
<data android:pathPattern=".*\\..*\\.pbw" />
<data android:pathPattern=".*\\..*\\..*\\.pbw" />