-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to debug android so with r2 #217
Comments
sorry, my englist is poor. I mean how to debug android so with r2 like ida pro. R2 can't debug the android so in the real android phone? |
I dont know how ida does that, but r2 can debug android shared libraries (if this is what u mean by so). In the same way that gdb do. Just attach to the process and put breakpoints or whatever. You can also use r2frida for that purpose
… On 20 Aug 2019, at 09:49, allen2015555 ***@***.***> wrote:
What android type you do have? Is this a Cylon? Or a Terminator? We don't support Replicants yet. And Data plugin was removed because nobody was willing to maintain it.
sorry, my englist is poor. I mean how to debug android so with r2 like ida pro. R2 can't debug the android so in the real android phone?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I will move the issue to r2book, ok? |
Thank you! I hope find the the tutorial for debug android shared library in r2book. |
Thandks for your reply. I will try it. |
With radare2 you can set breakpoint on compiled part of binaries such as arm and in .dex files. In pratice I personally just use radare2 for the binary because it is more convenient to debug the smali with real files disassembled than dex binaries. Apk has the particularity to be full repackaged. So I find it better like that. I have a command to debug remotely an apk from a virtual machine with radare2 on the binary. I will find it and post it here when I will have found it. |
The first part is to attach the pid from the android VM with:
where 18190 is the pid of the process. |
just r2 -d 18190 |
Note for my future self: reference the r2frida book when ready for consumption |
Yes but after you will need to select what you debug like dex file or .so. |
I imagine something like:
|
cc @apkunpacker |
@trufae if you want I can show my commands to @apkunpacker ? |
Sharing is caring :) |
No description provided.
The text was updated successfully, but these errors were encountered: