摘要: SMJobBless是苹果官方提供的用于“MacOS app获取root权限”的demo。 具体思路 使用Security.framework和ServiceManagement.framework两个库,把需要root权限的操作封装成一个进程,作为项目的子Target,把该子进程注册Launchd 阅读全文
posted @ 2018-03-05 23:36 Jacob Pan 阅读(1026) 评论(0) 推荐(0) 编辑