Questions tagged [cydia-substrate]

Cydia Substrate is a framework that allows third party developers to provide run-time patches to system functions on mobile devices.

Cydia Substrate (formerly Mobile Substrate) is a framework developed by SaurikIT, LLC that allows third party developers to provide run-time patches to system functions on mobile devices. ON iOS devices, it also allows third party developers to hook non-system functions, e.g., objective C or swift methods, and replace them with alternative logic. It may be used in conjunction with frameworks like Theos (on iOS devices) for easier syntax, compiling, packaging and distribution.

Cydia Substrate is currently supported on jailbroken iOS and rooted Android devices.

Read more:

120 questions
1
vote
0 answers

What to do for sendEvent method of UIApplication is duplicated in iOS7?

I hook sendEvent method of UIApplication to get events in iOS 6, but it crashed in iOS 7. I've tried handleKeyUIEvent, handleEvent, _handleHIDEvent, only handleKeyUIEvent can get the key events, the others get nothing but don't crash like sendEvent.…
Suge
  • 2,808
  • 3
  • 48
  • 79
1
vote
2 answers

Should I have to restart the device not only respring to install a tweak for backboardd?

I make a tweak that works in backboardd, if I just respring after install it, it doesn't work, I have to restart the my iPhone entirely. Are there any other better ways need not restarting device?
Suge
  • 2,808
  • 3
  • 48
  • 79
1
vote
1 answer

Why does my Tweak Not work Correctly?

I am making my First MobileSubstrate Tweak For the iPhone Running IOS 7. I am using this tutorial. This tutorial explains the basics of Hooking and providers a git hub example of his source code. To test the code he wrote worked and to get my…
Tom
  • 640
  • 1
  • 7
  • 25
1
vote
0 answers

Theos - MobileSubstrate: if/else using default values

I'm writing a tweak to edit the statusbar clock strings. I'm struggling to find a way to call the native settings if the tweak is 'disabled'. I thought that calling %orig would work. But it only works after a respring, I want to avoid a respring if…
lkemitchll
  • 2,751
  • 2
  • 15
  • 16
1
vote
1 answer

Find out active application or if on Springboard

How do you find out what current active application you are in or if you are in the springboard's homepages?
twodayslate
  • 2,803
  • 3
  • 27
  • 43
1
vote
1 answer

Detection of function hooking in iOS

So far as I know, in iOS there are three techniques of function hooking: preload library using DYLD_INSERT_LIBRARIES imported symbol table redirection using fishhook patch the functions when they are already loaded - i.e. already in memory using…
Krypton
  • 3,337
  • 5
  • 32
  • 52
1
vote
1 answer

iOS (jailbroken) Displaying application via SBAppContextHostManager

Basically, I'm trying to display an application using the private API SBAppContextHostManager of SpringBoard. So far, I have this code: SBAppContextHostManager *app = [[objc_getClass("SBAppContextHostManager") alloc] init]; [app…
Matt Clarke
  • 93
  • 1
  • 10
1
vote
1 answer

Change Settings/Preference Programmatically of iPhone Messages App

I want to change iPhone's Messages notification preference, programmatically in a jailbreak app. Any private API can be used and the app is not for the AppStore, so kindly don't say that "app will not be approved by Apple". How can I turn off the…
1
vote
1 answer

How to Display an image through a NSBundle

I am trying to display a image when my method is activated. I have all the code down and I dont get any errors but the image just wont show. Here is my Tweak.xm file. #import #import #import…
1
vote
1 answer

What do I have to import or install to use mshook function in my project?

I have downloaded a .mm file from the internet. It includes a MSHookFunction call. When I compile the project it says: use of undeclared identifier MSHookFunction
zzzzz
  • 1,209
  • 2
  • 18
  • 45
1
vote
0 answers

MobileSubstrate: How to make an object globally accessible

I'm currently working on a MobileSubstrate extension using substrate.h and I need an object to be accessible from every bundle. As far as I know (and I tried), if I just put a static variable inside the code this would only make the object…
1
vote
1 answer

.dylib mobile substrate tweaks not working

I was learning about making mobile substrate tweak when i came across a tutorial with a source codes in it. To further understand it, i decided to test it out The codes: %hook SBApplicationIcon -(void)launch { NSString *appName = [self…
junyi00
  • 792
  • 3
  • 8
  • 28
1
vote
1 answer

Compiler errors with dumped headers when creating a Cydia Tweak with Theos

I'm trying to write a tweak for an app on the iPhone. I have a good background in objective C and iPhone dev, but I've never done any Cydia jailbreak tweaks, save for a few tutorials on tweaks using rpetrich's dumped headers. I'm looking to use…
1
vote
2 answers

Hook up protocols in iPhone

I want to Hook delegate(protocol) method in iOS, who can tell me how to do it? such as hook method applicationDidFinishLaunching: I do it like this, but it is not work... extern IMP original_UIApplication_applicationDidFinishLaunching; extern void…
ataraxia
  • 23
  • 3
0
votes
3 answers

How to create a basic MobileSubstrate tweak

I would like to know how to make a basic "Hello, World!" MobileSubstrate tweak.