diff --git a/dev/integration_tests/abstract_method_smoke_test/android/app/src/main/AndroidManifest.xml b/dev/integration_tests/abstract_method_smoke_test/android/app/src/main/AndroidManifest.xml
index bd26b58491..e90750ae5d 100644
--- a/dev/integration_tests/abstract_method_smoke_test/android/app/src/main/AndroidManifest.xml
+++ b/dev/integration_tests/abstract_method_smoke_test/android/app/src/main/AndroidManifest.xml
@@ -31,4 +31,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/dev/integration_tests/android_embedding_v2_smoke_test/android/app/src/main/AndroidManifest.xml b/dev/integration_tests/android_embedding_v2_smoke_test/android/app/src/main/AndroidManifest.xml
index eec715be77..c208943b65 100644
--- a/dev/integration_tests/android_embedding_v2_smoke_test/android/app/src/main/AndroidManifest.xml
+++ b/dev/integration_tests/android_embedding_v2_smoke_test/android/app/src/main/AndroidManifest.xml
@@ -31,4 +31,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/dev/integration_tests/android_semantics_testing/android/app/src/main/AndroidManifest.xml b/dev/integration_tests/android_semantics_testing/android/app/src/main/AndroidManifest.xml
index b2da3f42ce..f44172ee50 100644
--- a/dev/integration_tests/android_semantics_testing/android/app/src/main/AndroidManifest.xml
+++ b/dev/integration_tests/android_semantics_testing/android/app/src/main/AndroidManifest.xml
@@ -35,4 +35,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/dev/integration_tests/android_views/android/app/src/main/AndroidManifest.xml b/dev/integration_tests/android_views/android/app/src/main/AndroidManifest.xml
index b3427f9afe..b2ce070374 100644
--- a/dev/integration_tests/android_views/android/app/src/main/AndroidManifest.xml
+++ b/dev/integration_tests/android_views/android/app/src/main/AndroidManifest.xml
@@ -32,4 +32,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/dev/integration_tests/channels/android/app/src/main/AndroidManifest.xml b/dev/integration_tests/channels/android/app/src/main/AndroidManifest.xml
index 0f738a6513..617843bb03 100644
--- a/dev/integration_tests/channels/android/app/src/main/AndroidManifest.xml
+++ b/dev/integration_tests/channels/android/app/src/main/AndroidManifest.xml
@@ -34,4 +34,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/dev/integration_tests/deferred_components_test/android/app/src/main/AndroidManifest.xml b/dev/integration_tests/deferred_components_test/android/app/src/main/AndroidManifest.xml
index c43b90e80f..2ef791937c 100644
--- a/dev/integration_tests/deferred_components_test/android/app/src/main/AndroidManifest.xml
+++ b/dev/integration_tests/deferred_components_test/android/app/src/main/AndroidManifest.xml
@@ -42,4 +42,15 @@ found in the LICENSE file. -->
android:name="io.flutter.embedding.engine.deferredcomponents.DeferredComponentManager.loadingUnitMapping"
android:value="2:component1" />
+
+
+
+
+
+
+
diff --git a/dev/integration_tests/external_ui/android/app/src/main/AndroidManifest.xml b/dev/integration_tests/external_ui/android/app/src/main/AndroidManifest.xml
index e47926ea50..505106a5c3 100644
--- a/dev/integration_tests/external_ui/android/app/src/main/AndroidManifest.xml
+++ b/dev/integration_tests/external_ui/android/app/src/main/AndroidManifest.xml
@@ -28,4 +28,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/dev/integration_tests/flavors/android/app/src/main/AndroidManifest.xml b/dev/integration_tests/flavors/android/app/src/main/AndroidManifest.xml
index 1f2b895c1f..7e6b333cfb 100644
--- a/dev/integration_tests/flavors/android/app/src/main/AndroidManifest.xml
+++ b/dev/integration_tests/flavors/android/app/src/main/AndroidManifest.xml
@@ -27,4 +27,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/dev/integration_tests/flutter_gallery/android/app/src/main/AndroidManifest.xml b/dev/integration_tests/flutter_gallery/android/app/src/main/AndroidManifest.xml
index 4fa18532f6..202df0e90a 100644
--- a/dev/integration_tests/flutter_gallery/android/app/src/main/AndroidManifest.xml
+++ b/dev/integration_tests/flutter_gallery/android/app/src/main/AndroidManifest.xml
@@ -28,4 +28,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/dev/integration_tests/gradle_deprecated_settings/android/app/src/main/AndroidManifest.xml b/dev/integration_tests/gradle_deprecated_settings/android/app/src/main/AndroidManifest.xml
index 0207e9357e..3f278c4b84 100644
--- a/dev/integration_tests/gradle_deprecated_settings/android/app/src/main/AndroidManifest.xml
+++ b/dev/integration_tests/gradle_deprecated_settings/android/app/src/main/AndroidManifest.xml
@@ -28,4 +28,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/dev/integration_tests/hybrid_android_views/android/app/src/main/AndroidManifest.xml b/dev/integration_tests/hybrid_android_views/android/app/src/main/AndroidManifest.xml
index 63d3eac735..1ea36ce140 100644
--- a/dev/integration_tests/hybrid_android_views/android/app/src/main/AndroidManifest.xml
+++ b/dev/integration_tests/hybrid_android_views/android/app/src/main/AndroidManifest.xml
@@ -30,4 +30,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/dev/integration_tests/non_nullable/android/app/src/main/AndroidManifest.xml b/dev/integration_tests/non_nullable/android/app/src/main/AndroidManifest.xml
index 7415fbb6c6..bb51b7877e 100644
--- a/dev/integration_tests/non_nullable/android/app/src/main/AndroidManifest.xml
+++ b/dev/integration_tests/non_nullable/android/app/src/main/AndroidManifest.xml
@@ -40,4 +40,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/dev/integration_tests/platform_interaction/android/app/src/main/AndroidManifest.xml b/dev/integration_tests/platform_interaction/android/app/src/main/AndroidManifest.xml
index 50beff7802..6c7c6a539b 100644
--- a/dev/integration_tests/platform_interaction/android/app/src/main/AndroidManifest.xml
+++ b/dev/integration_tests/platform_interaction/android/app/src/main/AndroidManifest.xml
@@ -35,4 +35,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/dev/integration_tests/release_smoke_test/android/app/src/main/AndroidManifest.xml b/dev/integration_tests/release_smoke_test/android/app/src/main/AndroidManifest.xml
index b406c6d784..3b78c9482e 100644
--- a/dev/integration_tests/release_smoke_test/android/app/src/main/AndroidManifest.xml
+++ b/dev/integration_tests/release_smoke_test/android/app/src/main/AndroidManifest.xml
@@ -40,4 +40,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/dev/integration_tests/spell_check/android/app/src/main/AndroidManifest.xml b/dev/integration_tests/spell_check/android/app/src/main/AndroidManifest.xml
index c3ddbe39ac..29f9c48842 100644
--- a/dev/integration_tests/spell_check/android/app/src/main/AndroidManifest.xml
+++ b/dev/integration_tests/spell_check/android/app/src/main/AndroidManifest.xml
@@ -34,4 +34,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/dev/integration_tests/ui/android/app/src/main/AndroidManifest.xml b/dev/integration_tests/ui/android/app/src/main/AndroidManifest.xml
index e3b2838423..8e86dad9ad 100644
--- a/dev/integration_tests/ui/android/app/src/main/AndroidManifest.xml
+++ b/dev/integration_tests/ui/android/app/src/main/AndroidManifest.xml
@@ -34,4 +34,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/examples/api/android/app/src/main/AndroidManifest.xml b/examples/api/android/app/src/main/AndroidManifest.xml
index bc97e5f51c..c284af112c 100644
--- a/examples/api/android/app/src/main/AndroidManifest.xml
+++ b/examples/api/android/app/src/main/AndroidManifest.xml
@@ -34,4 +34,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/examples/flutter_view/android/app/src/main/AndroidManifest.xml b/examples/flutter_view/android/app/src/main/AndroidManifest.xml
index 2f6660ec69..f45c7021b5 100644
--- a/examples/flutter_view/android/app/src/main/AndroidManifest.xml
+++ b/examples/flutter_view/android/app/src/main/AndroidManifest.xml
@@ -26,4 +26,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/examples/hello_world/android/app/src/main/AndroidManifest.xml b/examples/hello_world/android/app/src/main/AndroidManifest.xml
index 193864a62f..2b5da75800 100644
--- a/examples/hello_world/android/app/src/main/AndroidManifest.xml
+++ b/examples/hello_world/android/app/src/main/AndroidManifest.xml
@@ -28,4 +28,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/examples/image_list/android/app/src/main/AndroidManifest.xml b/examples/image_list/android/app/src/main/AndroidManifest.xml
index 808c3b3c3a..9943200ec1 100644
--- a/examples/image_list/android/app/src/main/AndroidManifest.xml
+++ b/examples/image_list/android/app/src/main/AndroidManifest.xml
@@ -27,4 +27,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/examples/layers/android/app/src/main/AndroidManifest.xml b/examples/layers/android/app/src/main/AndroidManifest.xml
index 64e638d1f4..0184de100a 100644
--- a/examples/layers/android/app/src/main/AndroidManifest.xml
+++ b/examples/layers/android/app/src/main/AndroidManifest.xml
@@ -28,4 +28,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/examples/platform_channel/android/app/src/main/AndroidManifest.xml b/examples/platform_channel/android/app/src/main/AndroidManifest.xml
index 367d53b7f5..803e946a37 100644
--- a/examples/platform_channel/android/app/src/main/AndroidManifest.xml
+++ b/examples/platform_channel/android/app/src/main/AndroidManifest.xml
@@ -30,4 +30,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/examples/platform_view/android/app/src/main/AndroidManifest.xml b/examples/platform_view/android/app/src/main/AndroidManifest.xml
index 25e02ca0ee..4dd54b3201 100644
--- a/examples/platform_view/android/app/src/main/AndroidManifest.xml
+++ b/examples/platform_view/android/app/src/main/AndroidManifest.xml
@@ -36,4 +36,15 @@ found in the LICENSE file. -->
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/packages/flutter/lib/src/services/process_text.dart b/packages/flutter/lib/src/services/process_text.dart
index b823f3f9fb..98abd9d278 100644
--- a/packages/flutter/lib/src/services/process_text.dart
+++ b/packages/flutter/lib/src/services/process_text.dart
@@ -60,7 +60,31 @@ abstract class ProcessTextService {
/// Any widget may use this service to get a list of text processing actions
/// and send requests to activate these text actions.
///
-/// This is currently only supported by Android.
+/// This is currently only supported on Android and it requires adding the
+/// following '' element to the Android manifest file:
+///
+///
+///
+/// ...
+///
+///
+///
+///
+///
+///
+///
+///
+///
+///
+/// The '' element is part of the Android manifest file generated when
+/// running the 'flutter create' command.
+///
+/// If the '' element is not found, `queryTextActions()` will return an
+/// empty list of `ProcessTextAction`.
///
/// See also:
///
diff --git a/packages/flutter_tools/templates/app_shared/android.tmpl/app/src/main/AndroidManifest.xml.tmpl b/packages/flutter_tools/templates/app_shared/android.tmpl/app/src/main/AndroidManifest.xml.tmpl
index 2c6ec18fa7..ae78e63013 100644
--- a/packages/flutter_tools/templates/app_shared/android.tmpl/app/src/main/AndroidManifest.xml.tmpl
+++ b/packages/flutter_tools/templates/app_shared/android.tmpl/app/src/main/AndroidManifest.xml.tmpl
@@ -30,4 +30,15 @@
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/src/main/AndroidManifest.xml.tmpl b/packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/src/main/AndroidManifest.xml.tmpl
index ac25d09b4b..a3044c6d5a 100644
--- a/packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/src/main/AndroidManifest.xml.tmpl
+++ b/packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/src/main/AndroidManifest.xml.tmpl
@@ -37,4 +37,15 @@
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+