您的位置:首页 > 其它

使用ida6.6调试so总结

2015-08-11 00:00 239 查看
host:本地电脑 target:模拟器 or 手机真机

1、host从ida目录中拷贝android_server到target目录中,然后启动android_server

$ ./android_server

2、host中接口转发

$ adb forward tcp:23946 tcp:23946

3、host中以debug方式启动app

$ adb shell am start -D -n com.example.linkshell/com.letv.Porxy.MainActivity

4、host中ida选择调试进程,设置断点,然后继续运行

5、host中运行app

$  jdb -connect com.sun.jdi.SocketAttach:hostname=127.0.0.1 ,port=8899


调试期间结束进程

$ adb shell ps | grep com.myapp | awk '{print $2}' | xargs adb shell kill


常用断点:

1、system.loadlibrary对应native层libdvm.so->dvmLoadNativeCode
2、JNILOAD中注册JNI函数Libdvm.so->jniRegisterNativeMethods
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: