iphone-privateapi

how to determine which apps are background and which app is foreground on iOS by application id

寵の児 提交于 2019-11-26 12:59:42
Using the method described in this question , I can get a list of apps running on an iOS device. I know PIDs and have access to their kinfo_proc structures. How can I determine which are foreground processes and which are background (assuming my app is background)? I tried to find this out base on information in kinfo_proc (see 1st link), via kp_proc.p_priority , but it looks like it is not possible to infer background/foreground state from priority. I don't really care if this works correctly for AppStore Review but I would prefer a method that will work without a jailbreak(i.e. Private APIs

iOS touch event notifications (private API)

江枫思渺然 提交于 2019-11-26 12:57:21
问题 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

Is there a away to detect the event when iOS device goes to sleep mode (when the screen gets blackened)?

痞子三分冷 提交于 2019-11-26 10:54:23
问题 I wanted to detect two events : Device gets locked/unlocked. Device goes to sleep and the screen blackens. First one I have been able to achieve here: Is there a way to check if the iOS device is locked/unlocked? Now I want to detect the second event, is there any way to do it ? 回答1: You basically already have the solution, which I'm guessing you found from one of my recent answers :) Use the com.apple.springboard.hasBlankedScreen event. There are multiple events that occur when the screen

Turn off display in iPhone OS (iOS)

徘徊边缘 提交于 2019-11-26 09:08:07
问题 is there a way to programmatically turn off the display in iOS? Not just turning brightness down, but off like the way the Phone App does. I am happy to use private API, since this is for personal use. Thanks! 回答1: You can turn off the display by enabling the proximity monitoring. It will automatically turn off the screen, like in the Phone app, by placing the phone near your ears or by placing a finger over the IR sensor at the top of the phone. [UIDevice currentDevice]

iOS Private API Documentation [closed]

倾然丶 夕夏残阳落幕 提交于 2019-11-26 07:54:26
问题 Is there a web site or project documenting private APIs for the iPhone SDK? 回答1: here are searchable archives from iPhone OS 2.2.1 to iOS 9.2 https://github.com/nst/iOS-Runtime-Headers 回答2: Most likely. Just use the command line application class-dump to view the private headers. Note that your app will be rejected from the App Store for linking to private frameworks if you link at compile. It is easy enough to see that you are linking the private frameworks by running otool on your binary if

Detect carrier connection type (3G / EDGE / GPRS)

随声附和 提交于 2019-11-26 07:26:39
问题 How can i get the type of connection of a carrier network? I\'m able to get if connection is WIFI or WWAN using Reachability class I\'m able to get network flags Reachability Flag Status: WR t------ localWiFiStatusForFlags I\'m able to get WIFI SSID using CaptiveNetwork Supported interfaces: ( en0 ) en0 => { BSSID = \"xx:xx:xx:xx:xx:xx\"; SSID = MyWifiNetwork; SSIDDATA = <x1x1x1x1 x1x1x1x1 x1>; } But i\'m not able to differenziate 3G, EDGE or GPRS connection. Any idea also using iOS private

Is it considered a private API to use App-prefs:root?

拥有回忆 提交于 2019-11-26 06:46:06
问题 In my app I\'m using [NSURL URLWithString:@\"App-Prefs:root=Privacy&path=LOCATION\"] to open settings screen. Will it be rejected by apple as according to some sources this is considered a private API? 回答1: Yes. The only legal way to open Settings is to use UIApplicationOpenSettingsURLString . 回答2: My app just got rejected because of this, so yes, it is considered as private API :) Here's the rejection notice from Apple: Your app uses the "prefs:root=" non-public URL scheme, which is a

Get CellID, MCC, MNC, LAC, and Network in iOS 5.1

假如想象 提交于 2019-11-26 06:20:58
问题 I need to retrieve CellID, MCC, MNC, LAC and Network (GSM, 3G) of the current Serving Cell Tower in iOS 5.1 (iPhone 4S). I know this information is available because I can see it in FieldTest Mode (accessible after calling ****3001#12345#****). I suppose it to be accessible via Private/Undocumented iOS Frameworks. In the question iphone, check values of cellId / Lac the author indicates I can get radio Informations cellId, Lac, MNC, MCC on iOS , but no information on how to do this is

Finding Private API Call _terminateWithStatus

核能气质少年 提交于 2019-11-26 04:53:53
问题 I just received an email from Apple stating my app has been rejected for the call of _terminateWithStatus. I have a few frameworks in the app and believe that could be the culprit. I have ran otool here is my output /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /System/Library/Frameworks/Foundation.framework/Foundation (compatibility version 300.0.0, current version 751.49.0) /System/Library/Frameworks/UIKit.framework/UIKit (compatibility version 1.0.0, current

How to set lock screen , wallpaper and Ringtone programmatically in iPhone?

淺唱寂寞╮ 提交于 2019-11-26 03:51:32
问题 In iPhone can we set the lock screen, wallpaper and ringtone programmatically? If Yes , then please let me know how to set them? 回答1: This can all be done easily, but will be rejected by Apple. The ringtone can be changed by altering com.apple.SpringBoard.plist , specifically the ringtone key. The following code can be used to read the actual ringtone title of custom ringtones (synced by iTunes). NSMutableDictionary *custDict = [[NSMutableDictionary alloc] initWithContentsOfFile:@"/private