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
1 answer

How does cycript / substrate work to hook into a process?

I am currently doing some research on techniques about hooking mobile applications and came across some frameworks like Xposed (Android), Frida (Android and iOS) and Cycript (iOS). The documentation about Xposed and Frida is fairly good explaining…
1
vote
1 answer

Undeclared Identifier 'MSHookIvar'

After importing substrate.h, i went on using MSHookIvar in a function from a hooked class. Btw, I am trying to compile from Cygwin. I am unable to compile with the following errors: Tweak.xm:20:16: error: use of undeclared identifier 'MSHookIvar' …
junyi00
  • 792
  • 3
  • 8
  • 28
1
vote
0 answers

mitigating ssl bypassing on iOS

I am trying to mitigate ssl bypassing on a jailbroken iOS. I am unable to find any good work around as mobile substrate and SSL kill switch are able to bypass SSL. I have tried two things: SSL Pinning Detect jailbreak and stop the application Both…
Mohsin Khan
  • 249
  • 2
  • 9
1
vote
0 answers

"unable to find utility g++" while trying to compile a MobileSubstrate tweak with Theos (OSX)

OSX Yosemite 10.10.2 I recently installed Theos following this guide, got no problems. However when I try to compile a simple MS tweak, I get this error in Terminal.app: MBP:noeditnc ned$ cd /Users/ned/noeditnc MBP:noeditnc ned$ make Making all for…
adam
  • 11
  • 4
1
vote
1 answer

How to use the AVAudioPlayer header?

I want to play a sound file with the AVAudioPlayer but my tweak send me in safe mode. Here is my code: #import #import %hook SpringBoard -…
Ziph0n
  • 197
  • 1
  • 1
  • 7
1
vote
2 answers

UIWindow keyWindow changed notification

I'm creating a jailbreak tweak that adds a view to the UIWindow of whatever the current keyWindow is. The problem is that whenever the keyWindow changes the view gets removed. I'm using this %hook SBApplication -(void)willActivate { UIWindow…
Mistah_Sheep
  • 785
  • 6
  • 25
1
vote
1 answer

Subclass Objective-C class without linking with the superclass?

I'm writing a SIMBL plugin for Spotlight, and I'm trying to create a subclass of an internal Spotlight type. While I can get headers directly from the executable using class-dump, I don't have a static library to link against, so compiling a…
1
vote
1 answer

Hooking mute switch (Jailbroken)

I want to override the mute switch to create a new action whenever the switch is switched. So what is the method that is fired when the switch is changed? Thanks
1
vote
0 answers

iOS: How to hook into MPMoviePlayerController?

Okay so i am wanting to create a tweak that hooks into the MPMovieController.h file and changes the scaling button to another button. So firstly i checked i can hook into that class just for testing reason, so i hooked into the play function to see…
Tom
  • 640
  • 1
  • 7
  • 25
1
vote
1 answer

Selecting individual processes using top on jailbroken iphone 5

So I need to print out an individual iphone app's memory usage for a soak test. It would help greatly if there was a stored log monitoring usage against time (ran periodically within the automated test). To do this I've jailbroken the iPhone and…
1
vote
0 answers

How to make Cydia Tweak for GPS location updates

I want to make a Cydia Tweak that could get device location updates. I tried CLLocationManager but it does nothing. Although I have loaded my Tweak in SpringBoard. I m using Xcode 5 with iOS 7. Thanks in advance.
Ahad Khan
  • 411
  • 2
  • 18
1
vote
1 answer

How to change "Call Waiting" programmatically in iOS (jailbreak device)?

I wan't to turn on/off the call waiting feature of iPhone (that can be found at Settings > Phone > Call Waiting) programmatically. What I have figured out is that the phone settings calls -setCallWaitingEnabled:specifier: method from…
user3519705
  • 105
  • 9
1
vote
1 answer

How to hook a private framework

I am trying to make an jailbreak tweak that requires hooking into some private frameworks such as SpringBoardUI.framework. How would I do so? I've already tried adding 'TweakName' PRIVATEFRAMEWORKS = SpringBoardUI in the makefile with no luck.
1
vote
1 answer

Does Hopper Deassembler decombile Mobile Substrate .Dylib files?

Does Hopper Deassembler open Mobile Substrate .dylib files to read tweaks's code or not ?
1
vote
2 answers

unable to find SBLockScreenNotificationScrollView.h file in Springboard API

I'm working on an cydia substrate tweak and I have this line of code: double threshold = [SBLockScreenNotificationScrollView scrollThresholdForPasscodeScroll]; When I try to compile I'm getting these errors and warnings for the line. I've imported…
Connor Pearson
  • 63,902
  • 28
  • 145
  • 142