jailbreak

Jailbreak Developer iPhone with task_for_pid()

狂风中的少年 提交于 2021-02-08 11:19:35
问题 I want use task_for_pid() and attach to another process and then change its memory on iOS system. I could do it successfully on OS X with the help of authorization services API, but on iOS, task_for_pid() always returns KERN_FAILURE . I need to get task_for_pid() function to work on jailbreak iPhone under root. As discussed in “Authentication” iOS does not provide this API, What should I do? Could I run as root on iOS Simulator and how to test app required running as root? 回答1: It is

Open an URL in a web browser that isn't safari, with Objective-C

白昼怎懂夜的黑 提交于 2020-04-18 12:38:17
问题 I'm making a simple tweak for jailbroken iOS devices running iOS 13, which adds a "Paste and Go" option when you force touch web browsers. I've managed to make it work with Safari, but the problem comes when I try to use it with other Web browsers. I manage to show the option, but I can't make the web browser to open the link. I'm posting this here as this is more of a normal programming question than a jailbreaking question because I'm sure there's a way to do this in stock iOS. Thanks in

Open an URL in a web browser that isn't safari, with Objective-C

前提是你 提交于 2020-04-18 12:36:58
问题 I'm making a simple tweak for jailbroken iOS devices running iOS 13, which adds a "Paste and Go" option when you force touch web browsers. I've managed to make it work with Safari, but the problem comes when I try to use it with other Web browsers. I manage to show the option, but I can't make the web browser to open the link. I'm posting this here as this is more of a normal programming question than a jailbreaking question because I'm sure there's a way to do this in stock iOS. Thanks in

jailbroken iOS taking screenshot from background app

拥有回忆 提交于 2020-02-24 13:54:31
问题 I'm building an utility app for myself that can take screenshots of whatever is running in the foreground while this utility is running in the background. The utility will be running on a jailbroken device so it can access private APIs and not confined to the sandbox. Since the utility app is running in the background (either as a daemon or using backgrounder), how can I access the screen being displayed to generate a screenshot? The reason I want this is because I want to take screenshots

jailbroken iOS taking screenshot from background app

和自甴很熟 提交于 2020-02-24 13:51:43
问题 I'm building an utility app for myself that can take screenshots of whatever is running in the foreground while this utility is running in the background. The utility will be running on a jailbroken device so it can access private APIs and not confined to the sandbox. Since the utility app is running in the background (either as a daemon or using backgrounder), how can I access the screen being displayed to generate a screenshot? The reason I want this is because I want to take screenshots

jailbroken iOS taking screenshot from background app

北城以北 提交于 2020-02-24 13:51:10
问题 I'm building an utility app for myself that can take screenshots of whatever is running in the foreground while this utility is running in the background. The utility will be running on a jailbroken device so it can access private APIs and not confined to the sandbox. Since the utility app is running in the background (either as a daemon or using backgrounder), how can I access the screen being displayed to generate a screenshot? The reason I want this is because I want to take screenshots

jailbroken iOS taking screenshot from background app

不打扰是莪最后的温柔 提交于 2020-02-24 13:50:22
问题 I'm building an utility app for myself that can take screenshots of whatever is running in the foreground while this utility is running in the background. The utility will be running on a jailbroken device so it can access private APIs and not confined to the sandbox. Since the utility app is running in the background (either as a daemon or using backgrounder), how can I access the screen being displayed to generate a screenshot? The reason I want this is because I want to take screenshots

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(

How can I use class-dump to get the headers of IOHIDLib?

左心房为你撑大大i 提交于 2020-02-03 09:48:27
问题 It can dump the runtime headers of private frameworks of iOS by class-dump tool. but I'm looking for the headers of the IOHIDEvent which has been moved to any where that I can not find after iOS 6. But, in the iOS 6 SDK there is lib looks like it: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Extensions/IOHIDFamily.kext/PlugIns/IOHIDLib.plugin How can I dump the headers of the IOHIDLib? 回答1: class-dump is a tool that lets

Kill Command for a jailbroken iPhone

微笑、不失礼 提交于 2020-01-30 11:28:06
问题 Hey I am looking for a kill command for my app that lets me kill other apps. I want my app to be able to kill other apps while my app is in the background. I found this kill command: Class $SBApplicationController = objc_getClass("SBApplicationController") SBApplication *app = [[$SBApplicationController sharedInstance] applicationWithDisplayIdentifier:displayIdentfier]; if (app) [app kill]; The only problem is it seems to only work for Mac OSX and I am trying to do this on my jailbroken