如何在应用程序启动时在 mac 应用程序中加载注入库?
我有一个动态库,我打算在正在运行的应用程序中注入新推出的应用程序。
我可以借助以 root 用户权限运行的进程将其注入正在运行的应用程序中。
现在我正在尝试在应用程序启动后立即加载该库。我知道一个这样的库能够做到这一点,称为应用程序增强器。我正在寻找类似的行为。
有谁知道如何实现这一点?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请查看 SIMBL 代理代码。它将观察者添加到应用程序启动通知中,然后注入。您可以遵循相同的方法。
Look at SIMBL agent code. It adds a observer to application launch notification and then injects. You can follow the same approach.