feat(设备端): 素材页轮询当前账号 + 切号/读名后广播下发

- 新增 GET /api/device/agent/account(adb dumpsys account,1.5s 缓存)
- push_account_name() 广播给设备端 AccountReceiver,不抢焦点
- switch_account 切号成功 / read_account_name 读名成功后自动推送
- probe_one_dumpsys 支持 timeout(HTTP 轮询用 5s)
- 测试与 DEVICE_AGENT/API 文档同步
This commit is contained in:
2026-10-19 11:05:55 +08:00
parent d3569152b4
commit c91b01524d
8 changed files with 205 additions and 6 deletions
+3
View File
@@ -19,6 +19,9 @@ os.chdir(_ROOT)
from tasks.generic import task as gt # noqa: E402
# 假设备用例:切号成功后不要尝试 adb 广播(不连真机)
gt.GenericStepsWorker.account_push_enabled = False
fails = []