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:
@@ -322,6 +322,7 @@
|
||||
| 方法 | 路径 | 功能 |
|
||||
|------|------|------|
|
||||
| GET | `/api/device/agent/bootstrap` | 设备拉自己的身份 + 可安装应用清单 |
|
||||
| GET | `/api/device/agent/account` | 设备素材页轮询当前抖音账号(平台走 adb `dumpsys account`,1.5s 缓存;昵称可能被 MIUI 打码) |
|
||||
| GET | `/api/device/agent/apk/<apk_id>` | 下载 APK 文件 |
|
||||
| POST | `/api/device/agent/report` | 上报下载/安装结果 |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user