将 ADB 调用从 subprocess 改造为 adbutils 库

- 移除 subprocess.run 调用,改用 adbutils 实现持久连接
- 添加 adbutils>=2.12.0 到 requirements.txt
- 更新 .gitignore 添加 Python 包相关条目
- 保持原有公共接口不变,确保兼容性
This commit is contained in:
2026-07-10 09:11:43 +08:00
parent 4d0db4c390
commit 203d5d15ef
3 changed files with 135 additions and 83 deletions
+25
View File
@@ -27,6 +27,10 @@ share/python-wheels/
*.egg
MANIFEST
# PyPI
*.whl
*.tar.gz
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
@@ -174,3 +178,24 @@ cython_debug/
# PyPI configuration file
.pypirc
# Virtual environments
.venv/
venv/
ENV/
env.bak/
venv.bak/
# IDE
.idea/
.vscode/
*.swp
*.swo
# Logs
*.log
# 开发环境
.vscode
.mimocode
.codewhale