Frida Docs Unified
    Preparing search index...

    Type Alias RelocationPolicy

    RelocationPolicy: "checked" | "unchecked" | "forced"

    How aggressively Interceptor may rewrite the function being instrumented.

    • checked: verify that the chosen scratch register (default or user-specified) is not used in the function's early prologue, that there are no branches back into the overwritten instruction(s), and similar constraints.
    • unchecked: skip those checks.
    • forced: like unchecked, but also allow overwriting past the end of the function — for cases where you know it is safe, e.g. because of alignment padding between this function and the next.