【问题】
Incompatible debugging server:
address size is 4 bytes, expected 4
【解决】
你的android_server 是32位的
而你启动的 ida 是64位的
换成32位的ida 就OK
=====================================
【问题】
adb shell ls /data/data/ 命令权限被拒绝
opendir failed, Permission denied
【解决】
adb不是最高权限启动的
先adb kill-server,然后 adb start-server
或者执行 adb root , adb remount
再测试,问题解决
=====================================
【问题】
The connection has been gracefully closed by peer.
Check that IDA is the only debugger for the target.
【解决】
除了IDA 还开启了其他的调试工具或开发工具比如 Android Studio 或 Eclipse,关闭其他即可。
=====================================
【问题】
adb shell am start -D -n (包名)/ (包名+类名)
......
adb forward tcp:17178 jdwp:16406
jdb -connect :port=17178,hostname=localhost
当使用 jdb 调试时出现以下错误:
……
致命错误:
无法附加到目标 VM。
【解决】
有可能是因为 apk 忘记了修改 里的 manifest -> application ->> android:debuggable="true" 导致的。
=====================================
【问题】
IDA 调试so 时遇到了
got SIGCHLD signal (Child status has changed) ( 11, tid 3756)
等消息提示
【解决】
直接 pass to apptication... 就可以了 = =
=====================================
Warning
---------------------------
Timed out while waiting for a JWDP reply
---------------------------
OK
---------------------------
---------------------------
Warning
---------------------------
The debugger could not attach to the selected process.
This can perhaps indicate the process was just terminated, or that you don't have the necessary privileges.
---------------------------
OK
---------------------------
出现这种提示,说明你导入的Dex文件可能太大了,IDA解析不过来,用BackSmali把Dex导出,把无关的代码删除,再用 smali 重新打包成小的Dex文件,再进行调试就可以了
也有可能 是接线出现了问题,手机拔了重插。
=====================================
The function has undefined instruction/data at the specified address.
Your request has been put in the autoanalysis queue.
创建函数失败,用选择代码的方法,再按P,具体参看下面地址
/archive/?
=====================================
【问题】
The debugger could not attach to the selected process.
This can perhaps indicate the process was just terminated, or that you don't have the necessary privileges.
【解决】
1.不要用模拟器,用真机
2.换系统 = 1
3.换手机
待追加……