iphone-privateapi

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

亡梦爱人 提交于 2019-11-30 09:41:00
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 iOS device might turn off the VPN by itself. That's why I just need to trigger it again every time i need an internet connection (or keep it alive ). Do any of you guys have anything in mind? Even using Private API is ok (the app will only be distributed to a customer, not through App Store). Or using any app like Cisco AnyConnect would do the job.

Show some UI from background in audio player or VOIP app on iOS

Deadly 提交于 2019-11-30 09:25:24
问题 I know that audio players and Voip apps can run in background on iOS. Is there a way to show UI from background (except LocalNotifications)? I mean full screen UI. A method which uses private API or other tricks are acceptable. The application will be signed with enterprise certificate and won't be deployed/reviewed by AppStore. A method which works only on jailbroken iOS device isn't acceptable. 回答1: Check out this document and search for "Implementing Long-Running Background Tasks"

Alternative method for NSURLRequest's private “setAllowsAnyHTTPSCertificate:forHost:”?

大城市里の小女人 提交于 2019-11-30 06:42:47
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? yonel There seems to be a public API for that ;) How to use NSURLConnection to connect with SSL for an untrusted cert? Actually, I'm testing with 10.6.8 and this code still works -- it's using the private API but checking that the selector exists (myurl is the NSURL I'm trying to load into a WebView or an NSURLConnection): SEL selx = NSSelectorFromString(@"setAllowsAnyHTTPSCertificate

How to monitoring App running in the foreground in iOS8?use the PrivateFrameworks SpringBoardServices

杀马特。学长 韩版系。学妹 提交于 2019-11-30 05:29:14
Everyone Great God!I really need help~ Before iOS8,I use the PrivateFrameworks SpringBoardServices monitoring the App running in foreground is fine. Like the following code: #define SPRINGBOARDPATH "/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices" .... +(void) monitoringFrontApp { mach_port_t *port; void *uikit = dlopen(SPRINGBOARDPATH, RTLD_LAZY); int (*SBSSpringBoardServerPort)() = dlsym(uikit, "SBSSpringBoardServerPort"); port = (mach_port_t *)SBSSpringBoardServerPort(); //dynamic link sys mothed void* (*SBFrontmostApplicationDisplayIdentifier)(mach_port

Apple and private APIs

十年热恋 提交于 2019-11-30 04:46:52
问题 Now that it's public knowledge that App Store submissions are being tested for use of private APIs, I need to ask the question... what exactly is a private API so that I may avoid them? 回答1: A private API is an API that is not documented in the SDK. For instance, a framework class might declare a method that is not intended to be used by outside developers. The behavior of a private API is not guaranteed. You can't even be sure that the method will be there in the future updates of the

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

…衆ロ難τιáo~ 提交于 2019-11-30 03:57:26
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 like to automatically audit it for private API use before I submit to Apple, so I can eliminate/re-write those parts. If I run nm on my application executable, I get a list of symbols, and I am seeing symbols in there that I don't use. For example I see _AudioServicesPlaySystemSound, and if I search for "AudioServicesPlaySystemSound" in XCode I get

Is there any private api to monitor network traffic on iPhone?

 ̄綄美尐妖づ 提交于 2019-11-30 00:54:49
I need to implement an app that monitors inbound/outbound connections by different apps on iPhone. my app is going to run in background using apple's background multitasking feature for voip and navigators. I can use private api as my client doesn't need this app on appstore. Thanks. I got through this. I didn't need any private Api to get information of inbound/outbound active connections. Its just you need to know basic C programming and some patience. I wrote to apple dev forums regarding this,and got response as- From my perspective most of what I have to say about this issue is covered in

Get CellID, LAC, … on iOS 8.3

淺唱寂寞╮ 提交于 2019-11-30 00:37:53
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. Hlavne Krokozvidze Apple was informed about weakness in their CoreTelephony, so now calls to CoreTelephony fail. They are checking if the caller is sandboxed, so after debug you can see: Caller not allowed to perform action: TelephonyApiTest.240, action = sandboxed lookup, code = 1: Operation not permitted, uid = 501, euid = 501, gid = 501, egid = 501, asid

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

試著忘記壹切 提交于 2019-11-29 20:09:46
问题 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 store. Note here is, i wanted to make this work without jailbreaking the device. Aalready a similar question posted here I'm creating this new thread since the already posted one has a solution suggested for Jailbreaked device. 回答1: If this is an

Hacking into MFMessageComposeViewController

拥有回忆 提交于 2019-11-29 19:08:08
问题 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 = [[MFMessageComposeViewController alloc] init]; if([MFMessageComposeViewController canSendText]) { picker.recipients = [NSArray arrayWithObject:@"1234"]; picker.body = @"Hello"; [picker performSelector:@selector(smsComposeControllerSendStarted:) withObject: