Menu
  • HOME
  • TAGS

tweak is not work iphone6 (Jail Broken development)

ios,jailbreak,theos,tweak

i think you have to mark the architecture. in the makefile add : ARCHS = armv7 armv7s arm64...

Unsigned ipa crashes on launch

objective-c,xcode6,jailbreak,unsigned,ipa

Unsigned apps will be terminated despite iOS being jailbroken. The fix is, you can still sign with a certificate created by yourself or just fake sign with ldid. The following link explains it in detail. Link Link 2...

Xcode External Build System Make Package Install

xcode,makefile,make,jailbreak,tweak

I guess you are using a Makefile depending on this file (or a similar rule): https://github.com/DHowett/theos/blob/master/makefiles/package/deb.mk It requires that dpkg-deb is in the path or will fail with the error message you posted. You say you installed dpkg, but this doesn't mean an executable called dpkg-deb is available to make...

How to hide statusbar icons in iOS

ios,ios7,jailbreak,cydia-substrate,libstatusbar

Here is what I use in my tweak: int itemToHide = 0; [[objc_getClass("SBStatusBarStateAggregator") sharedInstance] beginCoalescentBlock]; [[objc_getClass("SBStatusBarStateAggregator") sharedInstance] _setItem:itemToHide enabled:NO]; [[objc_getClass("SBStatusBarStateAggregator") sharedInstance] endCoalescentBlock]; Only problem - iOS uses integer values for status bar items and they're different on different iOS versions. You could test every iOS version and store values for...

How to detect in a jailbreak tweak AVCaptureSession start and get which app started it?

ios,jailbreak,avcapturesession,tweak,theos

The SpringBoard class only exists in the SpringBoard process therefore %c(SpringBoard) or objc_getClass("SpringBoard") will return nil on any other process. To get the current bundle name of the applications you are hooking, you can use [[NSBundle mainBundle] bundleIdentifier]. You'd have to use some form of IPC/XPC to send this information...

Cannot bind() a socket inside Apple Calendar (dylib injection)

ios,objective-c,reverse-engineering,jailbreak,dylib

You're right about Entitlements.plist. Problem is very simple - MobileCal.app is using custom sandbox profile. There are actually many sandbox profiles in iOS, not just for AppStore apps. Many iOS system components use them. To know which one you need to look at the app's entitlements. More specifically, seatbelt-profiles key....

What is called internally on iOS 7 for vibration (it has changed!)?

ios,jailbreak,iphone-vibrate

I recently looked at how SpringBoard plays it's vibrations when you toggle silent switch or connect to power source. It only uses AudioServicesPlaySystemSound with same argument (0x452 for charging, 0x453 for silent switch) regardles of silent switch. Only place where I've seen AudioServicesPlaySystemSoundWithVibration call is when bulletin is added. That...

Call duration class

ios,objective-c,jailbreak,theos

On iOS 8 the in call UI no longers runs in MobilePhone or SpringBoard. It actually runs in a separate process - InCallService.app. It's works just like MFMessageComposeViewController I researched here. MobilePhone or SpringBoard (don't know for sure and it doesn't really matter), displays, what is called, remote view controller...

