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

iOS Obj-C Hooking Converting Hex to String

I am trying to hook a simple function in Theos: - (_Bool)sendData:(id)arg1 { NSLog(@"%@", arg1); _Bool r = %orig; return r; }; But the output I get is in hex: <3c736f61 70656e76 3a456e76 656c6f70 6520786d 6c6e733a 736f6170 656e763d> I…
d123
  • 1,497
  • 2
  • 12
  • 22
-1
votes
2 answers

Returning UIColor causing crashes

I'm trying to use a method to convert string to UIColor like this: -(UIColor *)getColorFromString:(NSString *)color { if ([color isEqual: @"red"]) { return [UIColor redColor]; } else { return [UIColor blackColor]; …
junyi00
  • 792
  • 3
  • 8
  • 28
-1
votes
1 answer

How can I make this method work?

I want to hook Applist to a native processes, so I do not want to modify the headers, but I am not sure how? #import "XXX.h" @class XXX, XXX, XXX (I want Applist to hook in here) Could something like this work? -…
-1
votes
1 answer

How can I share an object between processes?

I'm making a tweak for jailbroken iPhones, and I have an object that I need to share between two processes. Currently, it is null in one process and contains information in another. How can I get around this? Thanks!
Phillip
  • 1,205
  • 3
  • 15
  • 22
-1
votes
1 answer

pointer from integer without a cast error

can someone help me solve this error please? I've used this on another tweak i was working on and getting the intValue was no issue, but for some reason it is right now, I'm creating a WeeAppPlugin through theos typedef enum { appleSMS = 0, …
iExiledDev
  • 109
  • 9
-1
votes
3 answers

method not getting value from plist

For some reason I'm not getting the value from my plist and I'm not sure why here is the plist:
iExiledDev
  • 109
  • 9
-2
votes
1 answer

How do I start monitor for finger prints using BiometricKit framework in ios 10 theos?

I would like to know how to start monitor for finger prints like this tutorial explains but it is out of date so it doesnt work. Thanks in advance.
-2
votes
1 answer

Theos iOS 7 Apps/Tweaks

I want to make tweaks and apps for iOS 7. I install theos on my iPod Touch 5 (running iOS7) and I created a simple app. The thing is, the app only supports the 3.5 inch screen and it is styled like iOS 6. Is there a way I can make iPhone 5 optimised…
-2
votes
1 answer

Objective C - Call another class

I use a class that returns array as the following : %hook firstHeader -(void)firstMethod:(id)array{ NSLog(@"Array %@", array); return %orig; } %end the nslog result : array ( "", "", …
osx
  • 27
  • 1
  • 2
  • 4
-2
votes
1 answer

If statement not working with NSNumber?

I'm new to coding and can't find an accurate answer anywhere. I'm trying to make the NSNumber return false if the BOOL is true. Any help? Thanks static BOOL someBOOL; %hook (class I want to hook) -(void)sampleMethod:(NSNumber *)boolNumber { …
Andrew68
  • 1
  • 1
-2
votes
2 answers

iOS app crash when trying to log NSDictionary

I have a problem where I try to log NSDictionary content and as soon as the method is called the app crashes. This is the code I have tried after advice from a talented "hacker": %hook UserData -(int)getVariable:(NSDictionary *)fp8 { for (NSString…
-2
votes
1 answer

iOS - UIButton does not appear on UIView

This tweak is supposed to cover the lockscreen with a view (which does happen) and add an "iOS" button to the view (which does not). Here's my code: #import #import @interface…
-2
votes
1 answer

id object in theos mobilesubstrate tweak , i can't disable this -(id)

-(id)initWithUserSettings:(id)userSettings mqttSender:(id)sender; NSDictionary *settings3=[[NSDictionary alloc] initWithContentsOfFile:@"/var/mobile/Library/Preferences/myfilehere.plist"]; if ([[settings3 objectForKey:@"invisiblechat"]…
-3
votes
1 answer

How to fix "error: expected ']' [UIScreenmainScreen].applicationFrame];"?

UIView *view = [[UIView alloc] initWithFrame [UIScreenmainScreen].applicationFrame]; Compiling XXRootViewController.m (arm64)… XXRootViewController.m:9:1: error: expected ']' …
-3
votes
1 answer

How to go to SecondViewController from RootViewController

I have search for hours with no good answers and it seems a lot of people have this issue... I am using theos on my iphone and I have a RootViewController with this code: - (void)tableView:(UITableView *)tableView…
user4682708
1 2 3
27
28