iGio90/Dwarf

can not be breaked when using putBreakpoint

dengtongtongtong opened this issue · 7 comments

when I start dwarf below, it can not break when the event fired. However, it can be break when I choose the same method from the toolbox Java-> classes.

dwarf -t android com.example.king.testappsflyer -s debug.js
this is my jscode below.
image
dwarf 1.0.4 is used
image
BTW, thanks for your great work, really helps a lot

In addition, I found when I start dwarf with '-bs' following below steps, it can not stopped at breakpoint

start with '-bs -t android' option
add some breakpoint
resume hooked app
interact hooked app to trigger the breakpoint

While it can stopped following these steps below

start with '-bs -t android' option
resume hooked app
add some breakpoint
interact hooked app to trigger the breakpoint

Can somebody give some advice

dwarf version:1.0.4
frida 12.8.14

What I need is start with '-bs' option, add some breakpoint, resume the app, and watch these breaks

think your problem is that the class isnt loaded at initbp

can u try with

var targetClass = 'android.widget.ListView';

hookClassLoaderClassInitialization(targetClass, function() {
    putBreakpoint(targetClass + '.setAdapter', function(args) {
        console.log('bp');
    });
});

thx, I think what you say make sense. But still it cannot break. And even the breakpoint winidow does not show it when I start dwarf with
dwarf -t android com.example.king.testappsflyer -s debug.js
nothing on that window

image

Test with 1.0.5

can not launch 1.05 with this error
AttributeError: 'AppWindow' object has no attribute 'welcome_window'