'Are there any (poorly documented) changes to IntentFilter's and exported components in Android 12?

We use declarations like the following one (Manifest) to link to certain parts of the app:

    <activity
        android:name=".some.package.SomeActivity"
        android:launchMode="singleInstance"
        android:exported="true">

        <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="https" />
            <data android:host="*.some-domain.com" />
            <data android:path="/native/foo" />
        </intent-filter>

    </activity>

On devices running Android 12, this suddenly stopped working, e.g. scanning a QR code containing a certain URL automatically opens it in the default browser. Prior to Android 12, the system offers to open those URLs in our app when tapping on links like https://some.domain.com/native/foo/bar/. I went through the changelog and was unable to find anything that could explain this behavior (considering we already set exported="true").

What am I missing and how can I tell the system to offer our app to handle those specific URLs?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source