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

iOS 7, private API to disconnect calls CTCallDisconnect does not work

I have been using a private API (for personal use not on the App Store) to block incoming calls using the steps outlined in this Stackoverflow post How can I use private APIs to block incoming calls in an iOS application? I recently upgraded to iOS…
evalsyrelec
  • 1,553
  • 1
  • 12
  • 15
7
votes
1 answer

How to check whether device is enrolled in MDM

I am looking for an API which will allow me to check whether MDM profile is installed on a device. It won't be submitted to AppStore, so private API are fine with me. However, it should work on jailed phone (so jailbreak solutions aren't…
Victor Ronin
  • 22,758
  • 18
  • 92
  • 184
7
votes
1 answer

Releasing an IOSurface

This question is an extension to: Link-1: Creating an image out of the ios surface and saving it Link-2: Taking Screenshots from iOS app - emulating Display recorder (query on the internals) (Refer Link-1) I have the code for taking screenshots in…
Hrishikesh_Pardeshi
  • 995
  • 4
  • 19
  • 45
7
votes
2 answers

Where do I find iOS Obj-C code to scan and connect to wifi (private API)

I need a sample obj-c code that scans and connects to wifi. Private API is ok, I'm not going to publish the app to appStore. I found the app in cydia called "WiFiFoFum" that can scan and connect, unfortunately I can't find the source code of that…
almas
  • 7,090
  • 7
  • 33
  • 49
7
votes
1 answer

iOS How to use private API?

I don't want to submit this app to AppStore. I've tried for many times but met so many problems :( I use class-dump to get all the header files of UIKit.framework. In the UIApplication.h generated by class-dump, I saw the method I want to…
wyp
  • 869
  • 3
  • 11
  • 23
6
votes
2 answers

Programmatically send iMessage using private frameworks

Does anyone know if it's possible to directly send an iMessage using a private framework? I tried using CTMessageCenter from CoreTelephony but it'll send an SMS even though my phone can send iMessages.
Alexandre Blin
  • 270
  • 6
  • 13
6
votes
1 answer

iOS: Exit from the app to Home Screen programmatically with gracefully exit with animation?

According to the Technical Q&A QA1561 any way of exiting the app is not recommended. The appropriate way is to allow the user to exit the app on their own, without forcing exit or aborting the app's execution. However, the Microsoft Teams iOS App…
Richard Topchii
  • 7,075
  • 8
  • 48
  • 115
6
votes
2 answers

How can I observe changes to Night Shift on macOS / iOS?

I'm looking for a way to determine when Night Shift has been enabled or disabled and perform an action based on that. I'm currently using the CBBlueLightClient header in the CoreBrightness framework to control Night Shift. Here's a partial header…
Nate
  • 473
  • 3
  • 14
6
votes
1 answer

Accessing SIM info programmatically in iPhone

I am trying to build an app that needs access to Sim cards unique Identity for iOS devices. Is it possible to get the details like ICCID and IMSI of SIM cards using any Private APIs
6
votes
2 answers

iOS data counters - using private API

I'm developing an App that is not intended for App Store so I can use private APIs. What I'm trying to accomplish is getting data information counters per specific applications - if possible, separately for WIFI and Cellular network usage. I am…
user1041311
6
votes
2 answers

How to turn on VPN from iOS app? (Private APIs OK)

When an iOS Device goes into "sleep mode", even a configured VPN is, unfortunately, turned off. A customer that wants an app for his iPad has to use VPN for security, so anything must be done through VPN. The app has to synchronize a lot, but the…
Giorgos Ath
  • 1,405
  • 14
  • 16
6
votes
3 answers

how to run background process on the iOS using private APIs to sync email items without jailbreaking the phone

I'm working on an enterprise application, which is similar to contacts, calendar. I would like to sync my calendar and contact even when my application is in background. I'm good to use private API's also, as I'm not going to submit to the app…
shatthi
  • 656
  • 3
  • 10
  • 23
6
votes
1 answer

Is there a private API to be able to detect what is current foreground app on iOS?

I am not planning to send this app to AppStore. It's just an experimental app. So, I am not worried about AppStore approval/rejection. I am looking for a way, how I can determine a) What is the current foreground app (my app will be in the…
Victor Ronin
  • 22,758
  • 18
  • 92
  • 184
6
votes
1 answer

iOS How to use Entitlement.plist to specify property of my app

I'm using Jailbreak + Appsync + iOS5.0.1 device (without a developer license but with some tricks I can run my app on the device) Now I want to use a private API launchApplicationWithIdentifier:suspended:. So I need to…
6
votes
2 answers

Get iPhone color iOS Sdk

iTunes can detect if my iPhone is black or white, so how can I do this in code? I'm thinking it would be a UIDevice thing but I'm not too sure.
Sam Jarman
  • 7,277
  • 15
  • 55
  • 100