flutter/packages/flutter_tools/test/general.shard/android
Danny Tuppeny 53b87635b0
[flutter_tool] Handle RPCErrorKind.kConnectionDisposed (#164299)
There's currently a lot of code that handles RPC Errors that contain the
text "Service connection disposed" because the error originally did not
have a unique error code.

A new error code was added in
https://dart-review.googlesource.com/c/sdk/+/381501 but it's not
currently used because it won't be caught by existing code.

This change updates all places that check for this text, and now also
handle the new error code in preperation for the code changing in
future.

See https://github.com/flutter/flutter/issues/153471

cc @bkonyi 

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [ ] I listed at least one issue that this PR fixes in the description
above.
Issue listed, but this change does not directly fix it, it just prepares
for a related future change that will simplify handling these errors
without string checks
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel
on [Discord].
2025-03-27 08:51:38 +00:00
..
migration Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
adb_log_reader_test.dart 🔊 [tool] Add a wirelessly connected device name as displayName (#160497) 2025-01-10 20:51:34 +00:00
android_device_discovery_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_device_port_forwarder_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_device_start_test.dart Remove the last vestiges of null-unsafety in flutter_tools. (#164026) 2025-02-27 16:31:22 +00:00
android_device_test.dart [flutter_tool] Handle RPCErrorKind.kConnectionDisposed (#164299) 2025-03-27 08:51:38 +00:00
android_emulator_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_gradle_builder_test.dart flutter build aar regenerates tooling between each build-mode step (#162705) 2025-02-06 17:03:02 +00:00
android_install_test.dart 🐛 [tool] Installs the APK regardless of version (#160432) 2024-12-30 02:26:27 +00:00
android_project_migration_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_sdk_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_studio_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_studio_validator_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_workflow_test.dart Fix flutter doctor instructions displayed when cmdline-tools (Android SDK) cannot be found (#162281) 2025-01-30 18:09:27 +00:00
build_validation_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
deferred_components_gen_snapshot_validator_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
deferred_components_prebuild_validator_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
gradle_errors_test.dart Android templates: update default Kotlin from 1.8.22 to 2.1.0, update default Gradle from 8.9 to 8.12 (#160974) 2025-01-23 19:39:32 +00:00
gradle_find_bundle_test.dart [tool] Allow using archiveName in android bundle build (#162390) 2025-02-28 14:57:20 +00:00
gradle_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
gradle_utils_test.dart Android templates: update default Kotlin from 1.8.22 to 2.1.0, update default Gradle from 8.9 to 8.12 (#160974) 2025-01-23 19:39:32 +00:00
java_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
template_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00