如何为 Android 应用程序的某些 mime 类型制作一种黑名单?

How to make a kind of blacklist for some mime-types for Android application?

our Android app 中,我们需要从具有任意 mime 类型的第三方应用程序捕获 ACTION_SEND 意图

<intent-filter>
    <action android:name="android.intent.action.SEND"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <data android:mimeType="*/*"/>
</intent-filter>

.apk 文件除外,即我们需要 .apk 扩展名的黑名单。这可能吗? 似乎答案是 "No way", but I have two apps installed on my device, which definitely solve this problem. They are called for file with arbitrary extension lumix.p&z 从 DropBox 应用

打开

并且不使用 .apk oi.filemanager.apk 调用。 怎么可能?

It seems the answer is "No way"

无法在清单中指定黑名单。

I have two apps installed on my device, which definitely solve this problem

Dropbox 在 lumix.p&z 请求中使用 MIME 类型,这些办公应用已注册。 Dropbox 在 oi.filemanager.apk 请求中使用 MIME 类型,但这些办公应用尚未注册。不需要黑名单。 需要的是 Dropbox 拥有自己的算法,可能在其服务器上实现,以猜测合适的 MIME 类型。