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
77
votes
4 answers

iOS Private API Documentation

Is there a web site or project documenting private APIs for the iPhone SDK?
Richard Stelling
  • 25,607
  • 27
  • 108
  • 188
49
votes
3 answers

Inject system wide touch events on iOS7

Prior to iOS7 it was possible to inject touch events with the GSSendSystemEvent and GSSendEvent private API calls, eg: GSSendEvent - Inject Touch Event iOS Simulating System Wide Touch Events on iOS System-wide tap simulation on iOS Send a global…
Ben Dowling
  • 17,187
  • 8
  • 87
  • 103
35
votes
2 answers

Detect which app is in foreground on iOS9 without jailbreak

I'm trying to log users individual app usage on iOS9. I'd rather prefer that it wouldn't use jailbreak limited solutions, self explanatory. Doing the variation of this app on a jailbroken phone shouldn't be hard. This will certainly not be released…
Fero
  • 567
  • 8
  • 25
34
votes
8 answers

Private unique device identifier in iOS

We're working on a project with my colleagues which involves using a lot of private and non official code. This is not intended for AppStore use. The first and only requirement we have is to not use jailbreak. First of all, UDID or OpenUDID or any…
Sergey Grischyov
  • 11,995
  • 20
  • 81
  • 120
27
votes
3 answers

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

In iPhone can we set the lock screen, wallpaper and ringtone programmatically? If Yes, then please let me know how to set them?
ios
  • 6,134
  • 20
  • 71
  • 103
23
votes
1 answer

Does anybody know a way to add entitlement to iOS application for non jailbroken device?

Some background iOS operation system has a "entitlement" notion . Generally speaking, it's a permission which is granted to an application. Other system services and apps can check for this permission to allow/deny execution of some…
Victor Ronin
  • 22,758
  • 18
  • 92
  • 184
21
votes
4 answers

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

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…
elp
  • 8,021
  • 7
  • 61
  • 120
20
votes
6 answers

Turn off display in iPhone OS (iOS)

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!
nitsky
  • 221
  • 1
  • 2
  • 5
20
votes
3 answers

Lock iOS app in single app mode programmatically

Note : I don't want to submit this app to app store. What i want to achieve : I want simple app with one view having two button Lock and Unlock. Lock - This button will lock device. Only this app's screen will show nothing else will be accessible…
Aditya Deshmane
  • 4,676
  • 2
  • 29
  • 35
18
votes
1 answer

Handling private frameworks in Xcode ≥ 7.3

With Xcode 7.3 / iOS 9.3 Apple removed all private frameworks from the iOS SDKs. For research purposes (not App Store!) I need to work with a private framework (namely BluetoothManager.framework, but this is also an issue for any other private…
Michael Dorner
  • 17,587
  • 13
  • 87
  • 117
18
votes
3 answers

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

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…
poorDeveloper
  • 495
  • 2
  • 6
  • 11
18
votes
4 answers

Will apps that use telprompt be rejected

In order to return to app after call, I use telprompt instead of tel. Codes like this: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://10086"]]; Somebody says that it will be rejected by apple because telpromt is not…
Smeegol
  • 2,014
  • 4
  • 29
  • 44
17
votes
2 answers

Dynamically Mocking iOS Dynamic Type System Text Size (UIContentSizeCategory)

I'd like to easily test my app with different selections of system text size, including accessibility sizes. These can be set in the Settings app (Display & Brightness => Text Size or General => Accessibility => Larger Text). The only way I can…
Tim Arnold
  • 8,359
  • 8
  • 44
  • 67
17
votes
2 answers

How to access iOS private APIs in Swift?

How can I call non-public iOS functions and acces non public properies from Swift? Specifically, I would like to use one non-public class in QuartzCore framework. One solution that came to my mind is to create "bridging" Objective-C project that…
Rasto
  • 17,204
  • 47
  • 154
  • 245
17
votes
5 answers

Alternative method for NSURLRequest's private "setAllowsAnyHTTPSCertificate:forHost:"?

My iPhone application was rejected solely for using the (very safe, it seems) private method +setAllowsAnyHTTPSCertificate:forHost: for NSURLRequest. Is there a non-private API to emulate this functionality?
Michael
  • 11,612
  • 10
  • 41
  • 43
1
2 3
33 34