Microsoft Word - iOSAppReverseEngineering.docx

(Romina) #1
iOSREGreetings_FILES = Tweak.xm
iOSREGreetings_FRAMEWORKS = UIKit

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
install.exec "killall - 9 SpringBoard"

The edited control looks like this:


Package: com.iosre.iosregreetings
Name: iOSREGreetings
Depends: mobilesubstrate, firmware (>= 8.0)
Version: 1.0
Architecture: iphoneos-arm
Description: Greetings from iOSRE!
Maintainer: snakeninny
Author: snakeninny
Section: Tweaks
Homepage: http://bbs.iosre.com

This tweak is rather simple. When [SpringBoard applicationDidFinishLaunching:] is called,


SpringBoard finishes launching. We hook this method, carry out the original implementation


via %orig, then display a custom UIAlertView. With this tweak, every time we relaunch


SpringBoard, a UIAlertView pops up. Can you get it?


If you’re OK with this section so far, please enter “make package install” in Terminal. When


the lock screen shows, you will see the magic as shown in figure 3-14:


Figure 3- 14 Our first tweak


Yes, with just some tiny modifications, the behaviors of Apps are changed. Now, iOS is

Free download pdf