cydia-substrate

How to hide statusbar icons in iOS

微笑、不失礼 提交于 2020-02-24 11:21:10
问题 I want to create a simple mobilesubstrate tweak that hides and shows status bar icons like battery or Carrier or wifi signal indecator. I've seen libstatusbar project but i can't find out how to hide iOS's icons. Is there any other way to do this without the use of this library? I just want to hide and show the default icons 回答1: Here is what I use in my tweak: int itemToHide = 0; [[objc_getClass("SBStatusBarStateAggregator") sharedInstance] beginCoalescentBlock]; [[objc_getClass(

Should I have to restart the device not only respring to install a tweak for backboardd?

坚强是说给别人听的谎言 提交于 2019-12-14 02:59:40
问题 I make a tweak that works in backboardd, if I just respring after install it, it doesn't work, I have to restart the my iPhone entirely. Are there any other better ways need not restarting device? 回答1: You can execute this in your postinst script if you are installing your tweak as debian package (*.deb) launchctl stop com.apple.backboardd Backboard will restart automatically and cydia-substrate should be able to inject your tweak in it. 回答2: Note: since you say that you're using iOSOpenDev

SMS Interception in Jailbreak iOS 7

故事扮演 提交于 2019-12-08 13:41:37
问题 I have followed this answer Blocking incomming sms in ios 7. The problem is it blocks every message and its notification. Secondly it continuously call _processReceivedMessage_hooked method when I send message other then this number +923139303006. I'm using OpenDev with Xcode 5, iOS 7.x. #include <logos/logos.h> #import <substrate.h> #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import <libkern/OSAtomic.h> #import "CoreTelephony.h" id(*_processReceivedMessage_orig)(id, SEL,

Find out active application or if on Springboard

痴心易碎 提交于 2019-12-08 06:45:21
问题 How do you find out what current active application you are in or if you are in the springboard's homepages? 回答1: You can't do that. There is no Public API is provided by Apple to do so. If you are looking for Private API, please check this post 来源: https://stackoverflow.com/questions/21373606/find-out-active-application-or-if-on-springboard

Is Swift resistant against hooking?

这一生的挚爱 提交于 2019-12-06 03:12:39
问题 Cycript is a console based application that is a blend of Objective-C and JavaScript. Cycript is very useful for dynamic analysis of iOS applications. If you write any methods or the complete ipa with Swift is it still possible to hook the application on a jailbroken device? Or is Swift safe like "native C" Code on iOS ? 回答1: I'm not really familiar with Cycript but I have a little understanding of the Swift compiler. Swift code will be more resistant to hooking but it should not be

Is Swift resistant against hooking?

橙三吉。 提交于 2019-12-04 09:11:00
Cycript is a console based application that is a blend of Objective-C and JavaScript. Cycript is very useful for dynamic analysis of iOS applications. If you write any methods or the complete ipa with Swift is it still possible to hook the application on a jailbroken device? Or is Swift safe like "native C" Code on iOS ? I'm not really familiar with Cycript but I have a little understanding of the Swift compiler. Swift code will be more resistant to hooking but it should not be completely impossible. NSObject subclasses and Swift classes that are declared @objc should be as accessible as