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 emulated function and enhance sdbg output #144
Conversation
This will emit the breakpoint that has been hit, after the user chooses to continue from the debugged state. Added this as it "feels" right since gdb did this. Also prevented me from staring at the terminal waiting for it...
This was being used by jiagu360 prior to xor'ing the charsequence object. As it is not known to smalivm, both simplify and sdbg would mark the return as *unknown* and treat the simple xor as an unknown as well. This fixes that now.
Apparently I have merge power on this repo -- though I'd prefer you reviewing and merging these yourself so ensure I didn't do something stupid... |
For what it's worth, I did skim the |
This can occur when the `ConstantPropagationStrategy` would attempt to use `canConstantizeAddress` on static objects which have not yet been initialized.
Added a third small fix, which will prevent a heap object which is
|
Fwiw, after applying these patches you can simplify the "stub" application injected by jiagu/jiagu30;
With the goodness being;
Simplified to ->
|
Thanks for the PR. Including the simplified stub at the end was a nice touch.
IIRC, I was trying to update the framework and couldn't find a bunch of classes that were in previous frameworks. I'm not sure where the classes were hiding as I checked every dex, oat, art, lib, so, etc. and resorted to digging through android source code before getting distracted and moving in to something else. I think white listing is the most correct solution, but until I can properly dump the latest framework, this is the best solution. |
Ok, that completely makes sense. I quickly looked for it in the |
@strazzere sir may you upload that simplified jiagu stub dex here |
Nope. But you can build a jar and run it on whatever target you want.
…On Wed, Jun 10, 2020, 21:00 Apkunpacker ***@***.***> wrote:
@strazzere <https://github.com/strazzere> sir may you upload that
simplified jiagu stub dex here
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#144 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEYIRUYLAP4Y57PYKII2UTRWBJE3ANCNFSM4NZCB23Q>
.
|
I tried already sir but unable to build on windows 7 due to long name issue |
Sorry, this thread isn't for support it's a pull request. This also isn't even my repo. Nor am I looking to run tools for other people. You'll need to figure out how to compile and run this yourself in some other environment, wait for a new release or pay someone to do it for you. |
While doing some reversing one of the
jiagu360
protectors, I wanted to test outsdbg
andsimplify
. One of the easiest methods was failing and it seemed simple to fix -- hopefully I did it right.Also added the breakpoint hit notification to
sdbg
so it will matchgdb
.