iphone-privateapi

Use GSEvent to send touch event,but it's invalid

感情迁移 提交于 2019-12-13 12:46:58
问题 I code to send a touch event to my app by GSEvent,get mach_port_t by GSCopyPurpleSystemEventPort(). the sending function was launched after the ApplicationDidFinishLaunch:option have completed.the app is UIControlView app. code as follow: void handleMouseEventAtPoint(CGPoint point, int buttons) { // NOTE: Must store button state for comparision, port for // mouse dragging and button up static int buttons_; static mach_port_t port_; int diff = buttons_ ^ buttons; bool twas = ((buttons_ & 0x1)

ios 8 periodic background process even after app termination

自闭症网瘾萝莉.ら 提交于 2019-12-13 06:00:33
问题 NOTE: This app I am working on is completely for my own usage and will not be on app store so please don't give answers referring that. I want my app to do some process in background or after termination (double tap the home button and swipe the app from applications multitask) every few minutes. The process is very very light and quick so it won't drain the battery. This process shouldn't require internet connection. I have seen some answers here like and I will explain what are the problems

How to launch Applications without URL Schemes and without touching the icon on a non jailbroken iDevice?

房东的猫 提交于 2019-12-13 02:27:08
问题 I like to build an app to view specific apps without URL scheme I have heard about a Framework called SpringBoardServices but there is always a Linker Error As far I use this code with the SpringBoardServices.h file SpringBoardServices.h: #define SPRINGBOARDSERVICES_H #if __OBJC__ #if __cplusplus extern "C" { #endif #include <CoreFoundation/CoreFoundation.h> #include <Availability.h> mach_port_t SBSSpringBoardServerPort(); #pragma mark - #pragma mark Application launching /// Launch an

UIEventSubtype missing elements

隐身守侯 提交于 2019-12-13 01:46:46
问题 The enum UIEventSubtype (iOS UIKit Framework) contains events such as play, pause, next, seek, etc. However, the iPod Access protocol contains numerous other events, such as select, up, down and back (think iPod with clickwheel). The iPod app on iOS can receive these other events and respond accordingly (move selection up/down/back in playlists), but developer apps don't have seem access to these controls. Does anyone know a way to receive these additional events in an iOS app (for jailbreak)

iOS6 toggle WiFi on non-jailbroken device

我只是一个虾纸丫 提交于 2019-12-12 22:19:53
问题 I am developing an in-house iOS application ( NOT FOR APPLE STORE , so I am happy to go for private API) and I would like to be able to toggle the wifi on or off programmatically. The reason for why I want to do this is that with some WiFi routers whenever the internet connection is interrupted it happens that iPad is not able to restore the WiFi - toggling the WiFi on/off solves the problem however. After searching around for a day on SO and Google I could not find any recent posts. Is it

ios entitlements in jailbreak solution iOSOpenDev

大憨熊 提交于 2019-12-12 14:19:19
问题 I am using MobileWifi private framework to list all access points. Its a jailbroken phone and I use iOSOpenDev to compile and deploy. I included entitlements.xml in Project->BuildSettings->"Code Signing Entitlements" XML has <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>com.apple.wifi.manager-access</key> <true/> </dict> </plist> I still get error _wifi_manager

iOS: Can't get BluetoothManager to work

旧巷老猫 提交于 2019-12-12 09:03:55
问题 Caveat: I know that private frameworks won't fly in the App Store. I'm trying to use the BluetoothManager framework to let me 1) check if Bluetooth is enabled on a device, and 2) if not on, turn it on. I can successfully load BluetoothManager per the instructions found here, but once I've done so, BluetoothManager just doesn't seem to do anything. Calling enabled always returns NO, even when Bluetooth is enabled. Calling setEnabled never changes its state. Absolutely every other

How to suppress “Availability does not match previous declaration” warning

断了今生、忘了曾经 提交于 2019-12-12 03:00:10
问题 I have to use some private functions, like: SCDynamicStoreRef SCDynamicStoreCreate ( CFAllocatorRef allocator, CFStringRef name, SCDynamicStoreCallBack callout, SCDynamicStoreContext *context ) __OSX_AVAILABLE_STARTING(__MAC_10_1,__IPHONE_NA); By default they are not allowed for iphone, so I've changed declaration of them in my .m file. But now it shows "Availability does not match previous declaration" warning. How to suppress this warning? 回答1: With the usual disclaimer that using private

Detecting Private APIs

落爺英雄遲暮 提交于 2019-12-11 19:43:29
问题 What Apple says about Private APIs . How can a user test his/her application if it contains Private API s. What are the steps Apple has suggested users to test there apps for Private API s and other reason for an app could get rejected ? A link or a tutorial would help. note: i have used AppScanner but it crashes when i upload the .app file. (So it doesn't work) 回答1: The best way is to use Apple's validate step after you make an archive. Other than that, if it compiles without calls to KVC