Scan networks (SSID's) on iOS 7 by using private API

iphone,networking,ios7,jailbreak,ssid

Here is what I use on iOS5-7 void* library = dlopen("/System/Library/SystemConfiguration/IPConfiguration.bundle/IPConfiguration", RTLD_LAZY); int (*apple80211Open)(void*) = (int(*)(void*))dlsym(library, "Apple80211Open"); int (*apple80211Bind)(void*, NSString*) = (int(*)(void*, NSString*))dlsym(library, "Apple80211BindToInterface"); int (*apple80211Close)(void*) = (int(*)(void*))dlsym(library, "Apple80211Close"); int (*apple80211Scan)(void*, NSArray**, void*) = (int(*)(void*, NSArray**, void*))dlsym(library, "Apple80211Scan"); void...

Theos error with mavericks and iOS 7

ios,iphone,jailbreak,theos

Nothing to be done for 'internal-library-compile'. is not an error. It means that there is nothing to be done for the library compile step. This is GNU make's way of telling you that your tweak is already compiled, and nothing has changed since you last compiled it. There is "nothing...

When trying to build DisplayCandy, the terminal gives me this error

ios,objective-c,jailbreak,theos

That's a really old framework you're dealing with there. GraphicsServices is part of the undocumented headers for iOS 3.x and 4.x. It originates from the https://github.com/kennytm/iphone-private-frameworks GitHub project. Given the import path GraphicsServices/GraphicsServices.h you would need to put the GraphicsServices folder at the root level of your project to fix...

Install my .ipa on a Jailbroken iOS device

ios,jailbreak,ipa

This is very easy, Step 1. Launch Cydia, search for AppSync (matching version for your iOS. eg: AppSync 7.0+) Step 2. Install it. (now iTunes will let you sync any ipa to your phone) (if search result doesn't show appsync 7.0+ do the following) Tap on the Manage button. Now...

Theos/Logos: Accessing Static/Global Variable Across Multiple Hooked Processes

ios,iphone,jailbreak,iphone-privateapi

Sharing a variable across processes is a bit more complex than just having a global variable. You'll need to use some form of IPC (Inter Process Communication) to synchronize the variable across processes. Since you hook SpringBoard and other apps, you can set up SpringBoard as the "server" so that...

How to prevent in app purchase pirating

ios,xcode,in-app-purchase,jailbreak

You have to have a server component that you can withhold from the client if your server contacts Apple's App Store to verify the receipt and the verification fails.

Auto Start OpenVPN in shell on a Jail Broken iOS device

ios,jailbreak,openvpn,launchd

You're going in the right direction. launchd daemons is the way to go. Several things does not look right in your plist: OnDemand is deprecated, you need to use KeepAlive instead. In your case just set it to true Usually you don't mix Program and ProgramArguments. They basically do the...

how to open an app by bundle id on iOS

ios,jailbreak

* For jail break you can proceed with this * There is a mechanism known as URL scheme, which can be used to open app from inside your app. but for that you need to do the proper url schemens setUp in your plist file. I strongly feel that you...

Displaying an UIAlertView When A User Unlocks iPhone

ios,objective-c,jailbreak,theos

Check out these methods from SBLockScreenViewController: -(void) prepareForUIUnlock; -(void) finishUIUnlockFromSource:(int)source; Both should work fine....

Fetching and comparing CFBundleVersion from plist

ios,iphone,objective-c,cocoa-touch,jailbreak

I am so used to ARC that I am not 100% sure about the MRC rules anymore. But I assume that you either have to retain the values appVersion and appVer2 from the dictionary, or alternatively, postpone the [dict release] until after the values are no longer needed. Since you...

Jailbreak Tweak Learning - UIViewController (separate file) with initWithFrame - code provided

ios,objective-c,jailbreak,theos,cydia-substrate

You made your OneView a subclass of UIViewController: @interface OneView : UIViewController But you have to make it a subclass of UIView: @interface OneView : UIView ...

Is there any way to retrieve display brightness and light sensor value of iPhone?

ios,iphone,jailbreak,sensor,brightness

Located in private BackBoardServices.framework: float BKSDisplayBrightnessGetCurrent(); As for light sensor, couldn't find any methods to retrieve it's value. There're only three methods: check for existance of the sensor, enable/disable auto-brightness....

Install non-UI app on jailbroken device via AFC2

ios,jailbreak

Do you have a WiFi? If not, you can use USB tunneling. Then you can SCP your app on a device and install it with SSH (give it persmissions you need and then launch). That's enough for testing. Or you can pack it into debian package with postinst script that...

How can I access specific iOS app's directory with Objective C?

objective-c,ios8,filesystems,jailbreak

iOS 7 and below AppStore apps are installed in /var/mobile/Applications inside directory with random name. App's directories (documents, library etc) and *.app directory are both inside it. To determine which app it is you need to parse Info.plist file inside *.app directory where app name and bundle identifier are stored....

Can I add a entitlements.plist to jailbreak tweaks?

ios,jailbreak

Tweak is a dylib - it will be loaded in a process. That process may have entitlements and those entitlements will be used for the tweak. That's it. Tweak doesn't have it's own entitlements. As for your question. Because of what I said before you can't restrict just a tweak...

CPDistributedMessagingCenter not working ios7

ios,notifications,messaging,jailbreak

Try darwin notifications https://developer.apple.com/library/mac/documentation/corefoundation/Reference/CFNotificationCenterRef/Reference/reference.html It's a public API, shouldn't be hard to find sample code.

Can you hook into system function calls in iOS using private APIs?

ios,objective-c,jailbreak,iphone-privateapi

In terms of accomplishing this task in the way you're describing it ... no, I don't think there's any way to do that without jailbreaking. You are free to use method swizzling to hook iOS methods in personal-use, non-jailbroken apps. But, that limits you to hooking code that's called from...

Is there any graceful way could revert the hooked method to original implementation on iOS?

ios,objective-c,hook,jailbreak,cydia-substrate

You just need to exchange the implementations again, i.e. just call the following a second time: MSHookMessageEx([UIView class], @selector(setFrame:), (IMP)replaced_UIView_setFrame_, (IMP *)&original_UIView_setFrame_); When you exchange the implementations you are swapping them around, so by swapping them again you get back to the originals....

Displaying a Custom UIView on Springboard (Jailbreak)

objective-c,uiview,jailbreak,theos,springboard

If you want the UIView to show anywhere (on SpringBoard and in apps), you should create a new UIWindow above the others and show your view in it like this : UIWindow *window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; window.windowLevel = UIWindowLevelAlert + 2; [window setHidden:NO]; [window setAlpha:1.0]; [window setBackgroundColor:[UIColor...