Search in sources :

Example 1 with Smali

use of jadx.gui.device.debugger.smali.Smali in project jadx by skylot.

the class DebugController method openMainActivityTab.

private void openMainActivityTab(JClass mainActivity) {
    String fullID = DbgUtils.getRawFullName(mainActivity) + "." + ONCREATE_SIGNATURE;
    Smali smali = DbgUtils.getSmali(mainActivity.getCls().getClassNode());
    int pos = smali.getMethodDefPos(fullID);
    int finalPos = Math.max(1, pos);
    debuggerPanel.scrollToSmaliLine(mainActivity, finalPos, true);
}
Also used : Smali(jadx.gui.device.debugger.smali.Smali) RuntimeBreakpoint(jadx.gui.device.debugger.SmaliDebugger.RuntimeBreakpoint) FileBreakpoint(jadx.gui.device.debugger.BreakpointManager.FileBreakpoint)

Aggregations

FileBreakpoint (jadx.gui.device.debugger.BreakpointManager.FileBreakpoint)1 RuntimeBreakpoint (jadx.gui.device.debugger.SmaliDebugger.RuntimeBreakpoint)1 Smali (jadx.gui.device.debugger.smali.Smali)1