iphone-privateapi

iOS 6.1 Dynamic Library build and link

拜拜、爱过 提交于 2019-12-18 05:13:10
问题 I am trying to create a dynamic library for iOS and load it at runtime. After taking a look at this question and this answer, I have been doing it using iOSOpenDev and deploying everything on my iPhone. The xCode project for the dylib is called KDylibTwo and the files I modiefied are: KDylibTwo.h #import <Foundation/Foundation.h> @interface KDylibTwo : NSObject -(void)run; @end KDylibTwo.m #import "KDylibTwo.h" @implementation KDylibTwo -(id)init { if ((self = [super init])) { } return self;

Using LSApplicationWorkspace in Swift

我怕爱的太早我们不能终老 提交于 2019-12-18 05:08:09
问题 I've added MobileCoreServices.framework to my Xcode project, and have the statement import MobileCoreServices in top of my file. I have the line of code let test = LSApplicationWorkspace.defaultWorkSpace() And xcode said Unresolved Identifier LSApplicationWorkspace I tried cleaning and rebuilding the project. Any ideas? 回答1: Point 1: LSApplicationWorkspace is private api, so if you use this and will upload your app to app store, it will get rejected. Point 2: If you are having any in-house

iPhone private API compiling

时光怂恿深爱的人放手 提交于 2019-12-17 23:21:45
问题 I'm searching through the whole internet since a few hours now, and I just can't find the informations I'm looking for. I would like to mess around with the private apis, see whats possible, etc., but I can't even compile something. So I've got a few pretty basic questions: Do I have to dump the headers? Because I downloaded a sample, where the API is loaded with char *framework = "/System/Library/PrivateFrameworks/..."; dlopen(...); I would like to use the objc-syntax (if possible) rather

Does anybody know a way to add entitlement to iOS application for non jailbroken device?

爱⌒轻易说出口 提交于 2019-12-17 22:46:32
问题 Some background iOS operation system has a "entitlement" notion . Generally speaking, it's a permission which is granted to an application. Other system services and apps can check for this permission to allow/deny execution of some functionality. These entitlements should be specified in a provisioning profile. System applications have a lot of different entitlements. User application are limited to just couple of entitlements (like access to iCloud or something like that which can be

Alternatives to NSHost in iPhone app

可紊 提交于 2019-12-17 19:01:02
问题 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; } } to retrive my IP Address for a networking app I'm working on, however I'm aware that NSHost is a private API that will be rejected. Can anyone help me with working this code to produce the same results without using NSHost? I'm not really sure where to start. EDIT:

Will apps that use telprompt be rejected

徘徊边缘 提交于 2019-12-17 18:37:00
问题 In order to return to app after call, I use telprompt instead of tel. Codes like this: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://10086"]]; Somebody says that it will be rejected by apple because telpromt is not the public URL Scheme. But I didn't find a certain answer - Yes or No. Can anybody help me? 回答1: You may want to have a look at handleopenurl.com an index for iOS URL schemes. I do not know telprompt. Why not just use tel://10086? 回答2: I noticed that

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

亡梦爱人 提交于 2019-12-17 15:51:44
问题 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 AppStore. I am using the GSEvent structure as suggested by KennyTM with some minor modifications for IOS 5/6. I am able to send touch events and other events to the Springboard by sending GSSystemEvents. I need to be able to send similar events to other

detect hotspot enabling in iOS with private api's

左心房为你撑大大i 提交于 2019-12-17 10:58:20
问题 ok so i want to detect weather the user has enabled hotspot/tethering or not in a iOS device. I can use private api's knowing it wont make it to the app store. i was trying to go through private api's list/ runtime headers but there are too many to decide which might be helpful. or if i could get to know where UIApplicationWillChangeStatusBarFrameNotification gets fired from in private api's(probably called for active call and activated hotspot etc) i tried this detect personal hotspot and

Getting MAC address of a bluetooth using BluetoothManager private framework

馋奶兔 提交于 2019-12-14 03:47:41
问题 I'm trying to implement device discovery using bluetooth in IOS 5.0.1 iPhone 4S. I'm using the private framework BluetoothManager. My code is: - (IBAction)searchForDevices:(id)sender { [self.indicator setHidden:NO]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(bluetoothAvailabilityChanged:) name:@"BluetoothAvailabilityChangedNotification" object:nil]; btCont = [BluetoothManager sharedInstance]; [[NSNotificationCenter defaultCenter] addObserver:self selector:

Get iPhone location in iOS without preference Location Services set to ON

一笑奈何 提交于 2019-12-13 14:33:28
问题 I'm writing a daemon similar to Chris Alvares daemon. I want to get the divice location in background without users permission. If the Location Services preference in Settings is set to ON then I have no problem getting location. For this I'm adding to my executable entitlements com.apple.locationd.preauthorized key with boolean value set to true. The problem is when the Location Services is off. In this case when I want to get the device location a UIAlertView pops up telling the user that