jailbreak

Delete message on iOS 6

巧了我就是萌 提交于 2019-12-08 10:02:50
问题 I'm developing an app for jailbroken iOS devices. I want to delete a message from the user's Inbox - I deleted message on SMS.db (in the "message" table) but when I go to Inbox, it's still there with "blank" content and the sender's phone number. On iOS 5, I deleted it perfectly using the CKSMSRecordDelete , but on iOS 6, ChatKit.framework doesn't work any more. 回答1: Check out my answer here Block sms on ios6 To delete rows from SMS.db you need to use IMDPersistence.framework If you want to

Running shell script using Xcode with arguments on ios

依然范特西╮ 提交于 2019-12-08 09:10:31
问题 I have an bash script which I wan't to start with arguments by an app. Currently I can generate the command, but how can I execute it? This app is for jailbroken phones only. Any solutions for this? searched alot, but didn't found anything. 回答1: If this is a jailbreak app, you can run the command by passing it to the system() function that's part of the OS, or one of the exec functions. So, if you decide to install your script at /Applications/MyApp.app/myscript.sh , then in your app, you

Theos iOS 11 system() function

亡梦爱人 提交于 2019-12-08 07:52:34
问题 I updated my Phone to IOS 11 and the system() function is not supported anymore. I want to shutdown after pressing a button, how can I do that? Respring works fine with posix_spawn. My old code is: (void)shutdownButtonPressed{ system("shutdown"); } 回答1: From the shutdown source, it would seem the proper way of doing this is: #define RB_HALT 0x08 extern void* reboot3(int how); (void)shutdownButtonPressed { // for a real reboot, just pass 0 instead of RB_HALT reboot3(RB_HALT); } 来源: https:/

How to display package / app icon when browsing Cydia repo

岁酱吖の 提交于 2019-12-08 02:38:08
问题 I have successfully created a Cydia repo, and am hosting an app that I am developing, and it installs fine, but for some reason I can't get the app icon to display when clicking the package in Cydia. As of right now the app icon in Cydia looks like the following, The app icon shows when the app is installed on the device, and I was told the app needs to be installed before the icon will show up in Cydia, so I installed the app on my device, but the icon is still not showing up. I also added

Blocking incoming sms in iOS 7

我怕爱的太早我们不能终老 提交于 2019-12-08 02:27:35
问题 I want to write a tweak for jailbroken devices that blocks messages from a phone number(in iOS 7). First I used the second answer of creker in this link for writing the tweak. Here is my code: #import <substrate.h> #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import <libkern/OSAtomic.h> #import "CTMessage.h" #import "CTMessageCenter.h" id(*_processReceivedMessage_orig)(id, SEL, CTMessage*) = NULL; id _processReceivedMessage_hooked(id self, SEL _cmd, CTMessage* msg); %hook

Possible crash when loadNibNamed on jailbreak devices [UIDeviceRGBColor superview]: unrecognized selector

两盒软妹~` 提交于 2019-12-08 02:25:39
问题 My code looks like this: CGRect screenRect = [[UIScreen mainScreen] bounds]; SomeView *infoView; if(screenRect.size.height != 568.0){ // iPhone 5/5s users crash in the next line infoView = [[[NSBundle mainBundle] loadNibNamed:@"SomeViews" owner:self options:nil] objectAtIndex:1]; }else{ infoView = [[[NSBundle mainBundle] loadNibNamed:@"SomeViews" owner:self options:nil] objectAtIndex:0] } However, I get some crash reports from Crashlytics for iPhone 5/5s users as comment in the above code. I

How to do programming after jailbreaking my iPhone?

跟風遠走 提交于 2019-12-07 16:57:43
问题 I need some private frameworks for my app, so I am planning on jailbreaking my iPhone but, I wonder what are the steps for programming after the jailbreaking process. Are they the same for jailbroken and normal iPhones? I know that my app will be rejected by the app store, but that is not my goal now. This is a research thing. Thanks. 回答1: You can build using Xcode if you wish, but you don't need to. Infact you can build on your iphone itself. All you need is to remote login to your iphone

Install app into jailbroken ios Root’s Applications folder

我是研究僧i 提交于 2019-12-07 14:20:04
问题 when i put myapp.app in ios5 root's Applications folder, but it can't work. why? but i find that cydia can work normally. 回答1: In the main.m add setuid(0); and setgid(0); Build the app normally. Then copy and paste the executable inside the .app and rename it to anything you want, don't rename the original file. Open the original executable file and delete its contents (the contents are now stored in the previously copied and renamed binary). Add this bash script to the empty binary file from

iOS apps without developer license / app store

落爺英雄遲暮 提交于 2019-12-07 09:39:55
问题 I'm new to iPhone development and was wondering if there is a good/easy guide I could follow to install an iOS app on a jailbroken phone without joining the developer program. Basically, I don't know if I'm going to have the time to learn everything I need to learn, but would like to make a start and see where it leads. Once I have something decent put together I can make plans to go through official channels. I followed a guide that I found in SO, but when launching the app it immediately

Why do I get “Cocoa error 513” when write files to “/var/mydir/files” on an jailbroken iPhone?

…衆ロ難τιáo~ 提交于 2019-12-07 06:47:42
问题 My app will write some files to file system and it is installed in /Application not in /var/mobile/Application, On my develop iPhone, every things goes right.But when distribute to others, They got "Cocoa error 513".The files are written at /var/mydir/files, What's that problem? Where is right place for me to write with full permission? Thank you. Code: NSString *dir = @"/var/mydir/docs/"; NSFileManager *fileManager = [NSFileManager defaultManager]; if(![fileManager fileExistsAtPath:dir]) {