jailbreak

iOS Private API: lock device and power off the screen

房东的猫 提交于 2019-11-27 07:03:30
问题 I'm making an app for jailbreak that lock the device when the user launch the app. I've tried GSEventLockDevice(); from GraphicsServices.framework but this does not work properly because it locks the screen but does not power off the screen. Is there another way to lock the screen without MobileSubstrate ? 回答1: Just as another alternative, check out this answer, which uses SBDimScreen() . You could use that in conjunction with GSEventLockDevice() . It appears that you may now (iOS 5+) need to

iOS touch event notifications (private API)

十年热恋 提交于 2019-11-27 06:56:14
It's possible to simulate touch events on iOS , and you can receive various system wide notifications when in the background using CTTelephonyCenterAddObserver and CFNotificationCenterAddObserver, eg: IOS Jailbreak How do intercept SMS / Text Messages How can I detect screen lock/unlock events on the iPhone? I've yet to find a way to get touch notifications while in the background though. Is there a "touch event" that can be used with CFNotificationCenterAddObserver, a different notification center that can be used, or a completely different approach? I'd be happy with low level touch

iPhone notification when wifi network changes

旧城冷巷雨未停 提交于 2019-11-27 06:48:49
问题 This is for a tweak , so the target is jailbroken devices, and not the app store. I have tried hooking different methods in the SBWiFiManager but they either are called when the wifi strength changes (so continuously) or after quite delay after the network has changed. Is there any other way to get a notification (or another method to hook) went the wifi network changes? I know you can get the current SSID with public APIs now, but I need to be told when it changes. 回答1: One way to do this is

iOS How can I use UIApplication launchApplicationWithIdentifier which is in private APIs?

大兔子大兔子 提交于 2019-11-27 06:18:28
问题 [EDIT]I've jb my device. And I found the latest private APIs iOS-Runtime-Headers on Github. I want to use private APIs in my app. I found kennytm/iphone-private-frameworks on github but it only support iOS 3.x. While I'm working on iOS 5.0.1. I also found some codes on Google iPhone development tools. But it really make me confused. I'm new to iPhone development. What should I do to use [[UIApplication sharedApplication] launchApplicationWithIdentifier:@"com.a.b" suspended:NO]; Someone can

Return a list of running background apps/processes in iOS

本秂侑毒 提交于 2019-11-27 05:22:26
I'm working on a jailbreak app, and want to send SIGKILL messages to specific apps that may be running on a user's device (with their permission, of course). Google is not turning up anything for me. Is there a plist or array that keeps track of running processes? Thanks for any help you all can give, you're wonderful! Make a sysctl API and retrieve the kinfo_proc structure http://fxr.watson.org/fxr/source/sys/kinfo.h?v=DFBSD . This struct has information about running processes.You can run it in a loop until to get info about all processes. Here is a code snippet- extend it to get info of all

can Jailbroken iphone used for development

a 夏天 提交于 2019-11-27 05:19:49
问题 We have paid developer account for iphone development and we have 2 iphones one jail broken and other one non jail broken. We have registered both phones for development and got provisioning profile. We can use non jailbroken phone for development. But we try to use jail broken phone for development we get message Error starting executable no Provisioned iphone device is connected. But We can test application on it using ad hoc profile. Does this means jailbroken devices can not be used for

pull notification locally on jailbroken device

吃可爱长大的小学妹 提交于 2019-11-27 04:30:50
问题 Since the iOS framework doesn't allow local notifications to execute code before they are posted, I'm looking for a way to achieve it on a jailbroken device. Is there built in functionally on a jailbroken device to schedule code execution with no need for the user to interact? The code should download updates and determine if the user should receive a notification. I don't want to use push notifications, which requires an external server to push them to the user. Update Well, I've managed to

Intercepting phone call - iPhone (correct method to hook in CoreTelephony)

时光毁灭记忆、已成空白 提交于 2019-11-27 04:05:08
问题 I am new to the jailbreak tweak development scene. I am trying to figure out the appropriate method to 'hook' so I can intercept an incoming call (and then run some code). I have dumped the header files of CoreTelephony framework however no methods seem obvious to hook. I have tried: - (void)broadcastCallStateChangesIfNeededWithFailureLogMessage:(id)arg1; - (BOOL)setUpServerConnection; but neither have worked. By worked I mean - get called when the iPhone receives a call. Any pointers as to

Detect screen on/off from iOS service

梦想与她 提交于 2019-11-27 03:54:19
I am developing a network monitor app that runs in background as a service. Is it possible to get a notification/call when the screen is turned on or off? It exists in Android by using the following code: private void registerScreenOnOffReceiver() { IntentFilter filter = new IntentFilter(Intent.ACTION_SCREEN_ON); filter.addAction(Intent.ACTION_SCREEN_OFF); registerReceiver(screenOnOffReceiver, filter); } screenOnOffReceiver is then called when screen is turned on/off. Is there a similar solution for iOS? Edit: The best I've found so far is UIApplicationProtectedDataWillBecomeUnavailable (

Is there a way to programmatically restore my iPhone to factory settings?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 03:39:10
问题 I am developing for a jailbroken app and I don't care if it's rejected by the App store. I have found a way to completely wipe out my iPhone using this way Is there a way to completely wipe out iPhone data programatically?. There is a problem with this method however. It makes my iphone worthless and I have to recover it using itunes. I just want to factory restore my iphone programmatically. 回答1: There is a private API SBDataReset in SpringboardServices private framework. It wipes all data.