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 specify the class and the method to make a MS tweak on it?

How to specify the class and the method to make a MS tweak on it ? There is a lot of classes and methods in every single app or in springboard :( Any way to make it easy to find the one I'm gonna work on ?
0
votes
1 answer

NSFileManager can't find path to /var/mobile/

Im trying to check if a file exists at /var/mobile/Documents/ and it works perfectly on devices that aren't arm64. But when I try it on an arm64 device it's giving me cocoa error 257. I tried on ipad3/4 and ipod5 and it worked. But when I tried it…
Mike
  • 59
  • 1
  • 1
  • 5
0
votes
2 answers

How to detect app opening event

I have a requirement that whenever an app is opened by user, an event should be generated based on which I have to do some processing in my app. I realize that android do not broadcast that event. Hence, I am stuck and looking for a work around. I…
Faheem
  • 509
  • 2
  • 7
  • 23
0
votes
1 answer

Theos - How to call instance methods from a different class

Basically what I'm trying to do is call the attemptDeviceUnlockWithPassword method from SBDeviceLockScreenViewController's lockScreenView method. What is the proper way to call an instance method from a different class? %hook…
nil
  • 53
  • 2
0
votes
1 answer

cydia-substrate tweak development - giving errors on make

I am new to making mobile substrate tweaks and I wanted to hook this function but having a bit of trouble. %hook classname - (void)function:(BOOL) { %orig; return TRUE; } %end but when i try to MAKE this it gives me an error. void function…
0
votes
1 answer

Blur effect on LockScreen

I'm developing a CydiaSubstrate tweak and I would like to know how to disable the blur effect that appears on the lockscreen when we type the passcode. Does anyone have an idea ? Many thanks in advance !
faku
  • 411
  • 4
  • 19
0
votes
1 answer

theos: 'class' may not respond to 'method' [-Werror]

Header: @interface Prefs -(void)initPrefs; @end Tweak.xm: #import "Main.h" %hook Class -(void)method_to_override { [self initPrefs]; %orig; } %new -(void)initPrefs { //do some stuff } %end Above is my code, i am trying to…
junyi00
  • 792
  • 3
  • 8
  • 28
0
votes
1 answer

Why does postinst script for tweak app cause app icon dispear?

I make a tweak app works inside backboardd, so backboardd has to be restarted after the tweak is installed.I used the script below in DEBIAN's postinst to restart backboardd. It works right for me, but lead to a new problem: it respring…
Suge
  • 2,808
  • 3
  • 48
  • 79
0
votes
1 answer

Pass rotation event through UIWindow and UIViewController

Here is psuedo code for my tweak SBSearchViewController vcont = ...; UIWindow window = ...; [window retain]; window.windowLevel = 9999*9999; window.hidden = NO; window.rootViewController = vcont; [window addSubview:vcont.view]; [window…
twodayslate
  • 2,803
  • 3
  • 27
  • 43
0
votes
1 answer

Launch apps from the Lockscreen

As of right now I am using [SpringBoard launchApplicationWithIdentifier: suspended:] to launch applications from the lockscreen. If there is no passcode, this works fine for the lockscreen. However, if there is a passcode, it does not launch. How…
twodayslate
  • 2,803
  • 3
  • 27
  • 43
0
votes
1 answer

Logos subclass of private runtime class

I am trying to implement a tweak for iOS7 Control Center that involves adding additional section. So I want to make subclass of SBControlCenterSectionViewController but I get linker errors Undefined symbols for architecture armv7s: …
user1855732
  • 219
  • 1
  • 9
0
votes
1 answer

How to detect if it's inside Backboardd in my tweak of iOS?

I want to inject some functions to Backboardd, because of some reasons, I can not use plist to restrict it, so I want to use "if" to determine whether it's inside Backboardd.I know in 'Logos' I can use like that: %ctor{ if (%c(SpringBoard)) { …
Suge
  • 2,808
  • 3
  • 48
  • 79
0
votes
1 answer

UIImage in Theos Tweak on SpringBoard?

Hi people at StackOverflow I can't get my image to show up on my SpringBoard in my Tweak.xm SpringBoard is hooked, my UILabel shows up but my UIImage won't show up... For the UIImage I tried to follow this question UIImage may not respond to…
Subject
  • 11
  • 3
0
votes
1 answer

Upgrading ARM64 support, Theos compiles but doesn't work, ideas?

I created a Cydia Tweak and have been trying to update it for arm64 devices but for some reason my testers report the tweak doesn't work. I've been researching online and figured out adding arm64 support should be as simple as adding arm64 to the…
Carlos Perez
  • 122
  • 2
  • 12
0
votes
1 answer

How to hook to a function to iOS alarms?

I'm trying to use Theos in order to hook up and capture the names of the alarms that have been stopped. I have done this: // Logos by Dustin Howett // See http://iphonedevwiki.net/index.php/Logos //#import #import…
Marti Markov
  • 746
  • 6
  • 25