啓動ida失敗
提示:
Incompatible debugging server:
address size is 4 bytes, expected 4
原因:
你的android_server 是32位的,而你啓動的 ida 是64位的
解決方法:
換成32位的ida 就OK
IDA連接android_server 選中進程點ok之後 連接不上報錯
提示:
The debugger could not attach to the selected process.
This can perhaps indicate the process was just terminated, or that you dot’t have the necessary privileges.
原因:
Android5.0之後默認啓用了 SELinux/SEAndroid
解決方法:
setenforce 0
或者
echo 0 > /sys/fs/selinux/enforce
啓動過一次android_server之後,再次啓動報錯
提示:
IDA Android 32-bit remote debug server(ST) v1.22. Hex-Rays © 2004-2017
bind: Address already in use
原因:
該端口進程還沒殺死,不能重複起來
解決方法:
- adb shell
- ps |grep android_server(查看進程)
- kill -9 xxxx(殺死這個進程,xxxx需要自己看進程號對應如kill -9 9971)
- 重新啓動
選擇apk進程確定後報錯
提示:
原因:
APK進程運行64位程序卻用的32位IDA
解決方法:
統一用32位或者64位