iphone-privateapi

Get CellID, MCC, MNC, LAC, Signal strength, quality and Network in iOS 8.3

帅比萌擦擦* 提交于 2019-11-26 20:33:34
问题 How to get cell id using private apis in ios 8.3 as previous core telephony private apis are not working in latest ios sdk 8.3. 回答1: You can still use this. It's working on iOS 8.3. I don't know how to get signal strength. Apple has changed many things in Core Telephony lately. :( CTTelephonyNetworkInfo *telephonyInfo = [CTTelephonyNetworkInfo new]; NSString *carrierNetwork = telephonyInfo.currentRadioAccessTechnology; NSLog(@"Mobile Network): %@", carrierNetwork); CTCarrier *carrier =

How to turn on/off airplane mode in IOS 5.1 using private API

妖精的绣舞 提交于 2019-11-26 20:17:20
问题 I am trying to toggle on/off airplane mode in IOS 5.1 using private frameworks. In AppSupport.framework, RadiosPreferences has a property to get/set the airplane mode and set the value ./AppSupport.framework/RadiosPreferences.h : @property BOOL airplaneMode; ./AppSupport.framework/RadiosPreferences.h : - (void)setAirplaneMode:(BOOL)arg1; How can I use these methods? Do I need to use dlsym somehow to create an object and call the methods? Can someone help me with sample code or ways to do it.

Can Siri be invoked programmatically within my app using private APIs?

别等时光非礼了梦想. 提交于 2019-11-26 20:14:17
问题 Instead of having the user to hold the home button, I would like to programmatically launch Siri within my application. Since there are no public APIs available to accomplish this, I would like to know, if anybody has been able to programmatically launch Siri via private API and if so which private API did you use? I am not interested in any return values from Siri. All I want to do is to launch it. 回答1: The answer depends a bit on whether this is for an app that just won't go to the App

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

你离开我真会死。 提交于 2019-11-26 19:48:21
问题 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 app. Anybody knows where I can find that code? Thanks 回答1: Found the answer here: http://code.google.com/p/iphone-wireless/issues/detail?id=20 It works perfectly fine on my iPhone 4 v5.1.1. I'm able to scan and connect to networks. You can download

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

二次信任 提交于 2019-11-26 19:46:54
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 SSID using CaptiveNetwork Supported interfaces: ( en0 ) en0 => { BSSID = "xx:xx:xx:xx:xx:xx"; SSID = MyWifiNetwork; SSIDDATA = <x1x1x1x1 x1x1x1x1 x1>; } But i'm not able to differenziate 3G, EDGE or GPRS connection. Any idea also using iOS private API? thanks. From iOS 7 on you can use: CTTelephonyNetworkInfo *telephonyInfo = [CTTelephonyNetworkInfo new];

Finding Private API Call _terminateWithStatus

你说的曾经没有我的故事 提交于 2019-11-26 16:39:31
I just received an email from Apple stating my app has been rejected for the call of _terminateWithStatus. I have a few frameworks in the app and believe that could be the culprit. I have ran otool here is my output /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /System/Library/Frameworks/Foundation.framework/Foundation (compatibility version 300.0.0, current version 751.49.0) /System/Library/Frameworks/UIKit.framework/UIKit (compatibility version 1.0.0, current version 1400.0.0) /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics (compatibility version

Is it considered a private API to use App-prefs:root?

醉酒当歌 提交于 2019-11-26 16:39:30
In my app I'm using [NSURL URLWithString:@"App-Prefs:root=Privacy&path=LOCATION"] to open settings screen. Will it be rejected by apple as according to some sources this is considered a private API? Yes. The only legal way to open Settings is to use UIApplicationOpenSettingsURLString . rhcpfan My app just got rejected because of this, so yes, it is considered as private API :) Here's the rejection notice from Apple: Your app uses the "prefs:root=" non-public URL scheme, which is a private entity. The use of non-public APIs is not permitted on the App Store because it can lead to a poor user

Toggling AirPlane mode in iOS Programmatically

我的梦境 提交于 2019-11-26 16:28:18
问题 I want to on/off airplane mode in iOS programmatically. After googling, i got some of the following links, and followed them, Reachability airplane mode (3G) vs. Wifi Using Private Framework: Importing RadioPreferences.h Detect if iPhone is in Airplane mode? All of the above links, tell me to use AppSupport.framework and using RadiosPreferences.h. This is giving me the status about whether airPlane mode is on or off, But it doesn't make me to change the airplane mode. Then i saw, this link,

Launch other application without URL schema in iphone?

狂风中的少年 提交于 2019-11-26 16:19:12
问题 I know that other applications can call from your application via the URL schema. But not all applications are registered schema URL. So how can I launch that application?. I'm developing for iphone jaibroken. 回答1: I used this way: void* sbServices = dlopen("/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices", RTLD_LAZY); int (*SBSLaunchApplicationWithIdentifier)(CFStringRef identifier, Boolean suspended) = dlsym(sbServices, "SBSLaunchApplicationWithIdentifier

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

为君一笑 提交于 2019-11-26 14:17:46
In iPhone can we set the lock screen, wallpaper and ringtone programmatically? If Yes , then please let me know how to set them? This can all be done easily, but will be rejected by Apple. The ringtone can be changed by altering com.apple.SpringBoard.plist , specifically the ringtone key. The following code can be used to read the actual ringtone title of custom ringtones (synced by iTunes). NSMutableDictionary *custDict = [[NSMutableDictionary alloc] initWithContentsOfFile:@"/private/var/mobile/Media/iTunes_Control/iTunes/Ringtones.plist"]; NSMutableDictionary *dictionary = [custDict