Questions tagged [iphone-privateapi]

A question with this tag is about non-public (aka private) iOS APIs. Apple will reject apps that use non-public APIs, but they can be distributed using ad-hoc or enterprise distribution (on jailed and jailbroken devices), or through jailbreaks. The main difference from software development standpoint of iOS private API that such APIs aren't declared in header files. As result extra steps are required to figure out API signature for its usage.

Questions with this tag discuss which private API can be used to accomplish different tasks, what are private API's signatures, runtime restrictions for usage of private API and so on.

The words "private API" in a question doesn't automatically make it suitable for this tag. As example, questions regarding Apple policies (why something was rejected or how do they know whether app uses some private API) aren't good fit for this tag. First of all, it's not purely software development question (it's more legal, tools questions). Second, all questions with this tag imply that it will be used in application which won't be submitted to Apple.

508 questions
17
votes
2 answers

Can Siri be invoked programmatically within my app using private APIs?

Instead of having the user to hold the home button, I would like to programmatically launch Siri within my application. Since there are no public APIs available to accomplish this, I would like to know, if anybody has been able to programmatically…
user2752939
  • 173
  • 1
  • 1
  • 4
16
votes
4 answers

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

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?
Ross Stepaniak
  • 877
  • 1
  • 6
  • 22
15
votes
1 answer

Get currently foreground running app (third party) bundle Identifier

How to get application name running in foreground? it was working in iOS 7 using SpringBoard but in iOS 8 I don't get the result. Any help is appreciated. I don't need to submit my app on apple store so if any patch or script also available then…
Bittu
  • 371
  • 4
  • 17
14
votes
5 answers

Does LSApplicationWorkspace not work on iOS 11?

I have an app in private which need to scan all applications and schemes and get it by using private API LSApplicationWorkspace defaultWorkspace with others functional method, such as privateURLSchemes allInstalledApplications. This app works good…
ovo
  • 1,904
  • 13
  • 26
14
votes
4 answers

How to take screenshot for the entire screen no matter which app is at front most in iOS 7(Jailbroken)

Before iOS7 I use UIGetScreenImage() function to take the screenshot easily, but in iOS7, it becomes deprecated, now are there any good methods to archive this?Thank you! Addition: I need take screenshot for the entire screen at any view
Suge
  • 2,808
  • 3
  • 48
  • 79
14
votes
2 answers

Toggling AirPlane mode in iOS Programmatically

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…
Mehul Thakkar
  • 12,440
  • 10
  • 52
  • 81
14
votes
2 answers

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

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…
Rohit Kashyap
  • 934
  • 2
  • 8
  • 23
14
votes
1 answer

A way to reboot iOS device or restart Springboard using private API?

I am looking for some private API or piece of code which will allow me to reboot iOS device or restart Springboard. I looked at SBReboot, but it looks like it's protected by some entitlement. Also, I tried reboot(int) and reboot2(int), but it looks…
Victor Ronin
  • 22,758
  • 18
  • 92
  • 184
14
votes
2 answers

How to turn on/off airplane mode in IOS 5.1 using private API

I am trying to toggle on/off airplane mode in IOS 5.1 using private frameworks. In AppSupport.framework, RadiosPreferences has a property to get/set the airplane mode and set the value ./AppSupport.framework/RadiosPreferences.h: @property BOOL…
user1165756
  • 375
  • 3
  • 11
13
votes
1 answer

Finding Private API Call _terminateWithStatus

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…
iOSDevSF
  • 1,169
  • 1
  • 13
  • 24
13
votes
2 answers

Get CellID, LAC, ... on iOS 8.3

Since iOS 5.X, I used to get radio information with these methods : Get CellID, MCC, MNC, LAC, and Network in iOS 5.1 But with the iOS 8.3 beta (and 8.3 GM), this private API _CTServerConnectionCellMonitorCopyCellInfo doesn't work anymore.
Boobby69
  • 284
  • 3
  • 13
13
votes
2 answers

Get list of all installed application in ios 8

How to get list of all installed Applications on iPhone device programmatically in iOS 8. If anyone knows the solution by using private APIs(but device non-jailbroken) then its well and good. I know that it is possible using iTunes Search API, but…
Mehul Thakkar
  • 12,440
  • 10
  • 52
  • 81
12
votes
1 answer

iOS 8 - How to determine the foreground app as well as get list of running apps

On iOS 7.0 and below, SBFrontmostApplicationDisplayIdentifier from the Springboard framework specified the app running in the foreground, but that capability has been blocked (considered as a vulnerability, see the Common Vulnerabilities and…
Besufekad
  • 141
  • 10
11
votes
3 answers

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

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…
Tauri
  • 1,291
  • 1
  • 14
  • 28
11
votes
1 answer

Access Private UIKit Function Without Using Bridging Header

Consider the private C function _UICreateScreenUIImage, which returns a UIImage snapshot of the current device screen: OBJC_EXTERN UIImage *_UICreateScreenUIImage(void) NS_RETURNS_RETAINED; I can put this in a bridging header and access it in Swift…
JAL
  • 41,701
  • 23
  • 172
  • 300
1
2
3
33 34