Questions tagged [theos]

Theos is a cross-platform suite of development tools for managing, developing, and deploying iOS software without the use of Xcode. This tag might also refer to an operating system originally authored in the 1970's.

Theos is a cross-platform suite of development tools for managing, developing, and deploying iOS software without the use of Xcode. It is community-driven and managed. One popular way of using it is to patch/modify system or non-system applications, where such modifications are popularly known as tweaks. Tweaks can be used in ways comparable to tools like frida and mobile substrate in jailbroken devices. In fact, Theos uses the capabilities of mobile substrate as the engine powering tweaks, but provides templates, tools and the Logos syntax, to make tweak development more convenient. Theos can be used directly on iOS devices to build tweaks, on or MacOS, e.g., to build the tweaks and package them in .deb packages that can be installed on iOS devices.

409 questions
2
votes
1 answer

Hooking IVAR in theos error

I have decrypted some header files and this is the header file I would like to hook some ivars from it. /** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source:…
2
votes
1 answer

creating an iOSOpenDev application and a tweak in the same package

I've spent three days looking how to create (using iOSOpenDev) one package (.deb) containing an application and a tweak at the same time and I could not find anything. It is possible to do this?
Alejandro Cotilla
  • 2,501
  • 1
  • 20
  • 35
2
votes
0 answers

Can MSHookFunction hook C functions like open,fopen or write?

For various reasons, I need to hook these functions, especially open. so I wrote this code in theos to test: #import #include static int (*orig_open)(const char * pathname,int oflag,...); int…
SgViTiNer
  • 118
  • 1
  • 10
2
votes
1 answer

Unable to create Directory outside the sandbox for THEOS Tweak

I'm making an iPhone tweak using THEOS which hooks to Google Chrome App. Part of the tweak functions, is to handle downloading and saving files using ASIHTTPRequest/ASINetworkQueue. The user can choose and set the download destination freely. This…
boudarbalat
  • 181
  • 1
  • 8
2
votes
3 answers

MacPorts Install dpkg Errors

Update: sudo port selfupdate did not return any errors. This was the output: ---> Updating MacPorts base sources using rsync MacPorts base version 2.1.3 installed, MacPorts base version 2.1.3 downloaded. ---> Updating the ports tree ---> MacPorts…
Charles
  • 4,372
  • 9
  • 41
  • 80
2
votes
2 answers

Calling a function from another class with Logos (%hook)

Note: This code is not an exact replica of the original code, but illustrates (with good accuracy) what the issue is, and what my intentions with the code are. I have added a button to DaClass1's view (this works fine): %hook DaClass1 -(id)DaView…
Aleksander Azizi
  • 9,829
  • 9
  • 59
  • 87
2
votes
1 answer

How to make a preference bundle for my mobile substrate tweak?

I have theos, sdk3 installed in my iPhone I have created a working tweak too but have no idea how to create a preference bundle to add some settings. I want A Yes/No or a BOOL button to be added into the preference button to see if the tweak wants…
junyi00
  • 792
  • 3
  • 8
  • 28
2
votes
1 answer

How to grey out a specific cell in an ios settings bundle (PreferenceLoader)?

Recently I've been developing a tweak for Cydia using an excellent framework (Theos by the awesome Dustin Howett) and I'd like to know whether there is any way to grey out a cell in the preference bundle of the tweak. It doesn't matter whether it…
s6luwJ0A3I
  • 1,023
  • 1
  • 9
  • 22
2
votes
1 answer

Is there a way to get Bundle ID of current open app

I'm using Theos to develop a jailbreak tweak, and I need to get the Bundle ID of the current open application. I'm modifying SBBannerView.h which is a SpringBoard header. I tried Using: [[NSBundle mainBundle] bundleIdentifier] and also: [NSBundle…
iExiledDev
  • 109
  • 9
2
votes
1 answer

NSMutableArray from plist key values separated by comma

I have a plist file that stores cached colors, it looks like this CachedColors com.Halfbrick.Fruit 0.00000,0.00000,0.00000 com.apple.Preferences
iExiledDev
  • 109
  • 9
2
votes
1 answer

THEOS/iPhone Jailbreaking programming - How should I hide a View from the ViewController?

I'm trying to program a Cydia's tweak and should hook a viewcontroller class while loading and hide the view - i've tried the following: Tweak.xm: %hook ScoresViewController - (void)viewWillAppear:(BOOL)fp8 { %orig; self.view.hidden =…
2
votes
1 answer

theos springboard

Does anyone have this experience? I just follow the http://brandontreb.com/beginning-jailbroken-ios-development-your-first-tweak/, however every make command ends up like: no springboard/springboard.h file or directory. How to solve this? One more…
xiwan
  • 33
  • 4
2
votes
2 answers

Check for double tap in editing mode

I'm making a tweak that involves popping an alert whenever the user double taps an icon in editing mode. I've tried hooking on to - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event of SBIcon and then { %orig; UITouch *touch…
cortex
  • 699
  • 2
  • 7
  • 11
1
vote
1 answer

ios - THEOS linking error for default tweak

I am starting to develop tweaks from my macbook pro and I and getting the following compiler / linker error when I do make package: > Making all for tweak CorrectVolume… ==> Compiling Tweak.x (arm64)… ==> Linking tweak CorrectVolume (arm64)… ld:…
1
vote
1 answer

UNUserNotificationCenter's requestAuthorization returns success:false error:nil

I'm developing a swift app on my jailbroken iPhone 6s running iOS13.3, using theos on linux. I have some simple swift UI code to present a buttont to request local notification permissions: import SwiftUI import UserNotifications struct MainView:…
Enrico Borba
  • 1,877
  • 2
  • 14
  • 26