From 5b995fbde351a6ecc19cc3ea7916f7b4f40c5383 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 e552426c61..225892952c 100644 --- a/android/scripts/gfxrecon.py +++ b/android/scripts/gfxrecon.py @@ -68,7 +68,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.') @@ -365,8 +365,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)) @@ -374,8 +372,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.