jailbreak

How can I simulate the touch events by IOHIDEvent?

早过忘川 提交于 2019-12-01 22:55:09
I want to simulate touch events on iOS 6. I learned something useful from IOHIDEvent , which is a low-level functions bundle for human interface devices. From: https://github.com/kennytm/iphone-private-frameworks/tree/master/IOKit/hid I got the private framework with IOHIDEvent , but the headers were changed after iOS 4, and some functions were not supported any more. Does anyone know how to get the functions in iOS6, or known how to simulate the events at system-level? Nate As I mentioned in my answer to your other question today , you might try looking at GSEvent.h from GraphicsServices

How I can access the call log/history of iPhone

耗尽温柔 提交于 2019-12-01 12:32:50
This is for jailbroken iPhone. Is there a way I can access the call_history.db on iPhone which is a database where apple logs the phone call information. It is stored at /private/var/mobile/Library/CallHistory directory. When I try to enumerate directory paths under /private/var/mobile/Library it does not list CallHistory folder but everything else. I guess Apple does allow access somehow despite of having all the permissions. Is there a way I can get access to call_history.db and copy it under my app? I have already gone through another stackoverflow question here Accessing the iPhone's Call

xcode project conversion to iOSOpenDev

筅森魡賤 提交于 2019-12-01 12:00:20
I would like to convert a 'regular' xcode project to deploy using iOSOpenDev . From what I can tell, when a new project is created using the iOSOpenDev templates, it has the following in the build settings: EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = *.nib *.lproj *.gch (*) .DS_Store CVS .svn .git .hg *.xcodeproj *.xcode *.pbproj *.pbxproj HEADER_SEARCH_PATHS = $(iOSOpenDevPath)/include/** IPHONEOS_DEPLOYMENT_TARGET = 5.0 LIBRARY_SEARCH_PATHS = $(iOSOpenDevPath)/lib/** SDKROOT = iphoneos iOSOpenDevInstallOnProfiling = YES iOSOpenDevPath = /opt/iOSOpenDev Is it sufficient to add these to

IOHIDEventSystemClientScheduleWithRunLoop with EXC_BAD_ACCESS

泪湿孤枕 提交于 2019-12-01 11:47:50
问题 I'm trying to get touch events in my application. So I used the IOHIDFamily callback to get the events. My code is like this: void handle_event(void* target, void* refcon, IOHIDServiceRef service, IOHIDEventRef event) { printf("Received event of type %2d from service %p.\n", IOHIDEventGetType(event), service); } - (void)viewDidLoad { [super viewDidLoad]; void *ioHIDEventSystem = IOHIDEventSystemClientCreate(kCFAllocatorDefault); IOHIDEventSystemClientScheduleWithRunLoop(system,

Programmatically get own Phone Number in iPhone OS 4.0

流过昼夜 提交于 2019-12-01 10:44:55
I am developing an iPhone application for jail broken phones and in this application I would like to fetch user's phone number. I have gone through the entire stackoverflow.com and found some relevant answers but all of them are obsolete and doesn't work with iOS 4.0 anymore. The most famous solution for this problem is NSString *num = [[NSUserDefaults standardUserDefaults] stringForKey:@"SBFormattedPhoneNumber"]; but as I mentioned this solution no more works with iOS 4.0 As my application is intended towards the jail broken phones and not intended the Apple app store so I am not worried

App for jailbroken iOS device: Consistent background operation

本秂侑毒 提交于 2019-12-01 10:42:52
I am the author of a Cydia tweak called AirFloat. An app that implements the AirPlay audio protocol (previously known as AirTunes), making it possible to stream audio to your iOS device. AirFloat is originally an App Store app, until it got booted by Apple from the App Store. I've since that made it available for free in Cydia. Currently the app stands in Cydia exactly as the previous App Store version. As a result of this I get a lot of requests to make it work in the background. But I cannot get it to work. Basically I am thinking of two approaches. Note: AirFloat displays the currently

Check if app has a notfication using private frameworks?

旧城冷巷雨未停 提交于 2019-12-01 10:41:18
I'm writing a mobilesubstrate tweak for jailbroken devices that displays an icon in the statusbar if a defined app has a notification using libstatusbar I'm having trouble locating where iOS keeps this notification info for each app. Could anyone point me in the right direction/framework? I don't intend on submitting this to Apple, again it's for jailbroken devices. Thanks SO. I believe there are two notifications which looks similar, but internally goes through different execution routes: local notification and remote push notifications. I don't have exact answer. Couple of ideas, direction,

Programmatically get own Phone Number in iPhone OS 4.0

吃可爱长大的小学妹 提交于 2019-12-01 09:09:54
问题 I am developing an iPhone application for jail broken phones and in this application I would like to fetch user's phone number. I have gone through the entire stackoverflow.com and found some relevant answers but all of them are obsolete and doesn't work with iOS 4.0 anymore. The most famous solution for this problem is NSString *num = [[NSUserDefaults standardUserDefaults] stringForKey:@"SBFormattedPhoneNumber"]; but as I mentioned this solution no more works with iOS 4.0 As my application

Check if app has a notfication using private frameworks?

对着背影说爱祢 提交于 2019-12-01 08:35:13
问题 I'm writing a mobilesubstrate tweak for jailbroken devices that displays an icon in the statusbar if a defined app has a notification using libstatusbar I'm having trouble locating where iOS keeps this notification info for each app. Could anyone point me in the right direction/framework? I don't intend on submitting this to Apple, again it's for jailbroken devices. Thanks SO. 回答1: I believe there are two notifications which looks similar, but internally goes through different execution

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

拜拜、爱过 提交于 2019-12-01 08:21:37
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 me. First, what's the simplest way to declare a GSEvent and send it? I looked at the iPhone development