control 文件
Package: com.ting.play
Name: play
Depends: mobilesubstrate
Version: 0.0.1
Architecture: iphoneos-arm
Description: An awesome MobileSubstrate tweak!
Maintainer: molin
Author: molin
Section: Tweaks
Makefile 文件
THEOS_DEVICE_IP = 192.168.1.154
export ARCHS = arm64
export TARGET = iphone:latest:8.0
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = play
play_FILES = Tweak.xm
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "killall -9 SpringBoard"
play.plist 文件
{ Filter = { Bundles = ( "com.apple.springboard" ); }; }
Tweak.xm 文件
%hook SBLockScreenDateViewController
-(void)setCustomSubtitleText:(id)arg1 withColor:(id)arg2
{
%orig(@"甘心婷留", arg2);
}
%end
%hook SpringBoard
- (void)applicationDidFinishLaunching:(id)application {
%orig;
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"逆向测试"
message:@"哈哈,把你逆了"
delegate:self
cancelButtonTitle:@"确定"
otherButtonTitles:@"取消", nil];
[alertView show];
[alertView release];
}
%end
安装之后 也重启过机子没有效果 是5C iOS8.1.3