jailbreak

Using launchd on IOS to restart app

六月ゝ 毕业季﹏ 提交于 2019-12-05 00:15:17
问题 I am using some iPads in a museum exhibition, running an app developed by others. Even though we've covered the Home button, I'm finding that occasionally the app crashes, leaving the user at the Home screen. From here they can access other unauthorised apps. The museum is not averse to jailbreaking the iPad if that will give us the solution we require, so I have been doing some research into the idea of using launchd with the KeepAlive tag and putting the .plist file into the /Library

How to communicate between applications in iOS?

别等时光非礼了梦想. 提交于 2019-12-04 21:46:13
Before we can use CFMessagePort , but now it's invalid for iOS7 and above, is there any replaced methods? I tried CFMessagePort when hooking the constructor of UIApplication in the jailbreak environment, but in most of the apps, it can't CFMessagePortCreateLocal successfully, it just return NULL.Am I wrong somewhere? static void setupUIApplicationMessagePort() { NSString *identifier = @"com.foo.foo.UIApplication"; CFMessagePortRef local = CFMessagePortCreateLocal(NULL, (__bridge CFStringRef)identifier, callBackForUIApplication, NULL, NULL); if (local) { NSLog(@"local OK: %@", local);

Identify jailbroken device from iOS application [duplicate]

懵懂的女人 提交于 2019-12-04 21:18:30
This question already has an answer here: How to detect that the app is running on a jailbroken device? [duplicate] 11 answers I am developing an iPhone application which is used for business purposes and it is storing many number of records in SQlite database. So my client don't want the app to run on the jailbroken devices. So how to identify the jail broken devices during the app launch and preventing the user from proceeding further by showing some message. Thanks in advance. Tarun Chaudhary You can detect through code that if the app is running on a jail broken device or not. Through that

How to hook NSURLSession methods with theos?

半腔热情 提交于 2019-12-04 20:13:19
I created a tweak project using rpetrich's theos and wanted to hook NSURLSession methods but the hooks don't seem to get invoked? Why? This is my Tweak.xm code: %hook NSURLSession - (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler { NSLog(@"testhook dataTaskWithRequest:completionHandler:"); return %orig(request, completionHandler); } - (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request { NSLog(@"testhook dataTaskWithRequest"); return %orig(request); } %end

How to use Springboard Services Framework to use SBSLaunchApplicationWithIdentifier

风格不统一 提交于 2019-12-04 19:34:36
I would like to use the Springboard services framework to make use of the following code. SBSLaunchApplicationWithIdentifier(CFSTR("com.apple.preferences"), false); However when I download the header files and use it in my project it won't build. Please let me know how to make this work. What exactly are you planning on using that method for? I was under the impression it was for launching an application from a daemon? There are other ways to launch an application quite easily. The most reliable I have found is to use the display stacks to launch the application properly. Other methods of

How to directly make a phone call with private API CTCallDial()?

China☆狼群 提交于 2019-12-04 19:07:56
in Iphone,How to directly make a phone call with private API CTCallDial()? Mainly because I don't know the specific parameters of CTCallDial. 1) Link against CoreTelephony.framework 2) Define like extern "C" id CTCallDial(NSString * number); and use like: CTCallDial(@"0123456789"); (returns the CTCallRef created, can be safely casted to id (CTCall *)) 来源: https://stackoverflow.com/questions/10207042/how-to-directly-make-a-phone-call-with-private-api-ctcalldial

How to hook methods of MPIncomingPhoneCallController?

怎甘沉沦 提交于 2019-12-04 18:37:40
I want to hook methods of class MPIncomingPhoneCallController in iOS 5 to do something when a call comes. I use Class _$MPIncomingPhoneCallController = objc_getClass("MPIncomingPhoneCallController"); MSHookMessage(_$MPIncomingPhoneCallController, @selector(updateLCDWithName:label:breakPoint:), (IMP) &Hook_LCD, "pre_"); to hook updateLCDWithName:label:breakPoint: , but it failed. How can I do this? Class you are trying to hook is located in IncomingCall.serviceBundle which gets loaded in SpringBoard only when there is incoming call. To determine when it's actually loaded you need to hook

Using SBSettings Toggles to Turn Things On or Off

房东的猫 提交于 2019-12-04 14:54:26
问题 I've been trying to use SBSettings toggles to turn things on or off--like Airplane Mode, WiFi, SSH, etc--but I just can't figure out why my code works for some of these toggles and not all. Granted, I'm only talking about "simple" toggles; not toggles that bring up their own window with their own controls like for volume or brightness. I've been able to successfully turn on/off 3G, data, my ringer, the mywi toggle... things like that, but I can't figure why some of the toggles--Airplane Mode,

How to launch an APP in background in iOS 6.x silently

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 14:38:01
We want to launch an APP silently in iPhone without bring this APP to the Foreground. In iOS 5.x we achieve this goal by this code: [(SBApplication*)app setDisplaySetting:0x4 flag:NO]; [(SBDisplayStack*)displayStack pushDisplay:app]; [(SBDisplayStack*)displayStack popDisplay:app]; But, in iOS 6.x there is not SBDisplayStack any more. I did some search but not found any answers. Someone says that SBWorkSpace replaces the SBDisplayStack in iOS 6.x. We use SBAppToAppWorkspaceTransaction to implement but always bring the APP to the Foreground which dose not achieve our goal. Anyone can help me?

Xcode 7.3 - iOS 9.1 - Jailbroken - Please check your setup and try again. (0xE8000022)

倖福魔咒の 提交于 2019-12-04 13:53:45
问题 I'm trying to load my application on my Jailbroken iPhone 6S running iOS 9.1. I previously had an iPhone 5s running some type of iOS 8 and it was also jailbroken , but I did not have any problems running my apps on that. I have tried all solutions for the specific error I'm getting, but it has not helped at all. Also, I did run my application successfully on an iPad for whatever that means. I have tried every solution on this page: Error : The service is invalid iPhone Specs & Related Stuff: