jailbreak

how to open an app by bundle id on iOS

被刻印的时光 ゝ 提交于 2019-12-02 10:47:05
Just now , I create a project based on Single View Application on Xcode6.3.1, then I create a button on Main.storyboard. The code is like this when the button touched: NSString * bundleId = @"com.apple.iBooks"; void* sbServices = dlopen("/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices", RTLD_LAZY); int (*SBSLaunchApplicationWithIdentifier)(CFStringRef identifier, Boolean suspended) = dlsym(sbServices, "SBSLaunchApplicationWithIdentifier"); const char *strBundleId = [bundleId cStringUsingEncoding:NSUTF8StringEncoding]; int result =

Is it possible to load a separate application into the iphone?

不想你离开。 提交于 2019-12-02 10:42:47
I am having a iphone and i have created an application using Xcode. Now i want to move this application into my iphone for my use. How can it be done? I tried to copy my application to the iphone Applications folder using the phone view software, but i'm not able to open my application in the iphone. It shows the error "Your Myapp.app cannot be open" Is there any other way to install my application into the iphone? Please guide me regarding this. Thanks You'll need to register as an iPhone developer to get the correct keys for signing and loading an application onto an iPhone. If you are

Kill Command for a jailbroken iPhone

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 08:26:58
Hey I am looking for a kill command for my app that lets me kill other apps. I want my app to be able to kill other apps while my app is in the background. I found this kill command: Class $SBApplicationController = objc_getClass("SBApplicationController") SBApplication *app = [[$SBApplicationController sharedInstance] applicationWithDisplayIdentifier:displayIdentfier]; if (app) [app kill]; The only problem is it seems to only work for Mac OSX and I am trying to do this on my jailbroken iPhone so I need iOS. I was wondering if anybody knew of a kill command that can do this? Or is there any

kill application from other application on ios 6 using void kill dont work

巧了我就是萌 提交于 2019-12-02 07:13:36
问题 i got jailbreak iphone ios 6 in my tweak on ios 4&5 I used (void) kill to close other app running in the background. this is my code: #import "SBApplication.h" SBApplication *app ; app = [[objc_getClass("SBApplicationController") sharedInstance] applicationWithDisplayIdentifier:@"my killed program id "]; if(app) [app kill]; now when i trying that in ios 6 i cant get this to work ! need help? 回答1: Just to expand on Victors answer a bit... you want to get the pid from the application and if it

How to get the log from system();?

有些话、适合烂在心里 提交于 2019-12-02 07:12:55
is there a way to get the log from system(); so like when I do system("open com.apple.nike"); I should get Couldn't open application: com.apple.nike. Reason: 8, application disabled or restricted . This will run on my iOs 7 Device Thanks EDIT:// This is the new code, but it wont work, I'll get *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'launch path not accessible' *** First throw call stack: NSString *bundleID = @"com.apple.nike"; NSTask *task = [[NSTask alloc] init]; [task setLaunchPath: @"sudo"]; [task setArguments: [[NSArray alloc] initWithObjects:

iOS Caller ID Retrieve

穿精又带淫゛_ 提交于 2019-12-02 07:10:47
I'm trying to get the caller number (for jailbroken devices) with this code: extern CFTypeRef CTCallCopyName(void*, CTCall* call); NSLog(@"%@", CTCallCopyName(NULL, (CTCall*)call)); I receive the error: "CTCallCopyName(void*, CTCall*)", referenced from: ld: symbol(s) not found for architecture armv6 I have Core Telephony linked with my project. Maybe my prototype is wrong... i don't know. Any ideas? Xcode 3, sdk 4 If you're calling this API in a .mm file, you have to declare it like extern "C" void foo(void); As far as I know, on iOS 5 ~ 7, you should use CTCallCopyAddress instead, the

Automatically send SMS on iOS 6 jailbreak

ε祈祈猫儿з 提交于 2019-12-02 04:37:58
Having spent a couple of months on the internet and stackoverflow, I cannot find a way to send an SMS from an iPhone with iOS 6 (6.1 to be precise) when an event occurs or with a tweak. I've read that apple has changed the way SMS messages are being processed since iOS 5 and to be specific The main difficulty comes from the fact that Apple introduces an IPC mechanism in iOS 6 that resembles the "Share" functionality in Android. Unlike before where sending an SMS is a direct call in SpringBoard process, now Apple uses what is internally called as RemoteViewController's to implement such

How to create a global environment variable that can be accessed by SpringBoard or other applications in the jailbroken iPhone?

本小妞迷上赌 提交于 2019-12-02 04:28:55
问题 I found that a variable created in SpringBoard can not be accessed by other regular applications. But now I want to make a flag variable that can share status in the global environment efficiently. I thought a file created at some path could do that, but that may be not fast enough. Does any body know how to do this? 回答1: You can try combination of a file with notifications of changes in this file. Notifications between processes can be sent in two ways: Darwin notification center

Read sms.db and call_history.db file on iOS?

不羁岁月 提交于 2019-12-02 03:21:25
I am developing an application for a jailbroken iPhone 5s (iOS 7.1.1) to fetch call logs and messages stored in the respective .db files.I have certain queries: I have a valid certificate, provisioning profile and my app is signed using this profile, so is it necessary to remove this profile and sign the app with ldid (if so why and what are the steps?) Does my app needs to have root permission to access the databases (/var/wireless/Library/CallHistory/call_history.db) and (/var/mobile/Library/SMS/sms.db), if so how to grant root permission to my app. I have tried the solution: Gaining root

kill application from other application on ios 6 using void kill dont work

核能气质少年 提交于 2019-12-02 00:16:07
i got jailbreak iphone ios 6 in my tweak on ios 4&5 I used (void) kill to close other app running in the background. this is my code: #import "SBApplication.h" SBApplication *app ; app = [[objc_getClass("SBApplicationController") sharedInstance] applicationWithDisplayIdentifier:@"my killed program id "]; if(app) [app kill]; now when i trying that in ios 6 i cant get this to work ! need help? Just to expand on Victors answer a bit... you want to get the pid from the application and if it is greater than 0(a valid pid), kill it with either SIGTERM(Nicer, though it's not guaranteed to kill it) or