Android debugger ptrace 的处理
2021-08-13 本文已影响0人
Hemsl
代码位置:
system/core/debuggerd/debuggerd
gdb调试:
# server
gdbserver64 --attach 0.0.0.0:9999 pid
# client
cd Android\Sdk\ndk-bundle\prebuilt\windows-x86_64\bin
.\gdb.exe
target remote 18.163.215.190:9999
strace查看系统调用:
strace -T -tt -e trace=all -p pid
strace -o output.txt -T -tt -e trace=all -p pid