-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
add a smali debugger #1137
add a smali debugger #1137
Conversation
This pull request introduces 4 alerts and fixes 1 when merging 0ec0c1d into 52412df - view on LGTM.com new alerts:
fixed alerts:
|
Great work @lbj-the-goat. My observations:
|
Thank you for testing for me, that's so great!
Okay, I will fix it
Haha, I grabbed them online randomly. |
@lbj-the-goat thanks! Also can you provide description how to regenerate JDWP class, link to
@Surendrajat many icons I take from Eclipse JDT UI project (git mirror). Maybe these will fit better. |
@skylot Relax, I wrote all the code myself including the And as for the icons I believe they don't need any primits and attributings, some of them are laying on my driver for a long time. But I think your suggestion
is better. |
I had thinked of it, but don't know how to do it? Can you help me? |
I mean maybe someone already created java library for this jdwp stuff :) |
I found a tutorial, I'll try to make it a library when this PR is ready to merge. :) |
@lbj-the-goat I have few suggestions(possible improvements):
|
@Surendrajat Good ideas, Let machine does its jobs is the right thing to do. :D |
@lbj-the-goat cool. In that case, current (manual process selection) view can be shown if it fails to start activity or find the process. |
…ailable, add rerun.
This pull request introduces 4 alerts and fixes 1 when merging 4890826 into 19572a6 - view on LGTM.com new alerts:
fixed alerts:
|
@lbj-the-goat tried the above commit(yeah, I was waiting for it :D) and here are my observations:
Overall, I love this feature and I really like how it's coming together. Thanks a lot! |
@Surendrajat Hi, glad to know you were expecting this commit 😀
The
It takes debug_info to access and modify registers, so there's nothing I can do...
May be a message box warning is better, sometimes people could pick the wrong app to debug, leave it clickable so we can restart again right away.👍
I was going to make it select package automatically, But some apps have quite large
Yeah, that's because I'll try to improve this problems anyway, Thanks again for your advices! 👍👍 Have a good day. |
@skylot I've changed the icons to famfamfam's and made jdwp.java a library, Do you think it's ready to be merged? |
This pull request introduces 4 alerts and fixes 1 when merging df360b8 into 19572a6 - view on LGTM.com new alerts:
fixed alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried a bit and everything looks good now. Nice work!
@lbj-the-goat code look good, thanks. |
@skylot Not sure if it's something Linux specific because I am also using Linux(Ubuntu 18.04) and it works. |
@skylot Sorry, I don't have a Linux machine. Anyway if it stuck, kill the remote app can end the waiting. May be we should use a thread to do the handshake job, so the ui doesn't freeze for this kind of problems. |
@lbj-the-goat thanks! It works now. Just running Android Studio in background breaks debug in jadx 😞 |
This pull request introduces 4 alerts and fixes 1 when merging 253a4fe into 19572a6 - view on LGTM.com new alerts:
fixed alerts:
|
@skylot @lbj-the-goat |
#1136
Hi guys, this debugger works on android 7 , 8(thanks to @Surendrajat for testing), and 11,
but it can't get registers on 9 and 10 without debug info in the app.
And for Android 11, when a register is "zero value", ART won't change such register's value, so we can't set value to it.
Now it supports to modify fields of this object, surprise~
For debugging, you must have
ps: this debugger will search ANDROID_HOME and PATH to look for adb.
Features:
Short cuts:
f2
set/remove breakpointf7
step intof8
step overshift + f8
step outf9
runDemo
setting up an app to debug
adb usage
debugging