frida-server 没运行
❌
frida-ps -U列不出设备进程。
症状
bash
frida-ps -U
# 报错: unable to connect to remote frida-server
# 或: no device排查
1. 设备连上了吗
bash
adb devices
# 应显示设备 serial, 且是 device 状态(不是 unauthorized)2. frida-server 推到设备了吗
bash
adb shell "ls -l /data/local/tmp/frida-server"
# 不存在则推送(注意架构 arm64/x86)
adb push frida-server-17.x-android-arm64 /data/local/tmp/frida-server
adb shell "chmod +x /data/local/tmp/frida-server"架构要匹配
frida-server 的架构(arm64/arm/x86)必须与设备 CPU 一致。adb shell getprop ro.product.cpu.abi 看设备架构。
3. 启动 frida-server(需 root)
bash
adb shell "su -c '/data/local/tmp/frida-server &'"4. 版本匹配
frida(本机)与 frida-server(设备)大版本必须一致。详见 frida 版本不匹配。
| frida | 安卓 |
|---|---|
| 17 | 16 |
| 16.5.2 | 14 |
| 15.2.2 | 12 |
5. 端口被占用/检测
默认 27042。若被占用或 App 检测,改非标准端口:
bash
adb shell "su -c '/data/local/tmp/frida-server -l 0.0.0.0:8888 &'"
# 本机用 -H 连
python3 r0capture.py -H 127.0.0.1:8888 ...