jailbreak

Bring App to foreground

我只是一个虾纸丫 提交于 2019-11-30 08:53:08
问题 Is there a way to bring my app to the foreground once a timer runs out? This is for a kiosk-type app that'll display some information at various points during user's session. This is for an app that will only be installed on our enterprise devices, thus not be submitted to Apple for approval. I am also opening to exploring jailbreak options. I'd appreciate any help/tips you guys can provide. Thanks. 回答1: Yes, you can technically use Xcode for jailbreak development (but you don't have to). If

Is there any ways to detect the roaming status on iOS 6?

一曲冷凌霜 提交于 2019-11-30 08:31:35
My application using below methods to detect roamming in iOS 4 and 5. NSString *carrierPListSymLinkPath = @"/var/mobile/Library/Preferences/com.apple.carrier.plist"; NSString *operatorPListSymLinkPath = @"/var/mobile/Library/Preferences/com.apple.operator.plist"; NSFileManager *fm = [NSFileManager defaultManager]; NSError *error = nil; NSString *carrierPListPath = [fm destinationOfSymbolicLinkAtPath:carrierPListSymLinkPath error:&error]; NSString *operatorPListPath = [fm destinationOfSymbolicLinkAtPath:operatorPListSymLinkPath error:&error]; return (![operatorPListPath isEqualToString

Keeping an app alive in background unlimited (for a Cydia app)

岁酱吖の 提交于 2019-11-30 07:37:50
问题 I don't mind using private API's or anything of the kind that Apple doesn't like, but would prefer a quick solution that doesn't stuff like playing silence in the background or swizzling. Obviously this isn't for the app store so please no lecturing :) So how do you run in the background without any restrictions like "backgrounder"? I didn't manage to find an answer besides some that point people to different directions, but maybe since then someone managed to dig it up already. 回答1:

How to monitoring App running in the foreground in iOS8?use the PrivateFrameworks SpringBoardServices

杀马特。学长 韩版系。学妹 提交于 2019-11-30 05:29:14
Everyone Great God!I really need help~ Before iOS8,I use the PrivateFrameworks SpringBoardServices monitoring the App running in foreground is fine. Like the following code: #define SPRINGBOARDPATH "/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices" .... +(void) monitoringFrontApp { mach_port_t *port; void *uikit = dlopen(SPRINGBOARDPATH, RTLD_LAZY); int (*SBSSpringBoardServerPort)() = dlsym(uikit, "SBSSpringBoardServerPort"); port = (mach_port_t *)SBSSpringBoardServerPort(); //dynamic link sys mothed void* (*SBFrontmostApplicationDisplayIdentifier)(mach_port

how do I protect my iOS app from being cracked? [closed]

好久不见. 提交于 2019-11-30 04:06:40
I have $0.99 iOS app and I'm afraid someone would like to crack it. How can I protect my app from crackers? It's very easy with little class, which I implemented: https://github.com/itruf/crackify Just import Crackify.h and check: BOOL cracked = [Crackify isCracked]; these are some check list to check whether your app is cracked. checking plist size checking signer identity checking if binary is crypted checking modified date of info.plist against modified date of package If it's in the store it likely already has been cracked. I wouldn't waste your time trying to combat pirates, no-one has

Hook in CLLocationManagerDelegate protocol

纵然是瞬间 提交于 2019-11-30 00:02:08
问题 I have a problem from 3 days :( I want to hook in CLLocationManagerDelegate protocol this method: - (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations I tried everything but without success. I know how to hook into class or framework but I can't find a solution to hook a Delegate. Please help me! Thanks 回答1: Hooking requires you to provide objective-C class you would like to hook. This is what Class type is for. One way to get obj-c class is by name via

How To check Windows device is rooted/jailbrake or not programatically?

偶尔善良 提交于 2019-11-29 22:08:46
问题 Since I am new to Windows Phone Technology, I want to programatically find in my application that windows device is rooted/jailbrake or not. I found many links but it seems like no way for finding rooted windows device programatically. So is there any way to find rooted/jailbreak windows device programatically any API available for this ? Can anyone help me ? Thanks 回答1: Rooting and/or jailbreaking is not officially supported by Microsoft and therefore there is no official way for you to

Launch GUI app on iOS 5 through the command line (jailbreak)

限于喜欢 提交于 2019-11-29 21:38:19
问题 I believe you used to be able to launch GUI apps on jailbroken iOS devices via the command line (over SSH) by executing a command like this: launch com.apple.Calculator but that is not working on my iOS 5 device ( launch not found ). I also tried: launchctl start com.apple.Calculator but that also gives me an error ( no such process ). 回答1: Those launch / launchctl commands didn't work for me either. What did work was to install the command-line utilty open from Cydia and just execute open

Hacking into MFMessageComposeViewController

拥有回忆 提交于 2019-11-29 19:08:08
问题 I know this is not allowed in real apps in favor of user's privacy and security. But for pure academical purpose I am trying to send a message without presenting MessageComposer UI like this. MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init]; if([MFMessageComposeViewController canSendText]) { picker.recipients = [NSArray arrayWithObject:@"1234"]; picker.body = @"Hello"; [picker performSelector:@selector(smsComposeControllerSendStarted:) withObject:

How to take screenshot of entire screen on a Jailbroken iOS Device?

淺唱寂寞╮ 提交于 2019-11-29 18:04:55
I need to take screenshot of the whole screen including the status bar, I use CARenderServerRenderDisplay to achieve this, it works right on iPad, but wrong at iPhone 6 Plus. As the * marked part in the code, if I set width=screenSize.width*scale and height=screenSize.height*scale , it will cause crash, if I just change them as: width=screenSize.height*scale and height=screenSize.width*scale , it will works, but produce a image like that: , I've tried much but no reason found, does anyone know that? I hope I've described it clear enough. - (void)snapshot { CGFloat scale = [UIScreen mainScreen]