From cf0a09f6c54ee6060469bcd85acbefd382eba439 Mon Sep 17 00:00:00 2001 From: Govinda Wasserman Date: Mon, 17 Jul 2023 10:27:43 -0400 Subject: Creates ChooserActivity alias This alias allows us to avoid a bug that caused Share Sheet to crash any app that tried to use it. It also removes the previous solution as it had the potential to not take effect if too many receivers tried to act on the BOOT_COMPLETE broadcast. Test: $ adb root Test: $ adb shell pm disable com.android.intentresolver/.ChooserActivity Test: $ adb shell pm resolve-activity -a android.intent.action.CHOOSER Test: Verify that the activity resolves BUG: 283722356 FIX: 283722356 Change-Id: I820c5f88204c83e635cb877b222bdf6cbe53aaff --- AndroidManifest-app.xml | 32 ++++++++--------- .../intentresolver/ChooserActivityReEnabler.kt | 40 ---------------------- .../intentresolver/dagger/ReceiverBinderModule.kt | 10 ++---- 3 files changed, 18 insertions(+), 64 deletions(-) delete mode 100644 java/src/com/android/intentresolver/ChooserActivityReEnabler.kt diff --git a/AndroidManifest-app.xml b/AndroidManifest-app.xml index d542e627..482c9f38 100644 --- a/AndroidManifest-app.xml +++ b/AndroidManifest-app.xml @@ -34,15 +34,12 @@ tools:replace="android:appComponentFactory" android:appComponentFactory=".IntentResolverAppComponentFactory"> - + +