Add a proxy activity for launch bubble for another user in primary user
This CL is required for work profile notes app shortcuts to be able to
launch in a bubble.
Test: atest SystemUITests:com.android.systemui.notetask.shortcut.LaunchNoteTaskManagedProfileProxyActivityTest
atest SystemUITests:com.android.systemui.notetask.shortcut.LaunchNoteTaskActivityTest
atest SystemUITests:com.android.systemui.notetask.NoteTaskControllerTest
Bug: 259952057
Change-Id: I8c5cce46c5b7cf6d0c9e6031628ebe3735171723
diff --git a/packages/SystemUI/AndroidManifest.xml b/packages/SystemUI/AndroidManifest.xml
index 9b3f1a8..d37a4aa 100644
--- a/packages/SystemUI/AndroidManifest.xml
+++ b/packages/SystemUI/AndroidManifest.xml
@@ -983,6 +983,16 @@
android:excludeFromRecents="true"
android:resizeableActivity="false"
android:theme="@android:style/Theme.NoDisplay" />
+
+ <!-- LaunchNoteTaskManagedProfileProxyActivity MUST NOT be exported because it allows caller
+ to specify an Android user when launching the default notes app. -->
+ <activity
+ android:name=".notetask.shortcut.LaunchNoteTaskManagedProfileProxyActivity"
+ android:exported="false"
+ android:enabled="true"
+ android:excludeFromRecents="true"
+ android:resizeableActivity="false"
+ android:theme="@android:style/Theme.NoDisplay" />
<!-- endregion -->
<!-- started from ControlsRequestReceiver -->