Giter Club home page Giter Club logo

allemande's Introduction

allemande

A port of allemand by evelyneee to C++.

Converts old ABI arm64e Mach-O binaries to work on latest ABI.

NOTE: This is not a complete solution, and while it works well enough for many tweaks, nobody can guarantee it'll work. Especially it seems to not work with tweaks using Swift, which includes any tweak relying on the Cephei library.

Usage:

allemande file.dylib [out.dylib]

Invoke the above on fat (final) binary, and then re-sign it with:

ldid -s out.dylib
ldid -S out.dylib

Compilation

Windows

MSVC:

cl /std:c++20 /EHsc /Feallemande.exe main.cpp

Linux/Mac

GCC:

g++ -std=c++20 -o allemande main.cpp

Clang:

clang++ -std=c++20 -o allemande main.cpp

If you're compiling it manually on iOS itself, remember to also sign it with ldid -S

iOS with Theos

make package THEOS_PACKAGE_SCHEME=rootless

Then it builds a net.p0358.allemande deb, installing which will give you allemande tool on your device.

Usage with Theos

If you want to set up your Theos to invoke allemande over compiled arm64e binaries built for rootless:

Edit the file $THEOS/makefiles/instance/rules.mk, find the line $(ECHO_MERGING)$(ECHO_UNBUFFERED)$(TARGET_LIPO) $(foreach ARCH,$(TARGET_ARCHS),-arch $(ARCH) $(THEOS_OBJ_DIR)/$(ARCH)/$(1)) -create -output "$$@"$(ECHO_END) and insert the following underneath:

ifeq ($(THEOS_PACKAGE_SCHEME),rootless)
ifneq ($(filter arm64e,$(TARGET_ARCHS)),)
    /path/to/allemande "$$@"
endif
endif

(here it assumes that you only want to run it through allemande if building for rootless, and if target archs include arm64e โ€“ all rootful jailbreaks should not require the usage of new ABI...)

Regrettably there's currently no nicer way in Theos to have a hook in between lipo and binary signing.

allemande's People

Contributors

p0358 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.