Skip to main content
0 votes
2 answers
322 views

How to use theos %hookf to hook an objective-c function in an iOS app?

I am trying to hook a function called addition. The implementation looks something like this: NSNumber *addition(NSNumber *num1, NSNumber *num2) { double result = [num1 doubleValue] + [num2 ...
pilokenorse's user avatar
0 votes
1 answer
58 views

DragonMake iOS-simulator error when trying to build

I'm working on a very simple Tweak on DragonMake. So far I'm getting the following errors when building: ld: building for 'iOS', but linking in dylib (/Users/[myuser]/.dragon/frameworks/CydiaSubstrate....
Serch's user avatar
  • 3
0 votes
1 answer
145 views

AVAudioSession instance be deactived just after handling AVAudioSessionInterruptionNotification ended signal

I am trying to write a tweak in Theos for an iOS app, to play a silent wav in background for more background life. There might be incoming calls interrupt the sound playing, so I wrote the following ...
ARD7N's user avatar
  • 1
0 votes
1 answer
66 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 %...
Randy420's user avatar
0 votes
0 answers
85 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!
lordVar's user avatar
0 votes
1 answer
1k 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: ...
checkm8's user avatar
  • 13
1 vote
1 answer
236 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 (...
Jose Pérez Cano's user avatar
0 votes
1 answer
322 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 ...
wretchedbeaches's user avatar
1 vote
1 answer
1k 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 ...
Enrico Borba's user avatar
  • 2,137
0 votes
1 answer
76 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 ...
Kurax Scoresx's user avatar
0 votes
1 answer
590 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 ...
Mayer Lam's user avatar
0 votes
1 answer
370 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 ...
Enty AV's user avatar
  • 65
0 votes
1 answer
28 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://"]];
Chetoxi's user avatar
0 votes
1 answer
220 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/...
MichaelFang's user avatar
0 votes
0 answers
329 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 ...
objccjbo's user avatar

15 30 50 per page
1
2 3 4 5
27