frida / frida-python

Frida Python bindings
Other
781 stars 146 forks source link

How to get error messages "specified argument types do not match", etc. ? #167

Open 4val0v opened 4 years ago

4val0v commented 4 years ago

If I run the script like this:

 frida -U --no-pause -f ru.tempapp -l test.js

I can see the errors:

Spawned `ru.tempapp`. Resuming main thread!                        
[Android Emulator::ru.tempapp]-> Error: a(): specified argument types do not match any of:
        .overload('java.lang.String', 'kotlin.jvm.functions.Function0')
    at pe (frida/node_modules/frida-java-bridge/lib/class-factory.js:549)
    at frida/node_modules/frida-java-bridge/lib/class-factory.js:878
    at /temp.js:6
    at frida/node_modules/frida-java-bridge/lib/vm.js:11
    at frida/node_modules/frida-java-bridge/index.js:389
    at frida/node_modules/frida-java-bridge/index.js:375                                                                                                                                                                                   
    at we (frida/node_modules/frida-java-bridge/lib/class-factory.js:598)
    at frida/node_modules/frida-java-bridge/lib/class-factory.js:581
[Android Emulator::ru.tempapp]->

How can I show (logging) the same errors when I run a script from python ? I have implemented all the methods that are listed here: examples/crash_reporting.py

Triggered on_detached(), but it does not give details about the error :(

on_detached()
    reason: process-terminated
    crash: None