diff options
author | 2023-09-29 14:54:05 -0400 | |
---|---|---|
committer | 2023-10-03 10:25:19 -0400 | |
commit | 2bcce186d5b4879e33aedd6bbac7f5b0b4ec9cd8 (patch) | |
tree | 6672b5d09cbf3dd72ff89e2692237418aa7e5db5 /AndroidManifest-app.xml | |
parent | 702944b16982cf89d20e421a4278170c6af9a729 (diff) |
Hard fork of the ChoserActivity and ResolverActivity
The forked versions are flag guarded by the ChooserSelector.
Test: atest com.android.intentresolver
Test: adb shell pm resolve-activity -a android.intent.action.CHOOSER
Test: Observe that the action resolves to .ChooserActivity
Test: adb shell device_config put intentresolver \
com.android.intentresolver.flags.modular_framework true
Test: Reboot device
Test: adb shell pm resolve-activity -a android.intent.action.CHOOSER
Test: Observe that the action resolves to .v2.ChooserActivity
BUG: 302113519
Change-Id: I59584ed4649fca754826b17055a41be45a32f326
Diffstat (limited to 'AndroidManifest-app.xml')
-rw-r--r-- | AndroidManifest-app.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/AndroidManifest-app.xml b/AndroidManifest-app.xml index 9efc7ab1..ec4fec85 100644 --- a/AndroidManifest-app.xml +++ b/AndroidManifest-app.xml @@ -60,6 +60,36 @@ android:visibleToInstantApps="true" android:exported="false"/> + <receiver android:name="com.android.intentresolver.v2.ChooserSelector" + android:exported="true"> + <intent-filter> + <action android:name="android.intent.action.BOOT_COMPLETED" /> + </intent-filter> + </receiver> + + <activity android:name="com.android.intentresolver.v2.ChooserActivity" + android:enabled="false" + android:theme="@style/Theme.DeviceDefault.Chooser" + android:finishOnCloseSystemDialogs="true" + android:excludeFromRecents="true" + android:documentLaunchMode="never" + android:relinquishTaskIdentity="true" + android:configChanges="screenSize|smallestScreenSize|screenLayout|keyboard|keyboardHidden" + android:visibleToInstantApps="true" + android:exported="true"> + + <!-- This intent filter is assigned a priority greater than 500 so + that it will take precedence over the ChooserActivity + in the process of resolving implicit action.CHOOSER intents + whenever this activity is enabled by the experiment flag. --> + <intent-filter android:priority="501"> + <action android:name="android.intent.action.CHOOSER" /> + <category android:name="android.intent.category.DEFAULT" /> + <category android:name="android.intent.category.VOICE" /> + </intent-filter> + + </activity> + <provider android:name="androidx.startup.InitializationProvider" android:authorities="${applicationId}.androidx-startup" tools:replace="android:authorities" |