diff --git a/dev/devicelab/lib/tasks/integration_tests.dart b/dev/devicelab/lib/tasks/integration_tests.dart index a9a8d5e5ea8..de9a067a844 100644 --- a/dev/devicelab/lib/tasks/integration_tests.dart +++ b/dev/devicelab/lib/tasks/integration_tests.dart @@ -4,7 +4,7 @@ import '../framework/devices.dart'; import '../framework/framework.dart'; -import '../framework/talkback.dart'; +import '../framework/talkback.dart' hide adbPath; import '../framework/task_result.dart'; import '../framework/utils.dart'; @@ -278,7 +278,8 @@ class DriverTest { // reference it if needed. final Map env = { if (environment != null) ...environment!, - 'DEVICE_ID_NUMBER': deviceId, + 'FLUTTER_DEVICE_ID_NUMBER': deviceId, + 'FLUTTER_ADB_PATH': adbPath, }; final List options = [ diff --git a/dev/integration_tests/android_verified_input/test_driver/main_test.dart b/dev/integration_tests/android_verified_input/test_driver/main_test.dart index 641d8ed74ba..4499a5da37a 100644 --- a/dev/integration_tests/android_verified_input/test_driver/main_test.dart +++ b/dev/integration_tests/android_verified_input/test_driver/main_test.dart @@ -28,7 +28,8 @@ Future main() async { final Future inputEventWasVerified = driver.requestData('input_was_verified'); // Passed in by the driver task. - final String? deviceId = Platform.environment['DEVICE_ID_NUMBER']; + final String? deviceId = Platform.environment['FLUTTER_DEVICE_ID_NUMBER']; + final String? adbPath = Platform.environment['FLUTTER_ADB_PATH']; // Keep issuing taps until we get the requested data. The actual setup // of the platform view is asynchronous so we might have to tap more than @@ -37,7 +38,7 @@ Future main() async { inputEventWasVerified.whenComplete(() => stop = true); while (!stop) { // We must use the Android input tool to get verified input events. - final ProcessResult result = await Process.run('adb', [ + final ProcessResult result = await Process.run(adbPath ?? 'adb', [ if (deviceId != null) ...['-s', deviceId], 'shell', 'input',