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
11
votes
1 answer

Access list of processes on iOS 9

Since iOS 9, Apple decided to block sysctl that gave a list of running processes (https://developer.apple.com/videos/wwdc/2015/?id=703). After searching private APIs, I found a class named "THIRDPartyApps" that looks exactly what I need (process…
Boobby69
  • 284
  • 3
  • 13
11
votes
1 answer

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

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…
mercury00x
  • 113
  • 1
  • 5
10
votes
1 answer

iOS 7 Private API usage

Yesterday I tried to use Private API within iOS 7 but it doesn't work. The following calls works fine with iOS 6: 1. NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/AppleAccount.framework"]; 2. BOOL success = [b…
MrCoinSiX
  • 571
  • 1
  • 6
  • 13
10
votes
2 answers

How to detect & avoid the use of private APIs in third party libraries

Now that Apple is running some kind of static analysis to automatically check for private API use, a number of people have been caught because of the Three20 library. I use another third-party library (which I compile myself from code) and I would…
Simon Woodside
  • 7,175
  • 5
  • 50
  • 66
10
votes
2 answers

What's the meaning of the Asterisk (*) in the output of [[UIWindow keyWindow] _autolayoutTrace]]

UIWindow has the private method _autolayoutTrace that helps you to find ambigous layouts. It's very nice and convenient and outputs something like this: * - AMBIGUOUS LAYOUT | * | | …
Klaas
  • 22,394
  • 11
  • 96
  • 107
9
votes
4 answers

iPhone demo help: anyone know of a faster screen capture alternative to UIGetScreenImage()?

I'm working on an iPhone app that I'm going to be demo'ing to a live audience soon. I'd really like to demo the app live over VGA to a projector, rather than show screenshots. I bought a VGA adapter for iPhone, and have adapted Rob Terrell's…
Jon G.
  • 276
  • 2
  • 11
9
votes
1 answer

Representing NULL Function Pointers to C Functions in Swift

Consider the private-yet-sort-of-documented Cocoa C functions _NSLogCStringFunction() and _NSSetLogCStringFunction(). _NSLogCStringFunction() returns a function pointer to the C function used by the Objective-C runtime behind-the-scenes for…
JAL
  • 41,701
  • 23
  • 172
  • 300
9
votes
2 answers

iOS: How to get the servicebundle headers for iOS 9?

How do we get/dump the servicebundle headers for iOS 9 (especially the IncomingCall.servicebundle headers)? There are published IncomingCall.servicebundle headers for older iOS versions (e.g.…
jakob.j
  • 942
  • 13
  • 28
9
votes
2 answers

Method swizzling a private framework iOS API

I know there are countless resources on method swizzling. However is it possible to swizzle a method from a private API? The problem is that there are no header files. I would like to swizzle a method from a private class in a PrivateFramework such…
9
votes
5 answers

How to unlock iOS screen programmatically?

I'm currently exploring creating a jailbreak tweak. I want to unlock the phone screen. How is this done? What private API can be used to achieve this on iOS 7?
radj
  • 4,360
  • 7
  • 26
  • 41
8
votes
0 answers

Wifi Signal strength in IOS8

My App used to measure the Wifi Signal strength . For that I have used a private API in iOS7 libHandle = dlopen("/System/Library/SystemConfiguration/IPConfiguration.bundle/IPConfiguration", RTLD_LAZY); But now it seems that Apple has removed it to…
8
votes
1 answer

iOS Detect system volume level change. private API or not? AVSystemController_SystemVolumeDidChangeNotification

Can listening to AVSystemController_SystemVolumeDidChangeNotification NSNotification be considered (during the App Store review process) as using private API? In my application I need to display and update the current volume level. Volume indicator…
8
votes
1 answer

Hacking into MFMessageComposeViewController

I know this is not allowed in real apps in favor of user's privacy and security. But for pure academical purpose I am trying to send a message without presenting MessageComposer UI like this. MFMessageComposeViewController *picker =…
Selvin
  • 12,333
  • 17
  • 59
  • 80
8
votes
2 answers

How to simulate home button press event in iOS 7(Jailbroken)?

How can I simulate the home button press event in iOS 7? I tried, but it only worked at the home screen but not inside the other apps.The problem is mainly about the port, it looks like that if I got the task port of SpringBoard, it works, otherwise…
Suge
  • 2,808
  • 3
  • 48
  • 79
8
votes
4 answers

iOS 7 alternative to CTCall?

In our enterprise iOS app we used CTCallRef CTCallDial(CFStringRef number); to do calls from the app (and be able to hide the caller-id It does not seem to work in iOS 7. Has the API changed there? (I'm fully aware that this is a private API call…
clows
  • 332
  • 5
  • 11
1 2
3
33 34