开发者

how to load injection lib in mac applications at application start?

开发者 https://www.devze.com 2023-04-09 00:39 出处:网络
I have a dynamic library, I intent to inject in running application & newly launched applications.

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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号