frida/frida-core ? reverse-engineered prompt

Reverse engineered prompt

Build me the core of a Frida style instrumentation library that can be linked into other projects.

I want it to let a user load their own JavaScript into another process, talk back and forth with that script, unload it cleanly later, and also list things like installed apps, running processes, and connected devices. It should be set up as a shared library with the right glue for the different platforms, and keep the code organized so the core logic is separate from the OS specific bits.

Please make it buildable from the repo as a normal native project, and include the basic tests and tooling needed to verify the main pieces work. If anything depends on current platform details or external docs, look them up online as needed.