Frida Docs Unified
    Preparing search index...
    interface VM {
        getEnv(): any;
        perform(fn: () => void): void;
        tryGetEnv(): any;
    }
    Index

    Methods

    • Gets a wrapper for the current thread's JNIEnv.

      Throws an exception if the current thread is not attached to the VM.

      Returns any

    • Ensures that the current thread is attached to the VM and calls fn. (This isn't necessary in callbacks from Java.)

      Parameters

      • fn: () => void

        Function to run while attached to the VM.

      Returns void

    • Tries to get a wrapper for the current thread's JNIEnv.

      Returns null if the current thread is not attached to the VM.

      Returns any