jailbreak

pull notification locally on jailbroken device

五迷三道 提交于 2019-11-27 21:29:43
Since the iOS framework doesn't allow local notifications to execute code before they are posted, I'm looking for a way to achieve it on a jailbroken device. Is there built in functionally on a jailbroken device to schedule code execution with no need for the user to interact? The code should download updates and determine if the user should receive a notification. I don't want to use push notifications, which requires an external server to push them to the user. Update Well, I've managed to create a daemon which launches on start-up and keeps itself running. However, posting notifications

Can users modify NSUserDefaults key values in an iOS app?

淺唱寂寞╮ 提交于 2019-11-27 18:05:00
问题 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 回答1: 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

iPhone “unable to open database file” for call_history.db in xcode app

情到浓时终转凉″ 提交于 2019-11-27 14:33:34
I am trying to access database call_history.db in jailbroken iPhone. I am able to access call_history.db for iPhone 4 with iOS 4.1. But the problem is I am not able to access the database in iPhone 3gs with iOS 3.1.3. When I try to open the database for 3gs I get the following database error: unable to open database file I use different paths for iOS 4.1 and iOS 3.1.3 iOS 4.1 in iPhone 4 - /private/var/wireless/Library/CallHistory/call_history.db and iOS 3.1.3 in iPhone 3gs - /private/var/mobile/Library/CallHistory/call_history.db Update I fetch the call_history.db in the following way /

Intercepting phone call - iPhone (correct method to hook in CoreTelephony)

 ̄綄美尐妖づ 提交于 2019-11-27 14:14:57
I am new to the jailbreak tweak development scene. I am trying to figure out the appropriate method to 'hook' so I can intercept an incoming call (and then run some code). I have dumped the header files of CoreTelephony framework however no methods seem obvious to hook. I have tried: - (void)broadcastCallStateChangesIfNeededWithFailureLogMessage:(id)arg1; - (BOOL)setUpServerConnection; but neither have worked. By worked I mean - get called when the iPhone receives a call. Any pointers as to the appropriate method to hook? Thanks :) Note: This is going to be a jailbreak tweak using private APIs

How to get IMEI on iPhone 5

落花浮王杯 提交于 2019-11-27 13:50:18
I'm develop application for jailbroken iOS devices. I use https://github.com/erica/uidevice-extension/blob/master/UIDevice-IOKitExtensions.m to get IMEI, but on iPhone 5 this solution does not work(return empty string). Is there any way to get IMEI on iPhone 5(iOS 6.1.2)? There are several ways to get IMEI on newer devices 1) Private ManagedConfiguration.framework CFStringRef MCCTIMEI() 2) CoreTelephony.framework struct CTResult { int flag; int a; }; extern CFStringRef kCTMobileEquipmentInfoIMEI; void *connection = _CTServerConnectionCreate(kCFAllocatorDefault, NULL, NULL); NSDictionary *info

Launch other application without URL schema in iphone?

一世执手 提交于 2019-11-27 13:23:23
I know that other applications can call from your application via the URL schema. But not all applications are registered schema URL. So how can I launch that application?. I'm developing for iphone jaibroken. Kevin Lee I used this way: void* sbServices = dlopen("/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices", RTLD_LAZY); int (*SBSLaunchApplicationWithIdentifier)(CFStringRef identifier, Boolean suspended) = dlsym(sbServices, "SBSLaunchApplicationWithIdentifier"); int result = SBSLaunchApplicationWithIdentifier((CFStringRef)bundleId, false); dlclose

How to detect that the app is running on a jailbroken device? [duplicate]

家住魔仙堡 提交于 2019-11-27 10:29:36
This question already has an answer here: How do I detect that an iOS app is running on a jailbroken phone? 16 answers I have just released my app for iOS, but I'm not sure how to make my app safe from being used by jailbrakers. Can I do something to prevent my app working on jailbroken devices? Rahul Vyas You can detect through code that if the app is running on a jail broken device or not. Through that way you can pop up an alert and close the app. You can do whatever you want to do. Here is a tutorial for it: http://thwart-ipa-cracks.blogspot.com/2008/11/detection.html and here is a Stack

iOS - Add “objects” to existing app (jailbroken)

自古美人都是妖i 提交于 2019-11-27 09:17:56
问题 How do you add "objects" to an existing app ? For example, the EasyRefresh for Chrome tweak, enables a new button inside the iOS Chrome app, as do many other tweaks. How may i add a simple UIButton to, for example, the Twitter app ? Is there any GitHub projects that might help me to understand how it's done ? Image Source: ModMyI Thanks. 回答1: The trick involves some (very basic) reverse engineering and is made up of several steps; I'll try to explain them as clearly as possible. Step Zero: if

iOS 6.x open command line on jailbreak

試著忘記壹切 提交于 2019-11-27 09:10:18
Before iOS 6.x, I used open package_id to open a app from command line on a iOS device. On iOS 6.x if i use this command SpringBoard crashes. Open is available from BigBoss and the author is Conrad Kramer. Is there an alternative or a fix for the open command from BigBoss? Nate Update: It looks like the original /usr/bin/open has been updated for iOS 6 on Cydia, so I recommend you try that first. Original Answer: I miss open , too! But, until it gets updated for iOS 6, you can just build your own non-graphical app (just a main program, not a UIApplicationMain() ) and do the same thing yourself

How to use ldid?

[亡魂溺海] 提交于 2019-11-27 08:46:11
I am trying to run unsigned application on iOS 5.1/iPhone 4s (jailbroken). What I did: Disable code signing in XCode. Built unsigned iPhone app. Copied it to my iPhone via SSH to location /User/me/development/HelloWorld.app Now I try to simulate its signing to run this application on iPhone. I run follwing commands: . cd /User/me/development chmod -R 777 HelloWorld.app ldid -S HelloWorld However, I receive following error: util/ldid.cpp(567): _assert(78:arch != NULL) What are possible reason of such error and now to fix it? 1) Using ldid -S is the correct usage. Not lowercase ( -s ). 2)