Skip to content
Guest Big Announcement

Injecting Custom .Dylibs in Theos-Jailed?

Featured Replies

Good afternoon, How can I add a third-party dylib file to a theos project so that when I compile, a third-party dylib is compiled with my project?
NAME_INJECT_DYLIBS = name.dylib in makefile Doesn't work for me.

  • Author
9 minutes ago, DADi said:

You do not need the NAME_ part. Just this:


INJECT_DYLIBS = iOSGods.dylib

The iOSGods.dylib needs to be in your root project folder.

Alas, it didn't work for me again pepehands

  • Author
1 minute ago, DADi said:

What does your Makefile and project folder look like?

Shmoo's mod menu template(var/mobile/pub)
makefile:
 

INJECT_DYLIBS = pub.dylib
ARCHS = arm64
TARGET = iphone:clang:latest:latest
THEOS_PACKAGE_DIR_NAME = debs

include /var/theos/makefiles/common.mk

TWEAK_NAME = pub
pub_FILES =  Tweak.xm ModMenu.mm Hack.mm Hook.mm SliderHook.mm TextfieldHook.mm Switch.mm InfoView.mm
pub_FRAMEWORKS =  UIKit MessageUI Social QuartzCore CoreGraphics Foundation AVFoundation Accelerate GLKit SystemConfiguration
pub_LDFLAGS += -Wl,-segalign,4000,-lstdc++
pub_CFLAGS ?= -DALWAYS_INLINE=1 -Os -std=c++11 -w -s

include /var/theos/makefiles/tweak.mk

include /var/theos/makefiles/aggregate.mk

 

This is for regular theos and not theos-jailed.

The easiest way I can think of right now is adding the dylib and plist inside the /.theos/_/.../DynamicLibraries/ folder, set permissions and then dpkg -b _ the folder so both dylibs will install at the same time when the deb is installed.

 

Refer to Injecting a Cydia tweak in THEOS JAILED for kabiroberai!

 

Top of your makefile should look like this! Depends on which theos jailed you use!

TWEAK_NAME_INJECT_DYLIBS = pub.dylib                    "kabiroberai theos jailed"

INJECT_DYLIBS = pub.dylib                                                "Bishopfox theos jailed.

Updated by metr0b0y12

Archived

This topic is now archived and is closed to further replies.

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.