From ebb08a544d56f241f22201325906287548cbe078 Mon Sep 17 00:00:00 2001 From: Ihor Zvieriev Date: Mon, 13 Jan 2025 15:57:51 +0100 Subject: [PATCH] Remove remntants of old selection option Change-Id: Ie535ae17087f348bb0b053bc8b4df4212c300d1e --- android/scripts/gfxrecon.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/android/scripts/gfxrecon.py b/android/scripts/gfxrecon.py index 33b4ff0cab..939c7d1b19 100644 --- a/android/scripts/gfxrecon.py +++ b/android/scripts/gfxrecon.py @@ -67,7 +67,7 @@ def CheckDeviceSelection(): devices = QueryAvailableDevices() if len(devices) <= 1: return - + selection = os.getenv(android_serial) if selection is None or selection == '': raise DeviceSelectionException('Multiple devices detected - you must specify which one to use by setting ANDROID_SERIAL environment variable.') @@ -244,8 +244,6 @@ def Replay(replay_args): if extras: if args.push_file: cmd = ' '.join([adb_push, args.push_file, args.file]) - if selection is not None: - cmd = InsertDeviceSelectionArgument(cmd, selection) print('Executing:', cmd) subprocess.check_call(shlex.split(cmd, posix='win' not in sys.platform)) @@ -253,8 +251,6 @@ def Replay(replay_args): subprocess.check_call(shlex.split(adb_stop, posix='win' not in sys.platform)) cmd = ' '.join([adb_start, '--es', '"args"', '"{}"'.format(extras)]) - if selection is not None: - cmd = InsertDeviceSelectionArgument(cmd, selection) print('Executing:', cmd) # Specify posix=False to prevent removal of quotes from adb extras.