My app specifies as being able to open my own file extension in the manifest file like this:
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="file"/>
<data android:host="*"/>
<data android:mimeType="*/*"/>
<data android:pathPattern=".*\\.ext" />
<data android:pathPattern=".*\\..*\\.ext" />
<data android:pathPattern=".*\\..*\\..*\\.ext" />
<data android:pathPattern=".*\\..*\\..*\\..*\\.ext" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.ext" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.ext" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\..*\\.ext" />
This used to work fine with the standard Android file browser ("My Files") and still works on an older test device running Android 4.3 but doesn't work on my other devices running Android 6 and 8. It also works on the new devices with other file browsers (though not all).
I also tried png and pdf with the corresponding mime types but it won't show my app in the list of apps able to open those files.
What does the standard Android file browser need in order to recognize my app to be able to open files with my extension?
EDIT: I also tried
<data android:scheme="content"/>