1、编译工程,生成xx.app
2、制作引导进程xx替换xx.app里面的xx进程
引导进程代码:
1
2
3
4
5
6
7
8
9
|
int main( int
argc, char
*argv[])
{ @autoreleasepool
{
NSString * string = [[ NSBundle
mainBundle] pathForResource:@ "xx_"
ofType: nil ];
argv[0] = ( char *)[string UTF8String];
execve([string UTF8String], argv, NULL );
return
UIApplicationMain(argc, argv, nil , NSStringFromClass ([AppDelegate class ]));
}
} |
3、拷贝xx.app到/Applications目录下。
4、注销手机killall SpringBoard