deploy_and_verify_apk
Installs a local APK, cold-launches the target app, then returns crash stacks, Logcat, LSPosed logs, and UI hierarchy to verify deployment and hook behavior in one call.
Instructions
【Android / LSPosed 开发一键联调闭环】 单次调用自动完成:
安装本地 APK (
adb install -r -d)记录日志起始时间,保留全局 Logcat 缓冲池
强杀并冷启动目标宿主应用 (
am force-stop+ 启动)等待页面渲染与 Hook 注入
自动汇总返回:是否有 Crash 堆栈 + 目标应用 Logcat + LSPosed 模块最新日志 + 当前屏幕 UI 控件树!
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apk_path | Yes | 本地电脑上编译好的 APK 绝对路径 | |
| log_keyword | No | 可选:过滤提取日志的关键词 | |
| wait_seconds | No | 启动后等待钩子执行与页面加载的秒数,默认 3.5 秒 | |
| target_package | Yes | 安装后需要强杀并冷启动验证的目标包名(如果是调试 LSPosed 模块,填宿主包名如 'com.example.app';如果是普通 App,填自身包名) | |
| launch_activity | No | 可选:指定启动的具体 Activity |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |