jailbreak

How do I change my iOS applications' entitlements?

馋奶兔 提交于 2019-11-26 03:39:44
问题 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

Get list of all installed apps

安稳与你 提交于 2019-11-26 03:37:23
问题 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. 回答1: You can use this code snippet: #import

How do I detect that an iOS app is running on a jailbroken phone?

倾然丶 夕夏残阳落幕 提交于 2019-11-26 03:15:04
问题 If I want my app to behave differently on a jailbroken iPhone, how would I go about determining this? 回答1: It depends what you mean by jailbreak. In the simple case, you should be able to see if Cydia is installed and go by that - something like NSString *filePath = @"/Applications/Cydia.app"; if ([[NSFileManager defaultManager] fileExistsAtPath:filePath]) { // do something useful } For hacked kernels, it's a little (lot) more involved. 回答2: +(BOOL)isJailbroken { NSURL* url = [NSURL

Gaining root permissions on iOS for NSFileManager (Jailbreak)

一个人想着一个人 提交于 2019-11-26 00:48:07
问题 I am trying to write file to the root partition of the device. It is a Jailbreak app so it is installed in /Applications. When writing to the root filesystem using NSFileManager the write fails with a \"Permission Denied\" error. It seems like my app is not running as root. It is installed in /Applications though. How can my app become root? 回答1: It is true, the app has to run as root to access non mobile directories. After discussing this with Optimo and Saurik I finally found the right way

Lock-down iPhone/iPod/iPad so it can only run one app

筅森魡賤 提交于 2019-11-26 00:45:49
问题 We\'d like to \'lock-down\' an iPhone/iPod/iPad so that the user can only run one app (we\'ve developed this app internally). I\'m guessing we\'d be looking at jailbreaking, and then replacing (?) the default Springboard app. Can we do this? If so, how? EDIT: iOS 7 now includes an \'App Lock\' payload as part of the device configuration profile. From the Apple docs: \"By installing an app lock payload, the device is locked to a single application until the payload is removed. The home button