Sending Intent needs to specify options
This only makes the existing API public. This API adds an options Bundle analog to PendingIntent.send. Since this is an existing API (just hidden) there are existing CTS tests, e.g. PackageManagerTest modified in ag/21435231 Without this change 1P and 3P cannot send IntentSenders to start Activities since that needs BAL opt in (actually since SDK 34, but most cases were covered by the BAL privilege of the creator, which is opt-in in SDK 35). The use of IntentSenders is much less common than PendingIntents, but for historical and API layering reasons some (system) APIs return IntentSenders and there is no existing way to convert an IntentSender back to a PendingIntent. Creating such a way would be a significant risk as this would force equivalence between these 2 classes (see https://chat.google.com/room/AAAAWc5iiZU/jAxcU6w0nVQ). Bug: 339720406 Test: atest BackgroundActivityLaunchTests Flag: com.android.window.flags.bal_send_intent_with_options API-Coverage-Bug: 269159993 Change-Id: I20804fd0f1aec687c0eaf8a2e53b5463d44399f7
Loading
Please register or sign in to comment