path: python3.13_3.13.12-1/Android/android.py # includes it, but it doesn't work (it returns all processes). pid = (await async_check_output( adb, "-s", serial, "shell", "pidof", "-s", APP_ID )).strip() except CalledProcessError as e: path: python3.13_3.13.12-1/Android/android.py )).strip() except CalledProcessError as e: # If the app isn't running yet, pidof gives no output. So if there # is output, there must have been some other error. However, this # sometimes happens transiently, especially when running a managed path: python3.13_3.13.12-1/Android/android.py while True: try: # `pidof` requires API level 24 or higher. The level 23 emulator # includes it, but it doesn't work (it returns all processes). pid = (await async_check_output(