Frida Docs Unified
    Preparing search index...
    • Runs the JavaScript function callback on the thread specified by id. Must be used with extreme caution due to the thread potentially being interrupted in non-reentrant code. For example, you could be interrupting it while it's in the middle of some delicate code, holding a specific non-recursive lock, which you then try to implicitly acquire again when you call some function.

      Type Parameters

      • T

      Parameters

      • id: number

        ID of the thread to run on.

      • callback: () => T

        Function to run.

      Returns Promise<T>

      A Promise that resolves to the value returned by callback.