Fixed: Not able to open a ZIM file from Samsung's file explorer.

* Created a custom intent filter for Samsung's "My Files" app to handle all MIME types, allowing ZIM files to be opened directly from this file manager.
This commit is contained in:
MohitMaliFtechiz 2024-10-30 11:00:54 +05:30 committed by MohitMaliFtechiz
parent 7400c26c8f
commit 0eb618c41f

View File

@ -49,6 +49,18 @@
<data android:mimeType="application/octet-stream" />
</intent-filter>
<intent-filter>
<!-- Intent filter for Samsung's "My Files" file manager.
This is necessary because it returns an empty mimeType for ZIM files,
preventing our application from appearing in the suggestion list. -->
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<!-- This will match any URI that starts with "content://0@media/external/file/" -->
<data android:scheme="content" />
<data android:host="media" />
<data android:pathPrefix="/external/file/" />
<data android:mimeType="*/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />