Update enforce intent filter match implementation
1. Guard the feature with proper feature flagging 2. Gate the behavior with target SDK >= V 3. Ignore default only flags when enforcing the intent filter matching, or else some activities will not be accessible by any intent (e.g. launch activities use the catagory LAUNCHER instead of DEFAULT, which means intents returned from PackageManager#getLaunchIntentForPackage cannot be started by any means). Bug: 315837249 Test: atest PackageManagerTest#testEnforceIntentToMatchIntentFilter Change-Id: I8b390cc6146dfb0cdddf7808f117c61130bbf91e
Loading
Please register or sign in to comment