refactor: web_server 模块化拆分(web/ 蓝图包 auth/monitor/tasks/admin/tools/devices/apks/tailscale + context/common,web_server 1796→193 行仅留装配与启动)+ 大屏优化(网格 5s 轮询、弹窗独占缩略图、流支持 q/fps)+ 三修复(MIUI 屏幕状态检测改 dumpsys power、补 ADB_PATH 导入修复一键亮屏、renderGrid 增量渲染不重载缩略图)

This commit is contained in:
2026-08-19 14:55:29 +08:00
parent e07b339a51
commit ce47a5b83d
16 changed files with 1922 additions and 1780 deletions
+12
View File
@@ -0,0 +1,12 @@
"""共享上下文:web_server 启动时注入全局对象,各蓝图模块从这里取。
避免蓝图模块与 web_server 循环 import。
"""
mgr = None # core.task_manager.TaskManager
apk_mgr = None # core.apk_manager.ApkManager
device_pool = None # core.device_pool
def init(mgr_, apk_mgr_, device_pool_):
global mgr, apk_mgr, device_pool
mgr, apk_mgr, device_pool = mgr_, apk_mgr_, device_pool_