r/jailbreakdevelopers • • Feb 21 '21

Presentations Recording/streaming videos of EQE development

36 Upvotes

Hi I am the dev of EQE, I'm planning on releasing an update on Feb 28 and I am streaming/recording development as an experiment and to give myself some personal accountability. I'm trying to copy what geohot is doing and be as entertaining as possible and not have dead airtime. First stream is done, clocked at 1 hour 40 mins. Getting rid of a Rocketbootstrap dependency and writing my own IPC solution.

I am planning on streaming every day until release so if anybody is bored or wants to see the way I do development here you go. I'll be posting updates to @EQEverywhere and I will edit the OP of this thread


r/jailbreakdevelopers • • Feb 11 '21

Guide [Tutorial] How to cross compile for iOS from Linux in RUST

36 Upvotes

I don't know if this has been tried before but I couldn't find any tutorials on it. I have already succeeded in doing this using a Mac VM (since I don't own a Mac) but as Linux is my daily driver I finally figured out how to do this in Linux.

In this tutorial you will compile a simple "Hello, world!" program in Rust and execute in iOS using ONLY Linux. I'm doing this on Arch Linux and I had to install ncurses5-compat-libs from the AUR at one point (to provide libtinfo.so.5).

THE ACTUAL TUTORIAL

  1. Download the iPhoneOS SDK from here.

  2. Download the iOS toolchain from here.

  3. (I'm getting these links from the Theos GitHub wiki btw).

  4. Extract the toolchain somewhere. You will find the files "arm64-apple-darwin14-ar" and "arm64-apple-darwin14-clang" in there. You will need the paths of these two files.

  5. Create (or add to) your ~/.cargo/config file with the following:

    [target.aarch64-apple-ios]
    ar = "<path to arm64-apple-darwin14-ar>"
    linker = "<path to arm64-apple-darwin14-clang>"

    This basically tells Cargo to use the provided ar and linker binaries when compiling for the aarch64-apple-ios target which is what I use (for my iPhone 7). I don't know about the other iPhone models but I THINK that most of them (at least, the newer ones) should use ARM64 (aka aarch64). Feel free to correct me if I'm wrong though.

  6. Now that you got your toolchain configured, install the Rust target aarch64-apple-ios using rustup target add aarch64-apple-ios.

  7. Extract the iPhoneOS SDK. Copy "iPhoneOS11.2.sdk" somewhere (or any other SDK version if you like) and remember the path to this directory.

  8. Create a file "xcrun" with the following contents:

    #!/bin/bash
    echo "<path to iPhoneOS11.2.sdk directory>"

    (for example echo "/home/morrutplz/sdk/iPhoneOS11.2.sdk")

    Make the script executable (chmod +x xcrun) and keep it somewhere in your PATH. Remember NOT to add the .sh extension. We're doing this because rustc will run the xcrun command to figure out where the iPhone SDK is stored. xcrun is only in Mac hosts though but since it just outputs the directory we can just create a dummy script that mimics xcrun. Big brain moment :3

  9. Now you should be able to create a Cargo project and just run cargo build --release --target aarch64-apple-ios and the binary SHOULD compile.

By now you (hopefully) should have a binary. I got an error where it couldn't find libtinfo.so.5 and a simple Google search told me that I had to install ncurses5-compat-libs (I use Arch). So just figure out any errors along the way just like I did, you're smart so you'll figure it out <3.

Copy the binary over to your iOS device. Running it will not work just yet as you have to set the binary's entitlements for it to execute properly. This is done pretty easily.

In your iOS device, create the following Entitlements.xml file (or create in your PC and copy it over):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>com.apple.private.security.no-container</key>
    <true/>
    <key>com.apple.private.skip-library-validation</key>
    <true/>
    <key>get-task-allow</key>
    <true/>
    <key>platform-application</key>
    <true/>
  </dict>
</plist>

Confirm that Entitlements.xml and the binary file you compiled earlier are in the same directory and run the following command on it: ldid -SEntitlements.xml <binary>. And yes, it's -SEntitlements.xml and not -S Entitlements.xml. That was not a typo.

Now just make it executable (chmod +x <binary>) and run the damn thing.

(Screenshot of me executing Hello World program)

I can't seem to paste images here, that's weird... meh.

Oh yeah can you guys think of any useful applications for this?


r/jailbreakdevelopers • • Apr 27 '20

How can I inject dylib into ipa so it runs with tweak in "jailed" mode

36 Upvotes

I am trying to inject a game hack into Star Wars: Galaxy of Heroes and have had little success. I have tried several methods but none seem to work, most having the app crash on startup. Does anyone have any knowledge of how to do this? Any help is much appreciated.


r/jailbreakdevelopers • • Sep 10 '19

Question Does anyone know how to get a sticker pack ipa to a .deb?

Post image
36 Upvotes

r/jailbreakdevelopers • • Mar 07 '20

Help I want to compile Theos on a Mac but get this error. Hope someone help

Post image
34 Upvotes

r/jailbreakdevelopers • • Dec 18 '19

[Release] TheosInstaller is releases for macOS

34 Upvotes

Theos Installer

Easy tool for install theos with click

Sdks iOS 9.3 - 10.3 - 11.4 - 12.2 and 13.1

Made with

.@iiS4iF.@yuosaf01

Download

https://theosinstaller.github.io/

# Donate a cup of coffee for us


r/jailbreakdevelopers • • Jan 03 '20

[Release] I made a git server specifically for jailbreak tweaks to hopefully get more devs to open-source their stuff

Thumbnail
twitter.com
33 Upvotes

r/jailbreakdevelopers • • May 07 '19

Release [Release] VNC iOS 11

33 Upvotes

So I have been trying to fix Saurik's veency for iOS 11 for the past few weeks. I wasn't able to compile his repo. Thought I'll write it from scratch, the result is this https://github.com/cosmosgenius/screendump. 99% of the code is from Saurik's repo so all the credit to him. Few changes which are done

  1. libvncserver and deps are already statically compiled

  2. libsurface dependency is remove instead it uses theos's sdk to link with IOMobileFramebuffer and IOSurface.

  3. removed MouseSupport dependency (so no pointer). This was mainly because i didn't try, it might have worked, dunno.

I have tested it in 11.4.1 and VNC server is working along with keyboard and mouse.

The tweak depends on PreferenceLoader, so make sure that is installed first.

To install

  1. download the deb from https://github.com/cosmosgenius/screendump/releases

  2. copy to the phone (i did using scp)

  3. run dpkg -i <package name>

You might need to disable and enable once to start the server from settings->screendump.

Port: 5900


r/jailbreakdevelopers • • Feb 11 '17

[Meta] Sidebar for mobile users

33 Upvotes

Welcome to r/jailbreakdevelopers, a subreddit that is dedicated to the iOS jailbreak developer community.

Get involved in the jailbreak development community.

  • Learn about how to develop tweak/themes from established developers.

  • Learn about jailbreak tools & how they work.

  • Get beta testers for your tweak, themes or other jailbreak related software.

  • Discuss about iOS jailbreak development.

Updating extensions for iOS 7, iOS 8, iOS 9

A new repository exclusively from Reddit jailbreakers (Reddit Community Repository)

Rules, Code of Conduct & responsibilities

Getting started with jailbreak tweak/theme development

For Tweak Development:

For Theme Development:

For jailbreak development:

Important Links

Previous sticky posts

Donate & help the jailbreak community

Subreddits we love:

If you're a developer, theme artist or someone of good significance to the jailbreak community, message the moderators and request a custom flair.

Have a nice day.


r/jailbreakdevelopers • • May 09 '20

Resource Wrote a Tampermonkey script to un-fuck code formatting on Reddit

32 Upvotes

Example: http://cln.sh/glbE

Get it here: https://gist.github.com/bermudalocket/336805b75aa749a938aa7240deda0ff2

This only works if the user doesn't properly indent their code with 4 spaces. This script will also make an attempt to fix indentation within curly braces and square brackets to make the code more legible.

No guarantees this is bug-free but it's working well enough for me. Enjoy.


r/jailbreakdevelopers • • Feb 11 '20

[Help] Does anyone know where these strings are located? I was able to change them on iOS 9 but have since forgotten where they were :(

Post image
32 Upvotes

r/jailbreakdevelopers • • May 08 '19

SileoGen - Open Sourced API for Generating Native Sileo Depictions

32 Upvotes

SileoGen is a project I maintain and have been working on that allows you to generate native depictions. I offer a website https://sileogen.com and the source code to the API here: https://github.com/M4cs/SileoGenAPI.

I'm making this post here because I'd love to see some contributions from developers since I think a lot of people will benefit from this service. We already have ~250 depictions generated in 2 days!

If you'd like to contribute the source code is all here: https://github.com/M4cs/SileoGenAPI


r/jailbreakdevelopers • • Jun 07 '22

Question If Apple copies a tweak, is the developer entitled to compensation?

31 Upvotes

Maybe it could count as a design infringement of intellectual property rights.


r/jailbreakdevelopers • • Jun 02 '21

Question Where do I learn about iOS kernel

31 Upvotes

Hi all again,

As mentioned in my previous post, I started venturing into the opensource for kernbypass and trying to understand the code. However, I am really stuck here as I have alot of questions such as, what is libdimentio and what does it do, why are there data structures of kernel which have no explanation in google searches, why are there offsets (off_p_pid, off_p_pfd) used? etc. Perhaps I need to learn something about kernels first before I can carry on but where do I start?

As such, I would like to ask if anyone has any idea on how I should start to learn from this point because I honestly do not know how to continue.


r/jailbreakdevelopers • • Sep 03 '18

[Release] Cyrun to run the official Version of Cycript on Electra iOS 11

31 Upvotes

I've been working on this and discussing it in another thread but I think it's working well enough so I thought I should break it out into it's own thread.

The official version of Cycript does not work on the iOS 11 Electra JB. There is a version by Jake James utilizing Cycript's built in CYListenServer but that only works in SpringBoard and I am not sure if it uses any of the official Cycript binaries.

I have put together a standard tweak, an executable and a bash script that, when combined with the official version of Cycript (plus Electra entitlement signatures), can be loaded into most Apps/Processes on your device. It also uses Cycript's built in CYListenServer at 127.0.0.1:8556, so only one instance can be running at a time.

After installing, you run the bash script which will call the executable

The executable will

  1. Enable/disable the cycriptListenerTweak dylib file (which loads Cyript and runs a CYListenServer on port 8556)

  2. Write the App bundleIdentifier or Process Executable Name to the tweak filter plist

  3. Kill the App/Process and, if it is an App, they will be relaunced automatically by Cyrun. Other non App processes may need to be manually launched if iOS does not handle that on it's own like it does for SpringBoard and backboardd.

  4. If enabled successfully, the bash script will then run cycript -r 127.0.0.1:8556

Unfortunately, some things still do not work correctly, possibly (most likely) due to the fact we are using Substitute on iOS 11 and not Substrate.

@import com.saurik.substrate.MS;
// the above succeeds without error but trying to use any of the functions it imports results in errors such as
// throw new Error("*** _require(class_getInstanceMethod(_class, sel)):../ObjectiveC/Library.mm(2711):Selector_callAsFunction_type") /* type@[native code] hookMessage */
@import net.limneos.classdumpdyld;
// the above succeeds without error but trying to use any of the functions it imports results in errors such as
// throw #"-[NSBundle isKindOfClass:]: unrecognized selector sent to instance 0x10110c1a0"

The source code:

https://github.com/tateu/cycriptListenerTweak

https://github.com/tateu/cyrun

Here is the install procedure.

# From SSH or terminal as root
cd ~
# download https://electrarepo64.coolstar.org/debs/ncurses_6.1_iphoneos-arm.deb
# download http://apt.saurik.com/debs/readline_6.0-8_iphoneos-arm.deb
# download http://apt.saurik.com/debs/cycript_0.9.594_iphoneos-arm.deb
# download https://electrarepo64.coolstar.org/debs/ldid_2_1.2.2-coolstar_iphoneos-arm.deb
# download http://www.tateu.net/repo/files/net.tateu.cycriptlistenertweak_1.0.0_iphoneos-arm.deb
# download http://www.tateu.net/repo/files/net.tateu.cyrun_1.0.3_iphoneos-arm.deb
dpkg -i ncurses_6.1_iphoneos-arm.deb
dpkg -i readline_6.0-8_iphoneos-arm.deb
dpkg -i cycript_0.9.594_iphoneos-arm.deb
dpkg -i ldid_2_1.2.2-coolstar_iphoneos-arm.deb
dpkg -i net.tateu.cycriptlistenertweak_1.0.0_iphoneos-arm.deb
dpkg -i net.tateu.cyrun_1.0.3_iphoneos-arm.deb

The newest versions of cyrun and cycriptlistenertweak can be found on my repo in Cydia.

And then you can use the bash script to sign the Cycript binaries with the correct Electra entitlements

cyrun -s

Then you can load Cycript into SpringBoard. SpringBoard will be terminated and auto restart

cyrun -n SpringBoard -e

Or you can unload Cycript from SpringBoard. SpringBoard will be terminated and auto restart

cyrun -n SpringBoard -d

Or you can load and unload Cycript from the iOS Mail App. Mail will be terminated and auto restart. When you ?exit Cycript, it will be killed and unloaded.

cyrun -n Mail -e -d

Or you can load and unload Cycript from backboardd. backboardd will be terminated and auto restart. When you ?exit Cycript, it will be killed and unloaded.

cyrun -x backboardd -e -d

The '-n' command takes an AppName, ExecutableName, IconName or LocalizedName.

You can use a bundleIdentifier instead of an App name with '-b com.apple.springboard'

You can also turn off the 'ask to continue' prompts with '-f'

cyrun -b com.apple.mobilemail -e -d -f

You can also load a Cycript scipt file

cyrun -b com.apple.mobilemail -e -d -f -c /path/to/script.cy

If you try to enable Cycript for an App that is not SpringBoard while your device is passcode locked, you will see a warning message, since it will most likely fail for most Apps.


r/jailbreakdevelopers • • May 31 '18

[Release] Source-code and instructions for creating customizable Control Center modules on iOS 11

Thumbnail
github.com
31 Upvotes

r/jailbreakdevelopers • • Dec 01 '16

An improved version of Theos Jailed for iOS 10

Thumbnail
github.com
31 Upvotes

r/jailbreakdevelopers • • Apr 05 '21

Resource [Resource] TweakWithoutLogos | A brief tweak development guide without Logos

30 Upvotes

Link: https://github.com/EamonTracey/TweakWithoutLogos

I wrote up a quick, small guide explaining the drawbacks of Logos. I argue that any tweak developer with a Mac should ditch Logos and call substrate directly because then you may use beautiful Xcode autocompletion! The guide also contains two functionally identical tweaks, one that uses Logos and one that does not.

Check it out.


r/jailbreakdevelopers • • Jul 31 '19

[GUIDE] [BEGINNER FRIENDLY] Setting up a macOS VM including USB passthrough

30 Upvotes

Hello everyone!

I figured I'd make this post for those on Windows and who'd like get into tweak/ general iOS development but don't own a macOS PC. This one's for you guys.

In a nutshell, this will hook you up with a macOS VM WITH USB passthrough so you don't need to stress the VM/ need a lot of horsepower in case you'd use the simulator inside Xcode.

Guide can be found on my blog here

Feel free to comment, ask questions & leave your opinion as well.

You'll of course need get theos & proper SDKs, if demanded I'd create a tutorial for that too.


r/jailbreakdevelopers • • Mar 15 '19

Sending SMS Programatically iOS 12

30 Upvotes

Hello there, I'm trying to send SMS/iMessages programaticaly on iOS. I found two ways of doing it:

1. Use CTMessageCenter:

[[%c(CTMessageCenter) sharedMessageCenter] sendSMSWithText:@"Test SMS" serviceCenter:nil toAddress:@"1234567890"]

This works but does not handle iMessage and does not save the sms on the stock Messages app.

2. Use ChatKit: Example here

However this does not send anything because

CKConversationList* conversationList = [[%c(CKConversationList) sharedConversationList] hasActiveConversations];

is always false. Meaning I can not get any CKConversation to send a message to.

Is ChatKit still working on iOS 12? If yes, what am I doing wrong ? And how to send SMS/iMessages according to what is available?

Thanks


r/jailbreakdevelopers • • Apr 12 '20

[Release] Reporter - A Simple Cydia Repo Creater / Updater

Thumbnail
self.jailbreak
29 Upvotes

r/jailbreakdevelopers • • Jun 19 '16

[RELEASE] [DEV-TOOL] simject — Easily test your iOS tweaks on the iOS Simulator!

29 Upvotes

GitHub Repo URL: https://github.com/angelXwind/simject

Donate Using PayPal ([email protected]) (donations are greatly appreciated, but are not (and never will be) necessary!)

Short Introduction to simject

simject is a command-line tool and iOS dynamic library that allows developers to easily test their tweaks on the iOS Simulator.

simject is BSD-licensed. See LICENSE for more information.

Do keep in mind that just because your tweak works in the Simulator doesn't necessarily mean it'll work on an actual iOS device. Yes, in 99% of cases, it will work just fine, but there will always be some strange edge cases where this does not apply.

Also, special thanks to PoomSmart, who told me about the existence of -[UIApplication environmentVariables], which is crucial to how simject works.

See simject on GitHub for more information.


r/jailbreakdevelopers • • Nov 04 '21

Announcement Struggling getting into developing tweaks

28 Upvotes

Hello, I’ve been jailbreaking iPhone’s since I was 11 or 12 years old. I remember I would just go into Cydia and download whatever tweaks I wanted just so I could show off how “cool” my device was to friends and family.

But I never knew how much work goes into developing a tweak until I’ve recently started trying to learn how to develop tweaks myself.

I just want to take the time to truly thank everyone here for all their time and hard work. It takes the press of a button to download a tweak but so much time and work goes into creating them.

You are all amazing ! And I hope I can be half as great as all of you.