🤖 Agent · Android 实现
agent/src/android/ 下每个 .ts 文件实现一组在 Android 目标进程内运行的逻辑,通过 rpc.exports 暴露给 Python 侧。所有 Java 交互经 lib/libjava.ts 的 wrapJavaPerform Promise 化包装。
🗺️ 实现结构
📂 文件清单
主模块
| 文档 | 源码 | 主要 RPC |
|---|---|---|
| clipboard | android/clipboard.ts | androidClipboardMonitor |
| filesystem | android/filesystem.ts | androidFile* |
| general | android/general.ts | androidDeoptimize / androidShellExec |
| heap | android/heap.ts | androidHeap* |
| hooking | android/hooking.ts | androidHooking* |
| intent | android/intent.ts | androidIntent* |
| keystore | android/keystore.ts | androidKeystore* |
| monitor | android/monitor.ts | androidMonitor* |
| pinning | android/pinning.ts | androidSslPinningDisable |
| proxy | android/proxy.ts | androidProxySet |
| root | android/root.ts | androidRootDetection* |
| shell | android/shell.ts | androidShellExec |
| userinterface | android/userinterface.ts | androidUi* |
lib 工具模块
| 文档 | 源码 | 作用 |
|---|---|---|
| lib/intent-utils | android/lib/intentUtils.ts | Intent 分析 |
| lib/interfaces | android/lib/interfaces.ts | TypeScript 接口定义 |
| lib/libjava | android/lib/libjava.ts | Java 桥兼容层 |
| lib/types | android/lib/types.ts | Java 类别名 |
