You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minicap中下面的这个函数在关闭minicap的时候android7版本使用ps -A| grep minicap 找不到minicap进程,跑多个任务,minicap进程会越来越多,导致手机特别卡。
def _cleanup_minicap(self):
"""
Clean up the minicap process whose status is __skb_wait_for_more_packets or futex_wait_queue_me
清理状态为__skb_wait_for_more_packets, futex_wait_queue_me的minicap进程
Returns:
"""
# 卡住的进程状态
TASK_INTERRUPTIBLE1 = "__skb_wait_for_more_packets"
TASK_INTERRUPTIBLE2 = "futex_wait_queue_me"
try:
shell_output = self.adb.shell("ps -A| grep minicap")
except:
pass
else:
if len(shell_output) == 0:
return
for line in shell_output.split("\r\n"):
if TASK_INTERRUPTIBLE1 in line or TASK_INTERRUPTIBLE2 in line:
pid = line.split()[1]
try:
self.adb.shell("kill %s" % pid)
except:
pass
The text was updated successfully, but these errors were encountered:
minicap中下面的这个函数在关闭minicap的时候android7版本使用ps -A| grep minicap 找不到minicap进程,跑多个任务,minicap进程会越来越多,导致手机特别卡。
def _cleanup_minicap(self):
"""
Clean up the minicap process whose status is __skb_wait_for_more_packets or futex_wait_queue_me
清理状态为__skb_wait_for_more_packets, futex_wait_queue_me的minicap进程
The text was updated successfully, but these errors were encountered: