jailbreak

iOS execute shell script from Activator

醉酒当歌 提交于 2020-01-02 09:39:06
问题 I am using a jailbroken iOS device, and I want to add an action to Activator that executes a shell script stored in a known location. Does anyone know how to achieve this? 回答1: I'm not sure whether or not Activator can run scripts directly , but it certainly can run any app you install on your device, with whatever action (e.g. swipe, shake, button press) you like. Just make a simple app that uses the system() function, or an exec function to invoke your script: int main(int argc, char *argv[

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

限于喜欢 提交于 2020-01-02 07:09:50
问题 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

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

一笑奈何 提交于 2020-01-02 07:09:06
问题 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

Setting iOS background/lockscreen image programmatically?

别等时光非礼了梦想. 提交于 2020-01-01 02:47:08
问题 I'd like to be able to set the lockscreen background image programmatically. I'm aware that this is only possible for jailbroken iOS devices. Here are some things that I've tried: Place a LockBackground.png in /private/var/mobile/Library/SpringBoard/. This works but requires a hard respring. notify_post("com.apple.language.changed"); doesn't work for a soft respring. Use class-dump to dump private methods of UIKit. UIKit in 4.2 used to have a method called + (void)setDesktopImageData:(id)fp8;

How to quickly get app's directory from its bundle id on jailbroken iOS device?

梦想的初衷 提交于 2019-12-31 23:17:23
问题 In iOS devices, all user applications are located in /var/mobile/Applications directory, and each app has a unique random uuid as its directory name, for instance: /var/mobile/Applications/15FD62FD-2BEB-4C1E-A9B8-BC93E5C721CC the uuid is 15FD62FD-2BEB-4C1E-A9B8-BC93E5C721CC . Now I want to get the directory by application's bundle identifier, my solution is enumerate the /var/mobile/Applications directory, get the bundle identifier from Info.plist and check. This solution is rather slow, is

Programmatically send iMessage using private frameworks

▼魔方 西西 提交于 2019-12-31 16:54:04
问题 Does anyone know if it's possible to directly send an iMessage using a private framework? I tried using CTMessageCenter from CoreTelephony but it'll send an SMS even though my phone can send iMessages. 回答1: I haven't tested this, but look at the code posted here. If you look at httpResponseForMethod:URI: , you see where he/she sends a message (appears to be hardcode to support iOS 5 or iOS 4 ): CKSMSService *smsService = [CKSMSService sharedSMSService]; //id ct = CTTelephonyCenterGetDefault()

jailbroke app on simulator?

℡╲_俬逩灬. 提交于 2019-12-31 03:15:13
问题 I'm developing apps for jailbroken iPhone on Xcode. I'm using Xcode 4.2 and my iPhone OS is iOS6. I cannot connect my iPhone with XCode for testing because XCode 4.2 does not support iOS6. Every time when I compile the code and try to run it on the simulator, I cannot get out of the sandbox . So I've tried to create an .ipa file, install it on iPhone and test it. Is there any way to test jail broken apps on simulator? 回答1: It depends what kind of jailbreak functionality you're looking to test

xcode project conversion to iOSOpenDev

空扰寡人 提交于 2019-12-30 11:05:53
问题 I would like to convert a 'regular' xcode project to deploy using iOSOpenDev. From what I can tell, when a new project is created using the iOSOpenDev templates, it has the following in the build settings: EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = *.nib *.lproj *.gch (*) .DS_Store CVS .svn .git .hg *.xcodeproj *.xcode *.pbproj *.pbxproj HEADER_SEARCH_PATHS = $(iOSOpenDevPath)/include/** IPHONEOS_DEPLOYMENT_TARGET = 5.0 LIBRARY_SEARCH_PATHS = $(iOSOpenDevPath)/lib/** SDKROOT = iphoneos

IOHIDEventSystemCreate on iOS6 failed

我怕爱的太早我们不能终老 提交于 2019-12-30 07:18:04
问题 IOHIDEventSystemCreate always return NULL on iOS6 (work fine on iOS5). Anyone know why? Example on iPhoneDevWiki #include <IOKit/hid/IOHIDEventSystem.h> #include <stdio.h> void handle_event (void* target, void* refcon, IOHIDServiceRef service, IOHIDEventRef event) { // handle the events here. printf("Received event of type %2d from service %p.\n", IOHIDEventGetType(event), service); } int main () { // Create and open an event system. IOHIDEventSystemRef system = IOHIDEventSystemCreate(NULL);

IOHIDEventSystemCreate on iOS6 failed

☆樱花仙子☆ 提交于 2019-12-30 07:17:09
问题 IOHIDEventSystemCreate always return NULL on iOS6 (work fine on iOS5). Anyone know why? Example on iPhoneDevWiki #include <IOKit/hid/IOHIDEventSystem.h> #include <stdio.h> void handle_event (void* target, void* refcon, IOHIDServiceRef service, IOHIDEventRef event) { // handle the events here. printf("Received event of type %2d from service %p.\n", IOHIDEventGetType(event), service); } int main () { // Create and open an event system. IOHIDEventSystemRef system = IOHIDEventSystemCreate(NULL);