jailbreak

Get GPS without alert view with ROOT permission(jailbreak)

自作多情 提交于 2019-11-29 08:47:01
how can i get gps without alert view (jailbroken iphone) ? NSString *newText; CLLocationManager * locationManager = [[CLLocationManager alloc] init]; [locationManager startUpdatingLocation]; [locationManager setDesiredAccuracy:kCLLocationAccuracyNearestTenMeters]; CLLocation* location = [locationManager location]; CLLocationCoordinate2D coordinate = [location coordinate]; newText = [[NSString alloc] initWithFormat: @"Your Position : %f %f", coordinate.latitude, coordinate.longitude]; NSLog(@"%@", newText); [CLLocationManager setAuthorizationStatus:YES forBundleIdentifier:@"your app bundle

Bring App to foreground

岁酱吖の 提交于 2019-11-29 08:38:01
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. Nate Yes, you can technically use Xcode for jailbreak development (but you don't have to). If you want your app to be installed outside the normal sandbox, and in /Applications/ , then you'd build

iOS 6.1 Dynamic Library build and link

时间秒杀一切 提交于 2019-11-29 08:21:01
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; } -(void)run{ NSLog(@"KDylibTwo loadded."); } @end In order to test if my library works, after

iOS 5 - CTCallCenter not working for me

99封情书 提交于 2019-11-29 05:21:01
My phone: iOS 5.1.1 Jailbroken using Absynth2 What I'm trying to do: detect an incoming call or when a call is being dialed... Okay here is my code that i placed inside the AppDelegate under didEnterBackground , also tried in didResignActive - i don't get any errors but i also don't get any results.. callCenter = [[CTCallCenter alloc] init]; [callCenter setCallEventHandler:^(CTCall *call) { NSDictionary *dict = [NSDictionary dictionaryWithObject:call.callState forKey:@"callState"]; [[NSNotificationCenter defaultCenter] postNotificationName:@"CTCallStateDidChange" object:nil userInfo:dict];

Taking Screenshots from iOS app - emulating Display recorder (query on the internals)

人盡茶涼 提交于 2019-11-29 05:07:06
I need to create an iOS app which can take screenshots of other apps, videos etc. as a part of an experiment. I am open to using Private API's since I won't be publishing the app to the app store. I could successfully use the method GetUIScreenImage() to take snapshots of the current screen (app screen). However, due to sandbox restrictions I am not able to take screenshots while in the background. I get the error - "Cannot call CreateUIScreenImage() while the app is in background". I referred to this article - How does the iOS app Display Recorder record the screen without using private API?

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

折月煮酒 提交于 2019-11-29 04:55:30
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. Depending on what your "app" is going to do, you can hook MobileSubstrate. This will load with SpringBoard and

How to block incoming SMS in iPhone jailbreak + code

纵然是瞬间 提交于 2019-11-29 04:54:48
I searched SO before asking this question , there is no answers satisfying my needs. So this is my requirement , I have this piece of code for detecting the incoming SMS , but it does not say how to dump these messages. I have successfully blocked the incoming calls but for messages i am not sure how to do this. any help here would be very much appreciated. I am ok in using any private APIs. if ([notifyname isEqualToString:@"kCTSMSMessageReceivedNotification"]) { if ([[(NSDictionary *)userInfo allKeys] containsObject:@"kCTSMSMessage"]) // SMS Message { CTSMSMessage *message = (CTSMSMessage *)

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

这一生的挚爱 提交于 2019-11-29 04:05:32
问题 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 *

Can users modify NSUserDefaults key values in an iOS app?

喜欢而已 提交于 2019-11-29 03:49:33
I have a question about security. I am making an iOS app with in app purchase following this tutorial , and I store what products were bought in NSUserDefaults. That's why I wonder : Can a user with a jailbroken device modify NSUserDefaults key and values for an app? Thank you very much if you know about it. Jer Yes, they can. The user defaults are stored relative to your app directory here: ./MyAppName.app ./Library/Preferences/com.mycompany.MyAppName.plist The plist file is not encrypted or signed, so it can be modified easily: plutil -convert xml1 com.mycompany.MyAppName.plist vim com

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

故事扮演 提交于 2019-11-29 01:15:44
问题 I have $0.99 iOS app and I'm afraid someone would like to crack it. How can I protect my app from crackers? 回答1: 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]; 回答2: 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 回答3: If it