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
0 answers

Trouble getting an address from _dyld_get_image_header method in iOS program

_ dyld _ get _ image _ vmaddr _ slide and _ dyld _ get _ image _ header method return nothing I am trying to call a function using dynamic library in IOS program with ill2cpp engine To do this, I need to add the address of the function from the…
qazwsx135
  • 9
  • 2
0
votes
0 answers

How can I detect which Android native function that is hooked by Cydia Substrate: MSHookFunction?

I want to detect hook behavior of MSHookFunction on Android but no idea yet. This is Cydia Substrate I use in my test app https://github.com/Breathleas/Android-Hooking-Template-Cydia-Substrate/tree/master/jni/Substrate After complete function hook.…
Ken Kem
  • 635
  • 1
  • 6
  • 13
0
votes
1 answer

How to hook into Objective-C method using Theos Tweak

I am trying to make to tweak using theos to hook into the application other than SpringBoard. I picked up DVIA application. I want to hook into the following objective-C method -(BOOL)isLoginValidated defined here. Below, I have mentioned my Tweak…
0
votes
1 answer

How can I hook a subview of a subview?

The parent class A has a subview B and that subview has another subview C, this is what i want to hide or apply code to (C) How ? B is the third subview of A and C is the second subview of B. They’re like this: |A ||B “UIView” ||B “UIView” ||B…
MarshR8
  • 11
  • 3
0
votes
2 answers

Setting frame if in landscape not functioning iOS

I am writing a tweak to change the size of the control center. I am trying to set the frame depending on the orientation. This is the code: %hook SBControlCenterContainerView -(void)layoutSubviews{ %orig; CGRect screenBounds = [[UIScreen mainScreen]…
0
votes
0 answers

Mobile Substrate Tweak Not Running & Compiling

I uploaded all of my files onto GitHub to make this easier, because I can't really tell what the problem is: https://github.com/Coler234/PasswordLogger I just setup my repo, and now I'm trying to create my first tweak. What it is supposed to do is…
Coler234
  • 67
  • 1
  • 3
  • 11
0
votes
0 answers

Detect other dylib in a deb

I made a tweak for Cydia. However, I want to make my dylib secure and can't be overwritten by "dpkg-repack". And ensure that if it got repacked by someone, it should detect it and stop the process/can't do anything. I have some knowledge about…
0
votes
0 answers

Programmatically invoke unlock device (iPhone) in jailbreak tweak?

I am designing an iOS 8.1 jailbreak tweak which gives the user an alternative unlock method when swiping left at the lock screen. Once the user is done with some tasks I would like the device to unlock itself; without requesting a passcode.…
lwm
  • 15
  • 5
0
votes
2 answers

Add path to Filza (logos)

I am trying this code on a jailbroken device (iOS 8.4), but Filza opens without navigating to the location I specified (it just shows the last location I was in): NSString *path =…
abuhun
  • 43
  • 5
0
votes
1 answer

Where do I find the "toggle CallerID" function in the iOS headers?

I'm currently developing a mobile substrate tweak for jailbroken iOS Devices but I'm stuck at finding a specific function in the iOS headers! I'm searching for the function that toggles the "send caller ID" option... Does anyone know where to find…
wholl0p
  • 3
  • 2
0
votes
2 answers

Network hook iOS Substrate Tweak

I'm new writing iOS tweak, and i want to write a tweak to intercept a request to a server from an app to change the destination server. Example: App make a request to server A -> I intercept it, and i change the server A to server B, so the request…
Alberto Segura
  • 437
  • 4
  • 9
0
votes
1 answer

Jailbreak Tweak Learning - UIViewController (separate file) with initWithFrame - code provided

I am learning how to create Jailbreak tweaks. I hope this is just a simple question. I am using Theos. I have the following setup:- OneView.h #import @interface OneView :…
Wael
  • 489
  • 6
  • 19
0
votes
1 answer

Is there any graceful way could revert the hooked method to original implementation on iOS?

With CydiaSubstrate we could easily hook the methods as below, but I want to know how can I uninstall the hooking and revert the implementation to original one? Thank you! static IMP original_UIView_setFrame_; void replaced_UIView_setFrame_(UIView*…
Suge
  • 2,808
  • 3
  • 48
  • 79
0
votes
1 answer

How would I return this? (MobileSubstrate)

I'm looking to mod a game, and I found this function in the dumped headers: [code]-(void)didCompleteRewardedVideo:(id)video withReward:(int)reward; [/code] How would I make it so that reward would return 9999999? Also, there is supposed to be a…
Milo Ivy
  • 1
  • 1
0
votes
1 answer

How to deal with custom type class in cydia java hooking?

I'm using cydia substrate to hook a method in a third party app, which means I have no access to the source code of it. The method I want to hook has a custom type parameter, like this : methodToHook(com.thirdparty.app.CustomClass param1) But to…
Misty Zhu
  • 83
  • 2
  • 7