jailbreak

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

旧时模样 提交于 2019-11-26 15:12:35
问题 This question already has answers here : How do I detect that an iOS app is running on a jailbroken phone? (17 answers) Closed 8 months ago . 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? 回答1: 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

How to use ldid?

给你一囗甜甜゛ 提交于 2019-11-26 14:17:19
问题 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

IOS Jailbreak How do intercept SMS / Text Messages

安稳与你 提交于 2019-11-26 14:00:03
问题 I'm currently trying to write an application that intercepts text messages and reacts depending on the content of that message. I tried to hook into _receivedMessage:(struct __CKSMSRecord *)message replace:(BOOL)replace method in the CKSMSService class but this seems not do get called at all. Could someone please tell me what function/class i have to hook in? I need to intercept the text message before it gets displayed and stored into the database. I'm on IOS 5.0.1. Any help is truly

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

北战南征 提交于 2019-11-26 13:46:55
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); Class CTMessageCenter = NSClassFromString(@"CTMessageCenter"); id mc = [CTMessageCenter

How do I change my iOS applications' entitlements?

旧城冷巷雨未停 提交于 2019-11-26 13:25:13
I need to run the following code to turn off my iphone screen . On iOS6: void (*BKSDisplayServicesSetScreenBlanked)(BOOL blanked) = (void (*)(BOOL blanked))dlsym(RTLD_DEFAULT, "BKSDisplayServicesSetScreenBlanked"); and then use: BKSDisplayServicesSetScreenBlanked(1); // 1 to dim, 0 to undim It doesnt work. Somebody told me that I need com.apple.backboard.client entitlements for this to work on my iphone. I dont know how to set these entitlements. I have seen several ways to set entitlements but they are very confusing to me, like this one. Yes, you do need to code sign the entitlements. But,

iOS touch event notifications (private API)

江枫思渺然 提交于 2019-11-26 12:57:21
问题 It\'s possible to simulate touch events on iOS, and you can receive various system wide notifications when in the background using CTTelephonyCenterAddObserver and CFNotificationCenterAddObserver, eg: IOS Jailbreak How do intercept SMS / Text Messages How can I detect screen lock/unlock events on the iPhone? I\'ve yet to find a way to get touch notifications while in the background though. Is there a \"touch event\" that can be used with CFNotificationCenterAddObserver, a different

Get list of all installed apps

你说的曾经没有我的故事 提交于 2019-11-26 12:52:59
I would like to get a list of all installed apps(NSArray). My app is a jailbreak app and is located in/Applications so Sandbox is no problem there. Is there any way to get a list of app store apps? I've already seen this in other apps (Activator, SBSettings...). I have no idea how to do this, because all of the apps sandboxes have that huge code, so i don't know how it would be possible to access the .app folder inside the sandbox. Igor You can use this code snippet: #import "InstalledAppReader.h" static NSString* const installedAppListPath = @"/private/var/mobile/Library/Caches/com.apple

Once jailbroken, will iOS apps run with root privilege?

杀马特。学长 韩版系。学妹 提交于 2019-11-26 10:00:05
问题 Once an iOS device is jailbroken, we can build jailbreak apps (with theos) and it gets installed in the /Applications directory where the preloaded apps run with root privileges. If an app is built with Xcode, once it is installed, it gets into the /private/var/mobile/Applications/ folder, which is supposed to have Apple sandbox enforced (before jailbreak). So, the questions I have are: For a jailbroken device, will the apps in /private/var/mobile/Applications/ execute with root privileges or

Determining if an iPhone is Jail broken Programmatically

不想你离开。 提交于 2019-11-26 06:54:24
问题 How do you determine (programmatically) if an iPhone/iPod is: Jail broken Running a cracked copy of your software Pinch Media can detect if a phone is jail broken or the software running is cracked, does anyone know how they do this? Are there any libraries? 回答1: Here is one of the ways to detect if your app was cracked. In short: the cracking usually requires changing the Info.plist. Since it's regular file you have access to, it's pretty easy to determine such changes. 回答2: Detecting a

iphone reboot programmatically

邮差的信 提交于 2019-11-26 04:50:41
问题 I have code system(\"reboot\") The reboot command works in the terminal, but even if I run the app as root, the operation is still denied. Has anyone found any way that works, or can explain a bit about SBSetting\'s reboot, which makes me curious? 回答1: I figured out a way to do it, although it's a bit convoluted. The problem is that even if you setup your app to run as root , when you make system() calls, you're apparently still limited to user mobile privileges. Since mobile cannot call