jailbreak

how to get the message when receiving the “kCTMessageReceivedNotification” notification on IOS5

白昼怎懂夜的黑 提交于 2019-12-17 02:38:17
问题 With ios4.x I can use code below to get the message when get the "kCTMessageReceivedNotification" notification CTTelephonyCenterAddObserver( ct, NULL, callback,NULL,NULL, CFNotificationSuspensionBehaviorHold); if ([notifyname isEqualToString:@"kCTMessageReceivedNotification"])//receive message { NSDictionary *info = (NSDictionary *)userInfo; CFNumberRef msgID = (CFNumberRef)[info objectForKey:@"kCTMessageIdKey"]; int result; CFNumberGetValue((CFNumberRef)msgID, kCFNumberSInt32Type, &result);

How to use Springboard Services Framework to use SBSLaunchApplicationWithIdentifier

牧云@^-^@ 提交于 2019-12-14 04:17:00
问题 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. 回答1: 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

How to create an iPhone mach-o file?

ぐ巨炮叔叔 提交于 2019-12-14 03:31:52
问题 How can I create a HelloWorld iPhone mach-o file? I want to test it on my jailbreak iPhone. Help me please!!! 回答1: I found this when I googled around on the web for you. http://mobiforge.com/developing/story/getting-started-with-iphone-development It talks about how to create your first "Hello World" application. 回答2: Here's the documentation for the Mach-O format from Apple: http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/MachORuntime/Reference/reference.html

Should I have to restart the device not only respring to install a tweak for backboardd?

坚强是说给别人听的谎言 提交于 2019-12-14 02:59:40
问题 I make a tweak that works in backboardd, if I just respring after install it, it doesn't work, I have to restart the my iPhone entirely. Are there any other better ways need not restarting device? 回答1: You can execute this in your postinst script if you are installing your tweak as debian package (*.deb) launchctl stop com.apple.backboardd Backboard will restart automatically and cydia-substrate should be able to inject your tweak in it. 回答2: Note: since you say that you're using iOSOpenDev

Get iPhone location in iOS without preference Location Services set to ON

一笑奈何 提交于 2019-12-13 14:33:28
问题 I'm writing a daemon similar to Chris Alvares daemon. I want to get the divice location in background without users permission. If the Location Services preference in Settings is set to ON then I have no problem getting location. For this I'm adding to my executable entitlements com.apple.locationd.preauthorized key with boolean value set to true. The problem is when the Location Services is off. In this case when I want to get the device location a UIAlertView pops up telling the user that

Creating Cydia Logos Tweak, now required respring after installation (How to do)

此生再无相见时 提交于 2019-12-13 13:28:32
问题 I am creating a Logos Tweak for Cydia and i did complete my task, but now i required "Restart SpringBoard" after Installation. Can anybody tell me what i have to do to achieve this like many apps in Cydia store, In which after installation button appears with text "Restart SpringBoard" instead of "Return to Cydia". 回答1: You could do this 2 ways if you are using THEOS, First one (if you do make clean then you will have to redo these steps), Create 2 files in the DEBIAN folder which is located

Respring after installing tweak from Cydia

拟墨画扇 提交于 2019-12-13 13:25:00
问题 I made application and mobilesubstrate tweak using Theos by DHowett. Tweak is a subproject of application. I tested it on my iPhone, everything works fine. Then I made a Cydia repo and loaded my project to it. The problem is when I installing my application-tweak from Cydia, it doesn't respring my iPhone. It just showing button "Return to Cydia". So I have to manually respring my iPhone to make it work. I've got 2 control files in each project, I suggest that I have to change them somehow,

Identify jailbroken device from iOS application [duplicate]

最后都变了- 提交于 2019-12-13 12:23:14
问题 This question already has answers here : How to detect that the app is running on a jailbroken device? [duplicate] (11 answers) Closed 6 years ago . 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

How to launch Siri using scheme url with xcode?

点点圈 提交于 2019-12-13 08:26:15
问题 I need to launch Siri (on a jailbroken device) through the openUrl: method. For example [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"Siri://"]]; 回答1: This isn't possible. Also, Xcode is an IDE - a code editor. It's not a language or a platform. 回答2: There doesn't seem to be any URL Scheme for Siri, so I don't think you can open it that way. Siri is also not a normal App , it's a library that's used by SpringBoard. Anyway, if you want another way to open it, I would try

location not determined using daemon

别来无恙 提交于 2019-12-13 08:22:14
问题 trying to get location using a daemon on ios looked at this CLLocationmanager setAuthorizationStatus doesn't work (jailbreak) but keep getting location not determined i have entitlements set (checked with ldid) got an info.plist where the binary is and added the following keys to clients.plist but still cant get location <key>com.apple.locationd.executable-{binary_path}</key> <dict> <key>Authorized</key> <true/> <key>BundleId</key> <string>{any_random_bundle}</string> <key>Executable</key>