How to use the jnitrace.jnitrace.TraceFormatter function in jnitrace

To help you get started, we’ve selected a few jnitrace examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github chame1eon / jnitrace / jnitrace / View on Github external
    Main function to process command arguments and to inject Frida.
    jscode = resource_string("", "jnitrace.js").decode()
    jscode = jscode.replace("IS_IN_REPL = true", "IS_IN_REPL = false")

    args = _parse_args()

    b_t = False

    if args.backtrace == "accurate":
        b_t = True
    elif args.backtrace == "fuzzy":
        b_t = True

    formatter = TraceFormatter({
        "show_backtrace": b_t,
        "show_data": not args.hide_data
    }, args.output is not None)

    device = frida.get_usb_device(3)
    if args.inject_method == "spawn":
        pid = device.spawn([])
        pid = device.get_process(

    session = device.attach(pid)
    scripts = {}

    if args.prepend:
        prepend = session.create_script(, runtime="v8")
        prepend.on("message", _custom_script_on_message)


A tool for tracing use of the JNI in Android apps

Latest version published 1 year ago

Package Health Score

50 / 100
Full package analysis

Similar packages