refactor: 清理代码,移除多余空行以提升可读性
This commit is contained in:
1 parent
d81eea63c9
commit
804a9224ca
7 files changed
+20
-123
No files matched your search
@@ -2495,7 +2495,7 @@ class underlying_operations:
|
||||
|
||||
注意:uiautomator 在某些设备上可能也需要权限,但可以尝试作为备选方案。
|
||||
"""
|
||||
|
||||
|
||||
# 使用 uiautomator swipe 命令
|
||||
# 注意:uiautomator 命令格式可能因 Android 版本而异
|
||||
# Android 5.0+: uiautomator swipe <x1> <y1> <x2> <y2> [steps]
|
||||
@@ -2523,7 +2523,6 @@ class underlying_operations:
|
||||
优点:绕过部分权限检查
|
||||
缺点:需要 root 权限,实现复杂,不同设备的事件格式可能不同
|
||||
"""
|
||||
|
||||
|
||||
# 获取触摸设备路径(通常是 /dev/input/eventX)
|
||||
result = subprocess.run(
|
||||
|
||||
Reference in new issue
Block a user