diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2ba817e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.theos diff --git a/Entitlements.plist b/Entitlements.plist new file mode 100644 index 0000000..c3ba69c --- /dev/null +++ b/Entitlements.plist @@ -0,0 +1,20 @@ + + + + + com.apple.springboard.launchapplications + + platform-application + + get-task-allow + + proc_info-allow + + task_for_pid-allow + + run-unsigned-code + + com.apple.system-task-ports + + + diff --git a/Makefile b/Makefile index 08e0ba8..1ccbef0 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ THEOS_BUILD_DIR = build +DEBUG = 0 include theos/makefiles/common.mk @@ -6,3 +7,14 @@ TOOL_NAME = ondeviceconsole ondeviceconsole_FILES = main.m include $(THEOS_MAKE_PATH)/tool.mk + + +all:: + +sync: stage + ./jtool --sign --ent ./Entitlements.plist .theos/obj/arm64/ondeviceconsole + mv out.bin .theos/obj/arm64/ondeviceconsole + ./jtool --sign --ent ./Entitlements.plist .theos/obj/armv7/ondeviceconsole + mv out.bin .theos/obj/armv7/ondeviceconsole + lipo -create .theos/obj/arm64/ondeviceconsole .theos/obj/armv7/ondeviceconsole -output .theos/ondeviceconsole + rsync -e "ssh -p 2222" -avz .theos/ondeviceconsole root@127.0.0.1:/usr/bin/ondeviceconsole diff --git a/jtool b/jtool new file mode 100755 index 0000000..362d0da Binary files /dev/null and b/jtool differ