jailbreak

add GraphicsServices private framework into IOS

梦想的初衷 提交于 2019-12-06 07:38:59
actually I need to lock my iPhone programmatically, I have searched in the internet, also got some ideas, that is, using GraphicsServices.framework and GSEventLockDevices() method.. here is the thing: how can I add a private framework to my project? I knew it's jailbreaking, but no problem. Could anyone help me to add a private framework to Xcode and lock the device programmatically? If you missed to import certain framework means, you may get like this kind of error.. When I met like this kind of problem, i have followed this way.. 1) Select the project in the project navigation window which

Errors while running the Code?

坚强是说给别人听的谎言 提交于 2019-12-06 07:31:23
I am trying to compile and use the following code in a background daemon on a jailbroken iphone. #import <AudioToolbox/AudioToolbox.h> #import <libkern/OSAtomic.h> //CoreTelephony.framework extern "C" CFStringRef const kCTCallStatusChangeNotification; extern "C" CFStringRef const kCTCallStatus; extern "C" id CTTelephonyCenterGetDefault(); extern "C" void CTTelephonyCenterAddObserver(id ct, void* observer, CFNotificationCallback callBack, CFStringRef name, void *object, CFNotificationSuspensionBehavior sb); extern "C" int CTGetCurrentCallCount(); enum { kCTCallStatusActive = 1,

scheduleLocalNotification doesn't work for jailbreak apps?

匆匆过客 提交于 2019-12-06 06:31:47
问题 I have an app that calls scheduleLocalNotification , but it doesn't work when I install it to /Applications instead of /var/mobile/Applications : - (void) doNotify { // this doesn't work when app is in /Applications but does in /var/mobile/Applications UILocalNotification * theNotification = [[UILocalNotification alloc] init]; theNotification.alertBody = @"Finished processing."; theNotification.alertAction = @"Ok"; theNotification.fireDate = [NSDate dateWithTimeIntervalSinceNow:1]; [

AT command with iPhone

99封情书 提交于 2019-12-06 05:52:51
问题 I want to send AT command with my iPhone app but I don't know how to do it. I know AT command can use for blockSMS, sendSMS, etc. Any help? 回答1: If the iPhone is unlocked you can download a program called minicom to talk directly through a port. Here is a link to help you: http://www.letsunlockiphone.com/install-minicom-iphone-4-baseband/ This will show you which ports to talk to in your app to send the At commands Good luck! 来源: https://stackoverflow.com/questions/15357526/at-command-with

Blocking incoming sms in iOS 7

微笑、不失礼 提交于 2019-12-06 05:49:45
I want to write a tweak for jailbroken devices that blocks messages from a phone number(in iOS 7). First I used the second answer of creker in this link for writing the tweak. Here is my code: #import <substrate.h> #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import <libkern/OSAtomic.h> #import "CTMessage.h" #import "CTMessageCenter.h" id(*_processReceivedMessage_orig)(id, SEL, CTMessage*) = NULL; id _processReceivedMessage_hooked(id self, SEL _cmd, CTMessage* msg); %hook IMDService -(void)loadServiceBundle:(NSBundle*)bundle { if ([[bundle bundleIdentifier] isEqualToString:@"com

iphone sqlite static linking?

浪尽此生 提交于 2019-12-06 05:13:36
问题 Anyone out there statically linking sqlite (as opposed to using the dynamic linking)? I am having issues with users with jailbroken phones not having the same version of sqlite that the stock iPhone assumes (and hence causing crashes). I'm assuming that staticly linking a known version of sqlite in my app is the answer... 回答1: I needed to have Full Text support (with FTS3 module) All I did was grab the Sqlite Amalgamation from here: http://www.sqlite.org/amalgamation.html and dropped the .h

How to class-dump AppStore app

我是研究僧i 提交于 2019-12-06 03:47:25
问题 I installed "Class Dump" from Cydia to get application header files. But there is a problem. I can use class-dump in default app. For example, I ran this command: class-dump -H /Applications/MobileSafari.app/MobileSafari -o /Headers/safari and could get header files in "/Headers/safari/". But AppStore app, for example, I ran this command: class-dump -H /var/mobile/Applications/BFF...../Dropbox.app/Dropbox -o /Headers/dropbox and terminal works, but garbled characters appeared (ScreenShot) and

Deploying iOS apps to /Applications from XCode via build phase script? (Jailbroken)

假装没事ソ 提交于 2019-12-06 03:23:30
问题 I'm developing a Cydia app. It's been in development for awhile, and I've never had any problems until recently, when I resumed development after a few months. There are a couple of things that have changed since the last time I worked on it: Upgraded to Lion Moved to Xcode 4 Updated to 4.3.5 on my iPad, iPhone to 5.0 From the research I've done, I've come to the conclusion that there was something "unusual" about my old setup. I've discovered that provisioned apps get put in the "sandboxed

error “ld terminated with signal 6” for theos project after upgrade to Xcode 4.5

爷,独闯天下 提交于 2019-12-06 01:29:08
I'm using https://github.com/DHowett/theos to implement a tweak for jailbroken iphone. I followed http://brandontreb.com/beginning-jailbroken-ios-development-getting-the-tools/ and everything worked fine. Then I upgrade my Xcode to 4.5. Then when compiling any tweak projects, even a hello world project, it failed with following error: Making all for tweak PreferenceLoader... Preprocessing Tweak.xm... Compiling Tweak.xm... Linking tweak PreferenceLoader... collect2: ld terminated with signal 6 [Abort trap: 6] ld(8724,0x7fff78fd2960) malloc: *** error for object 0x7f89b35003f0: pointer being

Install app into jailbroken ios Root’s Applications folder

旧街凉风 提交于 2019-12-06 00:48:53
when i put myapp.app in ios5 root's Applications folder, but it can't work. why? but i find that cydia can work normally. In the main.m add setuid(0); and setgid(0); Build the app normally. Then copy and paste the executable inside the .app and rename it to anything you want, don't rename the original file. Open the original executable file and delete its contents (the contents are now stored in the previously copied and renamed binary). Add this bash script to the empty binary file from 4. : #!/bin/bash dir=$(dirname "$0") exec "${dir}"/<COPIED FILE NAME> "$@" Springboard will run this file