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

How to hook C/C++ methods in Android using Cydia Substrate

I checked the home of Cydia Substrate, the Android Jni Hook example provided by the author is actually hooking a Java method with C code. But what I want is to hook a C/C++ method, i.e a method in a libXXX.so in Android. Like the fork() method in…
Misty Zhu
  • 83
  • 2
  • 7
0
votes
1 answer

Disable TouchID on a jailbroken iOS device

I'm trying to temporarily disable TouchID authentication so the phone won't unblock even if the finger matches. How can I do that? Is there a way to update the switch in Settings programatically, like I do with vibration, through…
Douglas Soares
  • 71
  • 1
  • 1
  • 8
0
votes
0 answers

Incorrect symbol resolution when compiling inline assembly on arm

Part of the source code is id (*old_objc_msgSend)(id, SEL, ...); __attribute__((naked)) id new_objc_msgSend(id self, SEL op, ...) { __asm__ __volatile__ ( ".thumb\n" "ldmia.w sp, {r2, r3}\n" …
c c
  • 241
  • 2
  • 6
0
votes
1 answer

Class hooking - Mobile Substrate returning values

I'm currently learning how to hook with Mobile Substrate (runtime or whatever) and I'm a little confused. I'm trying to make a funny tweak that changes my Natwest balance to a string. I'm using something called "theos". This is the code I have so…
Declan Land
  • 639
  • 2
  • 11
  • 27
0
votes
1 answer

How to %hook to add UIButton to YouTube from App Store

I am using theos and I am able to %hook to functions throughout the YouTube but I am unable to figure out how to add a UIButton to the view of the YTMainVideoPlayerOverlayView class This is the class I am hooking on…
Omar
  • 492
  • 4
  • 10
0
votes
1 answer

NSMutableDictionary setValue:forKey failing sometimes

I am using a NSMutableDictionary to hold 3 key/value pairs. The value is bool in a form of NSNumber. Then I have a table view that loads the data, if the cell is pressed, the value is changed from YES to NO or vice versa. It seems that the value is…
junyi00
  • 792
  • 3
  • 8
  • 28
0
votes
1 answer

NSMutableDictionary not reading anything from plist

I have a plist file at: /var/mobile But it seems that my mobilesubtrate tweak does not read anything from the plist file. This is my code: NSString *path = @"/var/mobile/test.plist"; self.mods = [NSMutableDictionary…
junyi00
  • 792
  • 3
  • 8
  • 28
0
votes
1 answer

iOS tweak doesn't load

I'm developing a small tweak that changes some files in /var/preferences. Here is my constructor: %ctor { NSLog(@"\n\n\n Tweak Loading... \n\n\n "); NSError *error = [[NSError alloc] init]; BOOL success = [[NSFileManager defaultManager]…
Hamed
  • 297
  • 3
  • 21
0
votes
1 answer

Giving pre access of Microphone to CydiaTweak without showing dialog box

I am writing to do recording in background. I have an API that is working fine. Now I want to make tweak using that API but the only problem giving access of microphone. As for UI apps dialog appears "TestApp" would like to Access the Microphone. I…
Ahad Khan
  • 411
  • 2
  • 18
0
votes
1 answer

SMS Interception in Jailbreak iOS 7

I have followed this answer Blocking incomming sms in ios 7. The problem is it blocks every message and its notification. Secondly it continuously call _processReceivedMessage_hooked method when I send message other then this number +923139303006.…
Ahad Khan
  • 411
  • 2
  • 18
0
votes
1 answer

Index SBSearchViewController - UITableViewDataSource not indexing

SBSearchViewController's UITableView's delegate and dataSource is the SBSearchViewController @interface SBSearchViewController : UIViewController I've…
twodayslate
  • 2,803
  • 3
  • 27
  • 43
0
votes
1 answer

how to disable hooks in a mobile substrate tweak

Using logos, I can initiate a group of hooks using %init(groupName) I was wondering if there is a way to disable the group of hooks as well. I need my tweak to be disabled while the phone is locked. Currently, I'm calling init in my tweak whenever…
Connor Pearson
  • 63,902
  • 28
  • 145
  • 142
0
votes
1 answer

ios hook into incoming phone ring

I'm working on a mobile substrate tweak and trying to find out how to hook into the phone ringing method. I've been looking through this framework, but haven't found anything promising yet. Am I looking in the right place?
Connor Pearson
  • 63,902
  • 28
  • 145
  • 142
0
votes
0 answers

A way to chart CPU Usage by application using top -u

I am trying to really diagnose an awful battery consumption issue with my jailbroken iOS device and I believe a random spike in CPUis causing this. Is there a way to chart/graph out the output from top -u in MobileTerminal so I can analyze to see…
0
votes
1 answer

Theos preference-bundle

I'm an amateur dev with some basic skills in objective C. I made some small substrate tweaks -- the last tweak I made is fullscreen for Facebook. Now, I want to make a preference bundle for my tweak. I read tons of guides online but none of them…