jailbreak

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

喜欢而已 提交于 2019-11-28 15:36:08
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. 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 the app is downloaded from the AppStore, it's encrypted. You have to decrypt it using one of the scripts

How to take screenshot of entire screen on a Jailbroken iOS Device?

喜夏-厌秋 提交于 2019-11-28 12:23:46
问题 I need to take screenshot of the whole screen including the status bar, I use CARenderServerRenderDisplay to achieve this, it works right on iPad, but wrong at iPhone 6 Plus. As the * marked part in the code, if I set width=screenSize.width*scale and height=screenSize.height*scale , it will cause crash, if I just change them as: width=screenSize.height*scale and height=screenSize.width*scale , it will works, but produce a image like that: , I've tried much but no reason found, does anyone

iPhone notification when wifi network changes

孤街醉人 提交于 2019-11-28 12:12:34
This is for a tweak , so the target is jailbroken devices, and not the app store. I have tried hooking different methods in the SBWiFiManager but they either are called when the wifi strength changes (so continuously) or after quite delay after the network has changed. Is there any other way to get a notification (or another method to hook) went the wifi network changes? I know you can get the current SSID with public APIs now, but I need to be told when it changes. Nate One way to do this is to listen for the com.apple.system.config.network_change event from the Core Foundation Darwin

Is there a way to programmatically restore my iPhone to factory settings?

浪尽此生 提交于 2019-11-28 10:29:48
I am developing for a jailbroken app and I don't care if it's rejected by the App store. I have found a way to completely wipe out my iPhone using this way Is there a way to completely wipe out iPhone data programatically? . There is a problem with this method however. It makes my iphone worthless and I have to recover it using itunes. I just want to factory restore my iphone programmatically. There is a private API SBDataReset in SpringboardServices private framework. It wipes all data. You can check the following code for example how to use it. An application which uses this API should have

Cydia App Documents Folder Not Created

橙三吉。 提交于 2019-11-28 10:08:08
问题 I have been working on a Core Data iOS app that works perfectly through Apple's "channels" – iOS simulator & Xcode installing, yet when I try to manually install it onto a device, the application crashes. My main goal is to put the app on Cydia. A guide to preparing an app for Cydia I read this article, and I at the bottom it said Appstore app has a Documents folder that is created by the installation process. Jailbroken app does not. It is up to the app to create its own folder. Should you

Hide a phone call completely in iOS (jailbreak device)

馋奶兔 提交于 2019-11-28 09:33:15
I want to hide a phone call completely in ios. My priority is to do this on ios 7 (latest ios version at this time!) but i would like to know how to hide a phone call on ios 6 and below too if possible. I have found some functions to do so as hooking into initWithAlertController method of class SBUIFullscreenAlertAdapter . Thanks to creker in this link I found another method to hook that is better to do so. The problem is it still has a callbar when the phone is not locked or when the phone is locked the phone shows that it's it in the middle of communication. Here are screenshots: link to

iOS How to use Entitlement.plist to specify property of my app

♀尐吖头ヾ 提交于 2019-11-28 09:27:07
I'm using Jailbreak + Appsync + iOS5.0.1 device (without a developer license but with some tricks I can run my app on the device) Now I want to use a private API launchApplicationWithIdentifier:suspended:. So I need to add <key>com.apple.springboard.launchapplications</key> <true/> to myApp.entitlements.plist file. Then it should work but I still got the error 'Receiver type 'UIApplication' for instance message does not declare a method with selector 'launchApplicationWithIdentifier:suspended:'' Then I found someone said, code signing must be enable if I want to use Entitlements.plist. Is it

Display CFUserNotificationDisplayAlert on iPhone Lock Screen

吃可爱长大的小学妹 提交于 2019-11-28 08:50:41
I m creating an app that has to display CFUserNotificationDisplayAlert even if iPhone Screen is Locked, currently i am using this code CFOptionFlags responseFlags = 0; CFUserNotificationDisplayAlert(20.0, 3, NULL, NULL, NULL, CFSTR("Hello"), CFSTR("Hello World"), CFSTR("OK"), NULL, NULL, &responseFlags); This works great on Home Screen but doesnt pop up if the screen is locked. Is there anything else i have to add to it to make it appear on the Lock Screen as well? You need to use the kCFUserNotificationAlertTopMostKey key. extern CFStringRef kCFUserNotificationAlertTopMostKey; CFStringRef

Rec iOS conversations. Where to start?

烂漫一生 提交于 2019-11-28 08:49:28
I would like to rec each time I have a conversation with the MobilePhone App. My device is jailbroken, so no problem about the appStore restrictions. Of course I guess the public framework will provide nothing. Also, I've been looking at the private frameworks, but haven't seen anything useful. Currently I am able to rec from the microphone, but when a conversation starts, it takes the microphone in exclusive mode, and the data is no longer received. Any guidance? creker "Audio Recorder" is indeed a very simple tweak. The author tried to obfuscate important parts of his tweak (which function

Is an iPhone app's document directory /var/mobile/Documents or /var/mobile/Library/AppName?

人盡茶涼 提交于 2019-11-28 08:13:25
问题 As far as I know (and read everywhere) an application's documents directory should be somewhere in /var/mobile/Library/ on the iPhone but if I'm logging the gotten directory it is /var/mobile/Documents . I get the directory as follows: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; is this a problem if I'm creating a file named Settings.xml in here or is something wrong with my app/etc.?