File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
import logging
2
2
import os
3
-
4
3
import time
5
4
6
5
from core .enums .os_type import OSType
@@ -61,11 +60,11 @@ def is_running(device_id):
61
60
:return: True if running, False if not running.
62
61
"""
63
62
if Settings .HOST_OS is OSType .WINDOWS :
64
- command = "shell dumpsys window windows | findstr mFocusedApp "
63
+ command = "shell dumpsys window windows | findstr mCurrentFocus "
65
64
else :
66
- command = "shell dumpsys window windows | grep -E 'mFocusedApp '"
65
+ command = "shell dumpsys window windows | grep -E 'mCurrentFocus '"
67
66
result = Adb .__run_adb_command (command = command , device_id = device_id , timeout = 10 , fail_safe = True )
68
- return bool ('ActivityRecord ' in result .output )
67
+ return bool ('Window ' in result .output )
69
68
70
69
@staticmethod
71
70
def wait_until_boot (device_id , timeout = 180 , check_interval = 3 ):
You can’t perform that action at this time.
0 commit comments