Questions tagged [tweak]

A tweak refers to a customization of a software application intended to facilitate its integration within the host system.

References

285 questions
2
votes
0 answers

How to get the UIApplication instance from SBApplication with private api in iOS?

I can get the SBApplication instance of the frontmost application, but I need use the instance of UIApplication, just as the result of [UIApplication sharedInstance], but how can I get the UIApplication instance from SBApplication?Thank…
Suge
  • 2,808
  • 3
  • 48
  • 79
2
votes
1 answer

How to declare member variable of subclass in Theos

For example, when I declare subclass of existing class, I can write as below in theos: %subclass NEWCLASS: EXISTINGCLASS - (void)overridemethod { //code } %new(v@:) - (void)newmethod { //code } %end But I don't know how to declare member or…
user3336535
2
votes
1 answer

Root privileges for mobile substrate tweak

I'm developing a tweak that when internet is reachable it does something. This is done with Apple's reachability API. The tweak is loaded in SpringBoard. I have a .plist file containing some information in /MyTweaksFolder. I can read it but I can't…
user3519705
  • 105
  • 9
2
votes
2 answers

How to obtain the perfect % of the battery of an iPhone with iOS 7

I'm new on stackoverflow. I've searched on so many sites for a solution to this question but I haven't found anything complete. My question is how can I obtain the percent value of the battery on an iPhone with the accuracy of 1%. I know that it's…
perascotta
  • 133
  • 9
2
votes
1 answer

Blocking incoming sms in iOS 7

I want to write a tweak for jailbroken devices that blocks messages from a phone number(in iOS 7). First I used the second answer of creker in this link for writing the tweak. Here is my code: #import #import #import…
user3519705
  • 105
  • 9
2
votes
1 answer

Errors while running the Code?

I am trying to compile and use the following code in a background daemon on a jailbroken iphone. #import #import //CoreTelephony.framework extern "C" CFStringRef const…
zzzzz
  • 1,209
  • 2
  • 18
  • 45
2
votes
0 answers

How to capture Siri's audio data

I'm currently developing a Cydia tweak about speaker recognition on iPhone. This tweak can identify if the current user is the phone owner (after training). This tweak has already be implemented on Android and we have already compiled and tested the…
2
votes
1 answer

finding IOSurface headers

I'm getting this error when I try to compile my tweak. 'IOSurface/IOSurfaceAPI.h' file not found #include I've tried this answer, but I can't find /System/Library/Frameworks/IOSurface.framework/Headers on my computer.…
Connor Pearson
  • 63,902
  • 28
  • 145
  • 142
2
votes
1 answer

how to open phone app without url scheme in iOS

I am working on a lockscreen tweak. In my custom lockscreen view, there is a button which yo can use it to lock and open the native phone app. The IDE I'm using is iOSOpenDev. I had tried those methods: Url scheme:i do not want the dial display,…
2
votes
1 answer

Show UIAlertView or UIViewController in a Logos Tweak

I am building a tweak for SMS sending on the default MobileSMS app coming with iOS 6.1. Even though I have managed to hook to the "Send" button, I cannot create a popup to inform the user, neither with UIAlertView nor with a UIViewController. I…
Panagiotis
  • 309
  • 2
  • 13
2
votes
2 answers

how to open a special view of Preferences in a jailbreak tweak?

i am working on a jailbreak Tweak, and i need to open a special view of Settings i googled a lot and after iOS5.1, [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://"]]; does not work anymore. how can i do this?
2
votes
0 answers

Why doesn't my code integrated with libactivator work in iOS5.x?

I'm going to use libactivator to make the control mechanism in my application. But It doesn't work in iOS5.x while working good in iOS6.x. In my testing code, it will popup an alert to tip when receiveEvent(libactivator.volume.up.press by…
Suge
  • 2,808
  • 3
  • 48
  • 79
2
votes
0 answers

How to simulate multi-touch with GSEvent on jailbroken device?

I want to simulate multi-touch event on jailbroken device, I tried the GSEvent, I couldn't known each field of the structs, so I just assumed each pathInfo meant one finger info, but no effect, could anyone give me some help?Thank you very…
Suge
  • 2,808
  • 3
  • 48
  • 79
2
votes
1 answer

How to capture and record iOS Touch Events at system level?

I want to capture all the touch events at the system level, I do not mean capturing at one specified app, but all the apps even the SpringBoard.I tried IOHIDEvent(https://github.com/kennytm/iphone-private-frameworks/tree/master/IOKit/hid), but the…
Suge
  • 2,808
  • 3
  • 48
  • 79
2
votes
0 answers

iOS - Launching "Photos" app through tweak?

I want to launch "Photos" application (the stock apple one) through a jailbreak tweak. I have hooked the springboard, overridden the methods I need and now I need to launch the "Photos" app. My problem is, there's no URL set up for it. So how do I…