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

How to check if your iOS app code is using an api that is not allowed on the app store?

I know that there are some restricted api's or code that are not allowed to be in your app when you submit it to the app store. How do you know what they are? Is there a way to check your app before you submit it to ensure you have not used such…
Rahul Iyer
  • 19,924
  • 21
  • 96
  • 190
5
votes
0 answers

Simulating System Wide Touch Events on iOS

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…
user293895
  • 1,465
  • 3
  • 22
  • 39
5
votes
1 answer

Dynamically Calling Private API Without Being Noticed by the App Store

Recently I heard quite a few rumors (or true stories?) on how some Chinese iOS developers succeeded in fooling the App Store private API checking system and have their dynamically-calling-private-api apps approved and available in the app store. So…
Di Wu
  • 6,436
  • 3
  • 35
  • 51
5
votes
1 answer

Device pairing using private iOS BluetoothManager framework

I've been messing around with the private BluetoothManager framework in iOS 5.0 and I've been able to successfully start/stop Bluetooth and get a list of devices, however I can't figure out how to initiate pairing. The closest I've come is to try to…
Stoph
  • 693
  • 1
  • 5
  • 20
5
votes
2 answers

How to use bzip2 format in iOS? Apple tell me bzBuffToBuffDecompress is private APIs

Today I submit my iOS App to app store, but soon I got a mail from apple, it said that, cannot be posted to the App Store because it is using private or undocumented APIs: Private Symbol References BZ2_bzBuffToBuffDecompress As you know, as…
Tinyfool
  • 1,460
  • 2
  • 18
  • 40
5
votes
0 answers

Using private API to enable personal hotspot in ios

I am using iOS runtime header to enable hotspot in ios. Link NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/Sharing.framework"]; BOOL success = [b load]; Class…
shakshi
  • 231
  • 1
  • 2
  • 9
5
votes
3 answers

Alternatives to NSHost in iPhone app

I'm currently using this code NSHost *host = [NSHost hostWithAddress:hostname]; if (host == nil) { host = [NSHost hostWithName:hostname]; if (host == nil) { [self setMessage:@"Invalid IP address or hostname:"]; return; …
David26th
  • 401
  • 2
  • 12
  • 26
5
votes
2 answers

Getting the MCC and MNC by means of CoreTelephony.framework private API in Objective-C

I need to obtain MCC and MNC code for the current country (NOT from the class CTCarrier for the SIM home country). I use private API for CoreTelephony.framework. On the my device all works correct. But on the other devices in the method…
Ryhor
  • 51
  • 4
5
votes
2 answers

Can you hook into system function calls in iOS using private APIs?

Is it possible to hook into system function calls in iOS using private APIs on a non-jailbroken device? From what I've seen it's doable on jailbroken devices using MobileSubstrate's MSHook. What I'd like to accomplish is to have an app that would…
bsniezul
  • 53
  • 1
  • 3
5
votes
3 answers

Private api's list

Possible Duplicate: iOS Private API Documentation Is there any link available that gives the list of private api's used in iPhone. My objective is to access the SMS, calendar, audi, video's from non jailbroken iPhone. I searched in the following…
Mohammed Sadiq
5
votes
2 answers

Connecting to other Bluetooth Device by BeeTee app

I need to implement a self bluetooth app to connect with all bluetooth devices to iPhone. I know it is not possible with CoreBluetooth framework. I use private API and added header files of DeviceManager and BluetoothManager to private frameworks…
Fa.Shapouri
  • 988
  • 2
  • 12
  • 30
5
votes
2 answers

Using the ImageCaptureCore framework on iOS

I'm using the ImageCaptureCore framework to control a DSLR camera connected via USB in a Cocoa application. Now I'd like to do the same on iOS (camera connected to an iPad via a "Lightning to USB Camera Adapter") and wondered which framework to use.…
tilo
  • 14,009
  • 6
  • 68
  • 85
5
votes
3 answers

Programatically access (your own) iCloud data from a desktop or from a server?

I want to access and manipulate, FROM A SERVER OR FROM MY DESKTOP MACHINE, my iPhone's iCloud data programmatically. For example... http://www.phonesheriff.com/investigator.html Does anyone know if it is possible? Is there any API or mechanism by…
zzzzz
  • 1,209
  • 2
  • 18
  • 45
5
votes
1 answer

iOS SpringBoardServices get UIApplication

using otool -tV SpringBoardServices command, I am able to get C functions in SpringBoardServices framework binary.. I can see SBFrontmostApplicationDisplayIdentifier which will give me id of the foremost app. Can this id be used to get…
TorukMakto
  • 2,066
  • 2
  • 24
  • 38
5
votes
1 answer

get IMEI on iPhone with CoreTelephony?

I have tried the accepted answer of How to get IMEI on iPhone? but I got an empty string. I saw somebody suggested to use CoreTelephony framework, but I am not sure how to use it to obtain the IMEI. Any suggestion on how to use this private API?
user2249510
  • 53
  • 1
  • 4