title: Viewing decompiled code of an Android function in Frida
body: <p>I'm trying to use Frida (Android 7 device - rooted emulator) according to the JavaScript API.</p>
  
  <p>This is the current code:</p>
  
  <pre><code>Java.perform(function() {
      var x = Java.use('com.x.myCustomClass.util')
      console.log(x.functionIKnowExists) // will return function n() { [ecmascript code] }
  }
  </code></pre>
  
  <p>However, while accessing functions, I get this error:</p>
  
  <pre><code>     ____
      / _  |   Frida 12.6.12 - A world-class dynamic instrumentation toolkit
     | (_| |
      &gt; _  |   Commands:
     /_/ |_|       help      -&gt; Displays the help system
     . . . .       object?   -&gt; Display information about 'object'
     . . . .       exit/quit -&gt; Exit
     . . . .
     . . . .   More info at http://www.frida.re/docs/home/
  Attaching...
  function n() { [ecmascript code] }
  </code></pre>
  
  <p>How can I view the actual implementation (decompiled code) of  of the function <code>"functionIKnowExists()"</code> instead?</p>