Pregunta

I have a dynamic library, I intent to inject in running application & newly launched applications.

I can inject it in running applications with the help of a process running with root user permissions.

Now I am trying that library should get loaded as soon as application is launched. I know one such library capable of doing this called, application enhancer. I am looking for similar behavior.

Does anyone has an Idea how can this be achieved?

¿Fue útil?

Solución

Look at SIMBL agent code. It adds a observer to application launch notification and then injects. You can follow the same approach.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top