1、监听实现 TABFileMonitor.h 搜这个去吧
2、daemon实现,bbs.iosre.com上,有教程
3、makefile 又被教育了
添加文件就这么写
export SDKVERSION=9.2
ARCHS = armv7 arm64
TARGET = iphone:latest:8.0
TOOL_NAME = voicerename
include theos/makefiles/common.mk
voicerename_FILES = main.mm TABFileMonitor.m
voicerename_FRAMEWORKS = UIKit CoreGraphics Foundation
include $(THEOS_MAKE_PATH)/tool.mk
导入的文件中,不需要imort framework了。写了就报错,阿西吧。。
4、最后获取root权限,根据xxt的来就好了在postinst中写。
去他大爷的fauxsu啊
chown root:wheel /usr/bin/voicerename
chown root:wheel /Library/LaunchDaemons/com.nicolos.voicerename.plist
chmod 644 /Library/LaunchDaemons/com.nicolos.voicerename.plist
exit 0