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.
406
questions
0
votes
0
answers
77
views
Theos, how to add UILabel to UICollectionView
I'm trying to create a new tweak with Theos by patching Instagram to add a new label to a UICollectionView. When a user clicks on the "Followers" list on their profile a new label will be ...
0
votes
0
answers
64
views
Print: Entry, ":CFBundleExecutable", Does Not Exist
Trying to make package of my project via Theos I catch this error, it's a simple Xcode app and it has .bundle file. I already have CFBundleExecutable in my info.plist. How to fix that?
full error:
====...
0
votes
1
answer
39
views
Trying to sort a NSString using NSMutableArray
I have a NSString which holds info like this:
%hook APMIntro
- (bool)isIntroductoryOffer {
return NO;
}
%end
%hook APMIntro
- (void)setIntroductoryOffer:(bool)arg1 {
arg1 = NO;
%orig;
}
%end
%...
0
votes
0
answers
48
views
Is there any way to append an argument in ProcessInfo in willFinishLaunchingWithOptions method through a tweak?
We would like to append an argument in ProcessInfo before didFinishLaunchingWithOptions method on any app but we don't know if is feasible and what class we should hook. Thanks!
0
votes
1
answer
285
views
no visible @interface for 'UIApplication' declares the selector 'launchApplicationWithIdentifier'
I just starting to learn how to write iOS tweaks. Tried to write a tweak in theos, but this part of code:
#import <UIKit/UIKit.h>
%hook SBStatusBarManager
- (void) handleStatusBarTapWithEvent: ...
1
vote
1
answer
74
views
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 (...
0
votes
1
answer
149
views
Getting theos to hook into SBStatusBarManager
what im trying to accomplish is on pressing the statusbar a alert pops up. im trying to learn tweak development and the tutorial im following is a bit old and uses the deprecated UIAlertView So after ...
0
votes
1
answer
475
views
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 ...
0
votes
1
answer
39
views
When creating localiap purchase there’s no receipt
Okay so I’m making a tweak , when I purchase the app it works fine ( using transactionstate 1 ) , but after I close the app I have to re do the purchase every time .. can someone help.. I’ve tried ...
0
votes
1
answer
244
views
How to hook into a framework method?
I want to hook a iOS App and modify some viewController by use Theos/tweak. But these ViewController are defined on dynamic Framework. Is that cause the hook code in Tweak.x be disabled? The code can ...
0
votes
1
answer
86
views
Objective-C: vibration does not works
so I am writing payload for jailbroken iOS and it should give you an ability to vibrate through MobileTerminal:
-(void)vibrate {
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
}
But after I ...
0
votes
1
answer
21
views
How to add button to NavigationBar
I want to add button like this one to share tweet: image
Here is what I would like to call:
[[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"twitter://"]];
0
votes
1
answer
157
views
use of undeclared identifier 'alertView'
I'm using theos to build my tweak. And this happened: Tweak.x:18:10: error: use of undeclared identifier 'alertView'
Here's my code
#import "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/...
0
votes
0
answers
274
views
-[NSURLSession dataTaskWithRequest:] throws weird error when calling shared instance of JSContext
I am trying to execute JavaScript in a hooked method from the NSURLSession class (cluster) which returns a LocalDataTask. For some reason my iOS tweak causes apps to crash when they call the method ...
0
votes
1
answer
303
views
In iOS tweak development, I cannot overwrite/write file with :writeToFile:atomically method
First of all, I am new to iOS tweak development and sorry if I asked something really seems like dumb. However, I cannot figure out what is the actual problem yet.
In the following code, I want to do:
...
0
votes
1
answer
46
views
How to create theos custom variables?
I would like to create custom variable for theos. In example @@DATECREATED@@ to print current date for my tweak deceptions (I'm soooo bored to edit it manually :D)
Like @@FULLPROJECTNAME@@ prints out ...
1
vote
1
answer
404
views
Make a theos tweak work with all user apps
How can i make a tweak work with all user apps when startup the app and show a popup.
Instead of hook the view controller of every app .
I tried make a filter to "http://com.apple.UIKit" and tried ...
0
votes
1
answer
111
views
unable to hook to a ui view inside interface
I am using THEOS, and I know how to hook to methods and override and stuff. But now what I want to do is, I want to access the UI views that are declared within (@interface).
Here is the header file ...
0
votes
1
answer
102
views
How can I open camera from lockscreen on jailbroken device?
How can I open camera from lockscreen?
[[UIApplication sharedApplication] launchApplicationWithIdentifier:@"com.apple.camera" suspended:NO];
it doesn't work, because device is locked.
-1
votes
1
answer
48
views
UIColor is there any one can tell me how i will code
Argument with uicolorlike this photo
0
votes
0
answers
25
views
How can I drag a UIView by holding down on my header
Menu Design I am currently making a menu for a tweak on iOS, but I'm creating the layout on Xcode first and then porting it to theos. This is my code so far. Is it possible for me to hold the header "...
0
votes
0
answers
95
views
How do I display my tweaks preference bundle in an application?
I have been developing a tweak and I want to have my preferences in a separate app kind of like how activator does its preferences.
https://github.com/withertech/NewTermTM
I’ve never made an app ...
0
votes
1
answer
92
views
How to fix 'warning: missing %end (%hook opened at Tweak.x:14 extends to EOF)' error when I already have %end
I've created a tweak via Zane Helton's online video tutorials.
I've gone over my own code multiple times to try and figure out why
this is happening,
I've googled it to no avail and am just trying ...
2
votes
0
answers
315
views
How to write correctly MSHook and MSHookIvar
I'm doing a Tweak and i use Flex to edit some Obj-C but one of these i cant edit so, i think if i do a Tweak with MSHook can resolve this, BUT NO idk how to write correctly i'm new on this, i want to ...
3
votes
1
answer
486
views
What's the meaning of LDFLAGS: -Wl,-segalign,4000
So I came across a cydia update notes:
0.9.6010 fixes the 32-bit armv7 slice, which was keeping extensions from loading into Cydia. (Note that, additionally, all 32-bit binaries, in particular ...
0
votes
1
answer
704
views
theos tweak is not loaded into app when 3rd party framework is linked
I'm using theos to link a 3rd framwork into my test tweak, which does nothing but a log, and it seems after linking the framework, the tweak.dylib is not loaded into app at all. If I comment out the ...
0
votes
1
answer
235
views
How to split NSString to NSDictionary
I'm getting the APT repository name from the Release file.
Origin: blah blah
Label: This is the name
Suite: stable
Version: 1.0
Codename: ios
Architectures: iphoneos-arm
Components: main
Description: ...
0
votes
1
answer
210
views
How to use +[SBLockScreenManager sharedInstance] in iOS tool (jailbroken)?
I'm developing a simple tool that request for device to unlock from a command line. However, using these code below, nothing seems to happen (the sharedInstance code are verified to be correct using ...
0
votes
0
answers
179
views
Fix error "initializer element is not a compile-time constant"
I'm trying to create a tweak for iOS, but when I'm going to compile the tweak, I get this error:
"initializer element is not a compile-time constant".
//Sound path
NSString *soundPath = [[NSBundle ...
0
votes
1
answer
207
views
How can I hook c# fields with Theos
I am trying to use theos to hook some class variables values in ios game. This game is built with unity so I used il2cppdumper to dump classes, methods, and fields for the game. The problem is the ...
0
votes
2
answers
3k
views
How can I retrieve serial number of a connected bluetooth device?
So straight to the point, my headphones broke and I can't listen to music with them. The store I bought them in requires the serial number from me to accept the warranty and I can't get it because I ...
0
votes
1
answer
161
views
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’...
0
votes
0
answers
97
views
How hook the multitask on iOS 12
Hi, I'm create a tweak tu custom multitask on iOS but don't find the good header.
My code :
%hook SBMainSwitcherViewController
-(void)viewDidLoad {
%orig;
UIAlertController * alert=[...
0
votes
0
answers
62
views
How add reboot button to my tweak using THEOS
Hi, I need help to add a reboot button in the preference bundle of my tweak.
I have this in my tweakRootListController.m
-(void)reboot {
[[UIApplication sharedApplication] reboot];
return;
}
...
0
votes
1
answer
168
views
Compiling error with 'system' command using Theos
I try myself to create tweaks. I start with something simple. A tweak that just does a respring.
When I try to compile I have this:
My .m file:
-(void)respring {
system("killall -9 SpringBoard")...
1
vote
1
answer
304
views
Theos iOS 11 system() function
I updated my Phone to IOS 11 and the system() function is not supported anymore. I want to shutdown after pressing a button, how can I do that? Respring works fine with posix_spawn. My old code is:
(...
1
vote
2
answers
290
views
open2: exec of lzma -c0 failed a internal-package Error 2 while building in Theos
I keep getting make: * [internal-package] Error 2 when trying to build a tweak I'm working on. Ive never had this issue before, and its not specifying whats wrong. Here is what it says:
yinyongzhen@...
4
votes
4
answers
3k
views
iOS - Accessing filesystem outside sandbox on a jailbroken device
I'm developing an app using theos [application_swift] and would like to gain access to the filesystem, outside the sandbox.
To my understanding, using the [application_swift] with theos should enable ...
0
votes
0
answers
40
views
detect the minimization of an app
I'm trying to make a tweak that will enable/disable rotation lock on the launching/closing of twitter, I got the launching and rotation lock part working with "launchFromLocation" and "...
1
vote
1
answer
144
views
class method '+configureWithApplicationID:' not found (return type defaults to 'id')
I’m having this problem and it has been the entire day, I couldn’t fix it.
I’m using theos on iphone.
https://imageshack.com/a/img921/3885/bo58U3.png
https://imageshack.com/a/img922/3769/Ooasap.png
...
9
votes
1
answer
393
views
How do I add a subview to UIStatusBar in Theos?
I know it sounds like this question has a simple answer, but hear me out. Although UIStatusBar is a subclass of UIView, you can't use the addSubview method to add a subview to it because it doesn't ...
0
votes
0
answers
90
views
How to make a tweak which respring the device?
I try to make a tweak which respring the device with theos?
And not with "system("killall -9 SpringBoard");" command.
2
votes
3
answers
1k
views
objective-c adding UILabel to center
hi i'm begginer in objective-c and i want to learn how i can make UILabel in center of screen
this is my code:
XXRootViewController.h
@interface XXRootViewController : UIViewController{
UILabel *...
0
votes
1
answer
145
views
Objective-C/THEOS - Is it possible to save a NSMallocBlock?
When hooking a certain method a parameter is passed through that is a NSMallocBlock. I need to save this value to use it later when recalling the method from my code. I tried to save it to a user ...
-3
votes
1
answer
58
views
How to fix "error: expected ']' [UIScreenmainScreen].applicationFrame];"?
UIView *view = [[UIView alloc] initWithFrame
[UIScreenmainScreen].applicationFrame];
Compiling XXRootViewController.m (arm64)…
XXRootViewController.m:9:1: error: expected ']'
...
0
votes
0
answers
275
views
Tweak not working
I'm trying hook IOKit framework (ios 10) to change my serial number
Build successful but when i test on my device result still my real serial number
Anybody known why?
Here is my source code
#import ...
0
votes
1
answer
237
views
Semantic Issue: Type of property does not match type of accessor
I'm currently using the theos with iOS 10 SDK trying to develop my tweak. I'm trying to make an NSString a property, and then to synthesize it . Now, I came across this: "Semantic Issue: type of ...
0
votes
1
answer
951
views
Hook to an instance method in iOS using theos and retrieve the argument that is being passed
-(void)setID:(long long) is the method and I want retrieve the argument (the integer) being passed and show it in an alert view. I am new to this please help me. And also if possible, how to pass this ...
0
votes
1
answer
103
views
accessing properties of a class and printing them
I have a header file like this:
@class NSMutableDictionary, NSString;
@interface randomclassname : NSObject
{
unsigned long long _HTTPMethod;
NSString *_path;
unsigned long long ...
0
votes
0
answers
141
views
ios log a trace of every method call application crashes
Tweak gets installed properly; I'm trying to log a trace of every method call for the specified hook.
#import <UIKit/UIKit.h>
#import <objc/runtime.h>
@interface logTool: NSObject
+ (...