Personal Original, reprint please indicate source:Cnblogs.com/jailbreaker
Tweat can be understood as the "plug-in" program, you can do some hooks, iOS patching features, here we use the Iosopendev provided by the Logos Tweak template development.
This blog we hook is springboard, abbreviated to SB, it is the desktop manager in iOS, before the post after installing Deb, I said restart the device, actually refers to restart SB, header file:https://github.com/ Thomasfinch/ios-7-springboard-headers/blob/master/springboard-class.h
Once created, you can see a. xm file, here is where we need to heap the code, and. MM will automatically generate content based on. XM, no need to enter it manually
See, the. xm file suggests that we need to link libsubstrate.dylib, and look at a lot of the statements beginning with the%. % is an indicator in Legos, which is explained later in the post.
Empty the contents of the. xm file First, then ibsubstrate.dylib the link, and also link the uikit (Need a hint box to display information):
There is a method in the header file:
-(void) applicationdidfinishlaunching: (ID) application
Look at the method name and determine the method that is executed after SB is loaded, and modify the. xm file.
Look at the. mm file, which is automatically generated based on the. XM content:
Finally build into Deb, upload source space or dpkg installation, the previous posts are detailed, no longer repeat. After restarting SB, you will see:
[iOS Jailbreak development VII] using IOSOPENDEV to develop springboard tweat