iphone-privateapi

How to find the purple port for the front most application in IOS 5 and above?

二次信任 提交于 2019-11-27 20:15:30
I am trying to write an app that runs in the background and injects touches to the springboard or other apps. I understand that I will be using private APIs and structures. The app is an enterprise app and does not need to be approved for the AppStore. I am using the GSEvent structure as suggested by KennyTM with some minor modifications for IOS 5/6. I am able to send touch events and other events to the Springboard by sending GSSystemEvents. I need to be able to send similar events to other applications as well, but I am not able to find the port for the front most application. Is there a way

Simulating System Wide Touch Events on iOS

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 15:20:12
问题 I need to programmatically add touch events to iOS devices system wide without using a jailbreak; how do I do this? Preferably I'd like to use a private API to do this running in an app in the background. I am aware that doing this prevents my app's availability on the app store; this is however a private app so it isn't a problem. 回答1: What you need to do is first create the events you want, and then send them to SpringBoard over the "purple port" eg. mach port. To make them system wide you

detect hotspot enabling in iOS with private api's

て烟熏妆下的殇ゞ 提交于 2019-11-27 13:50:24
ok so i want to detect weather the user has enabled hotspot/tethering or not in a iOS device. I can use private api's knowing it wont make it to the app store. i was trying to go through private api's list/ runtime headers but there are too many to decide which might be helpful. or if i could get to know where UIApplicationWillChangeStatusBarFrameNotification gets fired from in private api's(probably called for active call and activated hotspot etc) i tried this detect personal hotspot and also used CaptiveNetwork but it only returns the connected wi-fi ssid and not the created hotspot. any

Toggling AirPlane mode in iOS Programmatically

五迷三道 提交于 2019-11-27 13:45:19
I want to on/off airplane mode in iOS programmatically. After googling, i got some of the following links, and followed them, Reachability airplane mode (3G) vs. Wifi Using Private Framework: Importing RadioPreferences.h Detect if iPhone is in Airplane mode? All of the above links, tell me to use AppSupport.framework and using RadiosPreferences.h. This is giving me the status about whether airPlane mode is on or off, But it doesn't make me to change the airplane mode. Then i saw, this link, How to turn on/off airplane mode in IOS 5.1 using private API , that gives me the way for toggling

Getting state for system wide notifications in iOS and OS X

时光总嘲笑我的痴心妄想 提交于 2019-11-27 13:32:49
问题 I am trying to write a code which will handle turning on/off screen on iOS (You can take a look at this question where similar problem is discussed). I included OSX tag for this question, because OSX has the same system wide notification facility. And the problem described below is inherit to the notifications facility (vs to iOS or OSX). There is well known method of registering for system wide notification com.apple.springboard.hasBlankedScreen to receive notifications when the screen is

Launch other application without URL schema in iphone?

一世执手 提交于 2019-11-27 13:23:23
I know that other applications can call from your application via the URL schema. But not all applications are registered schema URL. So how can I launch that application?. I'm developing for iphone jaibroken. Kevin Lee I used this way: void* sbServices = dlopen("/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices", RTLD_LAZY); int (*SBSLaunchApplicationWithIdentifier)(CFStringRef identifier, Boolean suspended) = dlsym(sbServices, "SBSLaunchApplicationWithIdentifier"); int result = SBSLaunchApplicationWithIdentifier((CFStringRef)bundleId, false); dlclose

IOSurfaces - Artefacts in video and unable to grab video surfaces

一曲冷凌霜 提交于 2019-11-27 12:08:08
问题 This is a 2-part Question. I have the following code working which grabs the current display surface and creates a video out of the surfaces (everything happens in the background). for(int i=0;i<100;i++){ IOMobileFramebufferConnection connect; kern_return_t result; IOSurfaceRef screenSurface = NULL; io_service_t framebufferService = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("AppleH1CLCD")); if(!framebufferService) framebufferService = IOServiceGetMatchingService

IOSurface - IOS Private API - Capture screenshot in background

送分小仙女□ 提交于 2019-11-27 11:22:43
问题 I want to capture a screenshot from a background service. Private API is just fine as I don't need to submit to app store. I have already tried UIGetScreenImage and it does not work from background app. I am using following code which I got from SO. IOSurfaceCreate returns null to me. Any help appreciated. CFMutableDictionaryRef dict; IOSurfaceRef screenSurface = NULL; char pixelFormat[4] = {'A','R','G','B'}; dict = CFDictionaryCreateMutable(kCFAllocatorDefault, 0,

iOS touch event notifications (private API)

十年热恋 提交于 2019-11-27 06:56:14
It's possible to simulate touch events on iOS , and you can receive various system wide notifications when in the background using CTTelephonyCenterAddObserver and CFNotificationCenterAddObserver, eg: IOS Jailbreak How do intercept SMS / Text Messages How can I detect screen lock/unlock events on the iPhone? I've yet to find a way to get touch notifications while in the background though. Is there a "touch event" that can be used with CFNotificationCenterAddObserver, a different notification center that can be used, or a completely different approach? I'd be happy with low level touch

iOS How can I use UIApplication launchApplicationWithIdentifier which is in private APIs?

大兔子大兔子 提交于 2019-11-27 06:18:28
问题 [EDIT]I've jb my device. And I found the latest private APIs iOS-Runtime-Headers on Github. I want to use private APIs in my app. I found kennytm/iphone-private-frameworks on github but it only support iOS 3.x. While I'm working on iOS 5.0.1. I also found some codes on Google iPhone development tools. But it really make me confused. I'm new to iPhone development. What should I do to use [[UIApplication sharedApplication] launchApplicationWithIdentifier:@"com.a.b" suspended:NO]; Someone can