2

I'm using Termux(root) on LineageOS 16 (Android 9) with radare2 (v3.6.0 linux-arm32). When i attach to a process with 'r2 -d pid' the app freezes properly but doesn't continue with 'dc'. I'm not sure in which condition the debugger is exactly but when i try to step in code (F7/F8 in visual) some errors are flickering (SIGILL somewhat..). The Zygote instance (we are connected to) seems to be corrupted by r2.

On IDA you attach the remote debugger (android_server) to the pid and you'll land somewhere in the code, can set breakpoints, continue execution and so on. I'm trying to achieve the same with r2.

How is it meant to be done to debug Android native code with radare2 at runtime (dynamic analysis)?

| improve this question | | | | |
0

Have you tried to start a gdbserver on your android device and to attach to it in r2 ?

It worked for me.

https://radare.gitbooks.io/radare2book/content/debugger/remote_gdb.html

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.