When I use Interceptor.attach, it tells me it’s undefined. If I can’t use Frida’s onLeave function and can only use hook functions, how can I write code to hook a function after a specific .so file is loaded? I’ve already tried monitoring .so loading using epbf, but it’s not ideal.

When I use Interceptor.attach, it tells me it’s undefined. If I can’t use Frida’s onLeave function and can only use hook functions, how can I write code to hook a function after a specific .so file is loaded? I’ve already tried monitoring .so loading using epbf, but it’s not ideal.