jailbreak

Is it possible to use an NSTimer to wake a jailbroken iPhone from deep sleep?

本秂侑毒 提交于 2019-12-01 08:07:58
Note: further down in the edits there's simple code that generates the problem without the full complexity of my original program. I'm trying to code an alarm-clock app for jailbroken iOS. I have a UI set up as a standalone application for scheduling the alarms, which then saves the alarm information to disk. The save file is read by a launch daemon that's always running, which deals with actually scheduling the alarms. I'm scheduling the alarms as so (EDIT: in the daemon) ( NSDate *fireDate is calculated earlier): NSTimer *singleTimer = [[NSTimer alloc] initWithFireDate:fireDate interval:0

Using GraphicsServices.h/GSEvent as well as compiling CLI iPhone tools with Xcode

强颜欢笑 提交于 2019-12-01 06:32:09
问题 I sent this to KennyTM (has all the private framework headers on GitHub) but I figured I'd ask here too just in case someone has some good ideas or any way to help me out. I'm trying to write a command line utility that sends GSEvents to operate the keyboard, touch/drag elements onscreen, and operate hardware buttons (volume, home, sleep, etc.) I grabbed the MouseSupport code and tried to look through it, but I couldn't find the easiest way to send GSEvents. I'm hoping someone here can help

How to remove app icon programmatically from jail broken iPhone app?

血红的双手。 提交于 2019-12-01 06:17:46
How to remove my application icon for my app functionality? I want to do it only in jail break devices. You have to modify the Info.plist file in your app bundle to include this: <key>SBAppTags</key> <array> <string>hidden</string> </array> ( source ) 来源: https://stackoverflow.com/questions/13788611/how-to-remove-app-icon-programmatically-from-jail-broken-iphone-app

How to develop an app for Cydia and jailbroken iPhones

我与影子孤独终老i 提交于 2019-12-01 05:15:32
问题 I am starting to develop apps for iPhone. There is 1 specific app that I'd like to develop, but Apple will for sure reject it, so I want to do it for Cydia, cause I think it is just useful. I'm trying to figure out how to use Theos and XCode to create my app, but I can't understand anything. I would be very glad if some of you could help me with this. I have already installed Theos, and the header-dump scripts from Conor Burgess, but I just don't know how to start doint anything. How should I

Is it possible to use an NSTimer to wake a jailbroken iPhone from deep sleep?

痞子三分冷 提交于 2019-12-01 04:15:01
问题 Note: further down in the edits there's simple code that generates the problem without the full complexity of my original program. I'm trying to code an alarm-clock app for jailbroken iOS. I have a UI set up as a standalone application for scheduling the alarms, which then saves the alarm information to disk. The save file is read by a launch daemon that's always running, which deals with actually scheduling the alarms. I'm scheduling the alarms as so (EDIT: in the daemon) ( NSDate *fireDate

Interprocess SQLite Thread Safety (on iOS)

我只是一个虾纸丫 提交于 2019-12-01 03:59:04
I'm trying to determine if my sqlite access to a database is thread-safe on iOS. I'm writing a non App Store app (or possibly a launch daemon), so Apple's approval isn't an issue. The database in question is the built-in sms.db , so for sure the OS is also accessing this database for reading and writing. I only want to be able to safely read it. I've read this about reading from multiple processes with sqlite : Multiple processes can have the same database open at the same time. Multiple processes can be doing a SELECT at the same time. But only one process can be making changes to the

Send sms using core telophony?

99封情书 提交于 2019-12-01 01:00:14
I want to develop an application like biteSMS (for jailbroken iPhone). I have tried to compile an open source application iPhone-Delivery-Report but unable to compile it. Does some one knows anything related to core-telephony sms sending for jailbroken iPhone? A sample code would be very helpful. UPDATE Thanks to joshua Son for the great help. Here is the screenshot of the warnings. Joshua Son try this code; [[CTMessageCenter sharedMessageCenter] sendSMSWithText:@"Your Message here" serviceCenter:nil toAddress:@"Receiver's Phone Number here"]; I'm not saying the CTMessageCenter implementation

Make iPad Single App Device (or startup lock?)

烂漫一生 提交于 2019-12-01 00:33:14
is it possible (trough jailbreaking ?) to lock an ipad into single app modus so when it starts it just starts 1 app and it's impossible to see the springboard homescreen? Yes, you could write a MobileSubstrate tweak that launches the app when SpringBoard starts. Then you'd also have to override the function of the home button. Shouldn't be too hard. If you don't know how to write MobileSubstrate tweaks, look into theos , it makes it really easy. 来源: https://stackoverflow.com/questions/7160606/make-ipad-single-app-device-or-startup-lock

IOHIDEventSystemCreate on iOS6 failed

家住魔仙堡 提交于 2019-12-01 00:06:38
IOHIDEventSystemCreate always return NULL on iOS6 (work fine on iOS5). Anyone know why? Example on iPhoneDevWiki #include <IOKit/hid/IOHIDEventSystem.h> #include <stdio.h> void handle_event (void* target, void* refcon, IOHIDServiceRef service, IOHIDEventRef event) { // handle the events here. printf("Received event of type %2d from service %p.\n", IOHIDEventGetType(event), service); } int main () { // Create and open an event system. IOHIDEventSystemRef system = IOHIDEventSystemCreate(NULL); IOHIDEventSystemOpen(system, handle_event, NULL, NULL, NULL); printf("HID Event system should now be

Make the application restart by itself on a jailbroken device

无人久伴 提交于 2019-11-30 21:58:28
问题 Is it possible that my iOS app can auto-restart, each and every time the user accesses their home screen? This is for a jailbroken device -- the app is not destined for the App store. In general, how can I make my app restart given specific user actions outside the app? 回答1: Accelerometer If all you want to do is make your app run when you encounter certain accelerometer conditions, you can use Activator for that. Activator is a great app, by Ryan Petrich, available on Cydia for free. It lets