feat: add interval on dump_hierarchy()

This commit is contained in:
2026-07-06 22:40:35 +08:00
parent dd8f28621f
commit 3d5c2ee537
2 changed files with 26 additions and 0 deletions
+6
View File
@@ -1,5 +1,7 @@
import collections
from lxml import etree
# Patch pkg_resources before importing adbutils and uiautomator2
from module.device.pkg_resources import get_distribution
@@ -156,6 +158,10 @@ class Device(Screenshot, Control, AppControl):
return self.image
def dump_hierarchy(self) -> etree._Element:
self.stuck_record_check()
return super().dump_hierarchy()
def release_during_wait(self):
# Scrcpy server is still sending video stream,
# stop it during wait