From 5c5b014fe16aefd7aee91f00bb7d024c758e5e5c Mon Sep 17 00:00:00 2001 From: Jian Chen Date: Fri, 15 Nov 2024 17:01:00 -0800 Subject: [PATCH] Update tools/python/util/android/android.py Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- tools/python/util/android/android.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/python/util/android/android.py b/tools/python/util/android/android.py index 528a24b5074af..e767e69e0d284 100644 --- a/tools/python/util/android/android.py +++ b/tools/python/util/android/android.py @@ -237,9 +237,7 @@ def is_emulator_running_by_avd(avd_name: str) -> bool: # Step 2: Check each running emulator's AVD name for emulator in running_emulators: try: - avd_info = subprocess.check_output( - ["adb", "-s", emulator, "emu", "avd", "name"], text=True - ).strip() + avd_info = subprocess.check_output(["adb", "-s", emulator, "emu", "avd", "name"], text=True).strip() if avd_info == avd_name: return True except subprocess.SubprocessError: