From 8a912898c9b19693f6920195f323202a75c2f928 Mon Sep 17 00:00:00 2001 From: Nick Chan Date: Tue, 14 Mar 2023 17:21:59 +0800 Subject: [PATCH] build things in one action (WILL fail) --- .github/workflows/build.yml | 264 ++++++++++++++++++ .gitignore | 13 +- .gitmodules | 12 + Makefile | 8 +- download_deps.sh | 20 -- src/PongoOS | 1 + src/binpack | 1 + src/jbinit | 1 + src/loader | 1 + src/{ => palera1n}/Makefile | 0 src/{ => palera1n}/boyermoore_memmem.c | 0 src/{ => palera1n}/chkstk.S | 0 src/{ => palera1n}/credits.c | 0 src/{ => palera1n}/devhelper.c | 0 src/{ => palera1n}/dfuhelper.c | 0 src/{ => palera1n}/exec_checkra1n.c | 0 src/{ => palera1n}/fake_embedded.c | 0 src/{ => palera1n}/lock_vars.c | 0 src/{ => palera1n}/lockdown_helper.c | 0 src/{ => palera1n}/lockdown_helper.h | 0 src/{ => palera1n}/log.c | 0 src/{ => palera1n}/main.c | 0 src/{ => palera1n}/optparse.c | 0 src/{ => palera1n}/override_file.c | 0 src/{ => palera1n}/pongo_helper.c | 0 src/{ => palera1n}/tui_main.c | 0 src/{ => palera1n}/tui_screen_enter_dfu.c | 0 .../tui_screen_enter_recovery.c | 0 src/{ => palera1n}/tui_screen_jailbreak.c | 0 src/{ => palera1n}/tui_screen_main.c | 0 src/{ => palera1n}/tui_screen_options.c | 0 src/{ => palera1n}/usb.xml | 0 src/{ => palera1n}/usb_iokit.c | 0 src/{ => palera1n}/usb_libusb.c | 0 34 files changed, 290 insertions(+), 31 deletions(-) create mode 100644 .gitmodules delete mode 100755 download_deps.sh create mode 160000 src/PongoOS create mode 160000 src/binpack create mode 160000 src/jbinit create mode 160000 src/loader rename src/{ => palera1n}/Makefile (100%) rename src/{ => palera1n}/boyermoore_memmem.c (100%) rename src/{ => palera1n}/chkstk.S (100%) rename src/{ => palera1n}/credits.c (100%) rename src/{ => palera1n}/devhelper.c (100%) rename src/{ => palera1n}/dfuhelper.c (100%) rename src/{ => palera1n}/exec_checkra1n.c (100%) rename src/{ => palera1n}/fake_embedded.c (100%) rename src/{ => palera1n}/lock_vars.c (100%) rename src/{ => palera1n}/lockdown_helper.c (100%) rename src/{ => palera1n}/lockdown_helper.h (100%) rename src/{ => palera1n}/log.c (100%) rename src/{ => palera1n}/main.c (100%) rename src/{ => palera1n}/optparse.c (100%) rename src/{ => palera1n}/override_file.c (100%) rename src/{ => palera1n}/pongo_helper.c (100%) rename src/{ => palera1n}/tui_main.c (100%) rename src/{ => palera1n}/tui_screen_enter_dfu.c (100%) rename src/{ => palera1n}/tui_screen_enter_recovery.c (100%) rename src/{ => palera1n}/tui_screen_jailbreak.c (100%) rename src/{ => palera1n}/tui_screen_main.c (100%) rename src/{ => palera1n}/tui_screen_options.c (100%) rename src/{ => palera1n}/usb.xml (100%) rename src/{ => palera1n}/usb_iokit.c (100%) rename src/{ => palera1n}/usb_libusb.c (100%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7af9c3b..48eae58 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,6 +44,222 @@ jobs: localDir: 'ready/' remoteDir: '/palera1n/artifacts/c-rewrite' + build-loader: + runs-on: macos-12 + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Get loader commit + run: echo "LOADER_COMMIT=$(git -C src/loader rev-parse HEAD)" >> $GITHUB_ENV + + - name: Cache compile + id: loader_cache + uses: actions/cache@v3 + with: + path: src/loader/packages + key: loader-${{ env.LOADER_COMMIT }} + + - name: Install dependencies (packages) + if: steps.loader_cache.outputs.cache-hit != 'true' + run: | + curl -LO https://github.com/ProcursusTeam/ldid/releases/download/v2.1.5-procursus7/ldid_macosx_x86_64 + sudo install -m755 ldid_macosx_x86_64 /usr/local/bin/ldid + + - name: Compile + if: steps.loader_cache.outputs.cache-hit != 'true' + run: make -C src/loader + + - name: Upload loader + uses: actions/upload-artifact@v3 + with: + name: palera1n.ipa + path: src/loader/packages/palera1n.ipa + retention-days: 1 + + build-binpack: + needs: build-loader + runs-on: macos-12 + steps: + - name: Cache Procursus + uses: actions/cache@v3 + id: procache + with: + path: | + ~/__cache + key: ${{ runner.os }}-procursus + + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Get binpack commit + run: echo "BINPACK_COMMIT=$(git -C src/binpack rev-parse HEAD)" >> $GITHUB_ENV + + - name: Cache binpack.tgz + uses: actions/cache@v3 + id: binpack_cache + with: + path: src/jbinit/binpack.tgz + key: binpack-${{ env.BINPACK_COMMIT }} + + - name: Download loader + uses: actions/download-artifact@v3 + with: + name: palera1n.ipa + path: src/jbinit/palera1n.ipa + + - name: Checkout Procursus + if: steps.binpack_cache.outputs.cache-hit != 'true' + uses: actions/checkout@v3 + with: + repository: ProcursusTeam/Procursus + path: src/Procursus + + - name: Setup Procursus Bootstrap (install) + if: steps.procache.outputs.cache-hit != 'true' && steps.binpack_cache.outputs.cache-hit != 'true' + run: | + wget https://apt.procurs.us/bootstraps/big_sur/bootstrap-darwin-amd64.tar.zst + sudo gtar --preserve-permissions -xkf ./bootstrap-darwin-amd64.tar.zst -C / + echo '/opt/procursus/sbin:/opt/procursus/bin' >> $GITHUB_PATH + PATH=/opt/procursus/sbin:/opt/procursus/bin:$PATH sudo /opt/procursus/bin/apt update + sudo /opt/procursus/bin/apt -V full-upgrade -y || : + sudo /opt/procursus/bin/apt install asciidoc autoconf autoconf-archive automake autopoint bash bison cmake docbook-xml docbook-xsl fakeroot findutils flex file gawk git gnupg gpgrt-tools groff gzip ldid libtool libltdl-dev make ncurses-bin openssl patch pkg-config po4a python3 sed tar triehash wget xz-utils zstd -y + + - name: Add Procursus to PATH + if: steps.binpack_cache.outputs.cache-hit != 'true' + run: | + echo '/opt/procursus/sbin:/opt/procursus/bin' >> $GITHUB_PATH + + - name: Setup Procursus Bootstrap (cache) + if: steps.procache.outputs.cache-hit == 'true' && steps.binpack_cache.outputs.cache-hit != 'true' + run: | + sudo mkdir -p ~/__cache/procursus/var/cache/apt/archives/partial ~/__cache/procursus/var/lib/apt/lists/partial + sudo rsync -aP ~/__cache/procursus /opt + sudo /opt/procursus/bin/apt update + sudo /opt/procursus/bin/apt --allow-downgrades -V dist-upgrade -y + sudo /opt/procursus/bin/apt --allow-downgrades -V dist-upgrade -y + + - name: Build binpack + if: steps.binpack_cache.outputs.cache-hit != 'true' + run: | + cd src/binpack + gmake MEMO_CFVER=1800 MEMO_PREFIX=/cores/binpack binpack + cd ../.. + + - name: Process binpack.tar into binpack.tgz + if: steps.binpack_cache.outputs.cache-hit != 'true' + run: + cd src/jbinit + cp ../binpack/build_strap/iphoneos-arm64/1800/binpack.tar . + sudo tar --preserve-permissions -xf binpack.tar + sudo cp cores/binpack . + sudo chown $UID:$GID . + sudo mkdir -p binpack/Library/LaunchDaemons + sudo sed 's|/binpack|/cores/binpack|' binpack/usr/share/dropbear.plist.example > binpack/Library/LaunchDaemons/dropbear.plist + sudo rm -rf binpack/usr/share/dropbear.plist.example + sudo plutil -convert binary1 binpack/Library/LaunchDaemons/dropbear.plist + sudo chown 0:0 binpack/Library/LaunchDaemons/dropbear.plist + sudo gchmod 755 -R binpack/Library + sudo gchmod 644 binpack/Library/LaunchDaemons/dropbear.plist + tar -zcf binpack.tgz binpack + cd ../.. + + - name: Generate binpack.dmg + run: + cd src/jbinit + gmake binpack.dmg + cd ../.. + + - name: Upload binpack + uses: actions/upload-artifact@v3 + with: + name: binpack.dmg + path: src/jbinit/binpack.dmg + retention-days: 1 + + - name: Copy Procursus to Cache Location + run: | + sudo mkdir -p ~/__cache + sudo rsync -aP /opt/procursus ~/__cache + sudo rm -rf ~/__cache/procursus/var/cache/apt/archives/partial ~/__cache/procursus/var/lib/apt/lists/partial ~/__cache/procursus/Library/dpkg/triggers/Lock + + build-jbinit: + needs: [build-binpack] + runs-on: macos-12 + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Get jbinit commit + run: echo "JBINIT_COMMIT=$(git -C src/jbinit rev-parse HEAD)" >> $GITHUB_ENV + + - name: Cache jbinit + uses: actions/cache@v3 + id: jbinit_cache + with: + path: src/jbinit/ramdisk.dmg + key: jbinit-${{ env.JBINIT_COMMIT }} + + - name: Build jbinit + if: steps.jbinit_cache.cache_hit != 'true' + run: | + cd src/jbinit + sudo cp -a $(xcrun -sdk macosx --show-sdk-path)/usr/include/{xpc,{launch,bootstrap}.h} $(xcrun -sdk iphoneos --show-sdk-path)/usr/include + sudo sed -i.bak -Ee 's/API_UNAVAILABLE\(.*\)//g' $(xcrun -sdk iphoneos --show-sdk-path)//System/Library/Frameworks/CoreFoundation.framework/Headers/CFUserNotification.h + sudo sed -i.bak -e 's/;}/;/g' $(xcrun -sdk iphoneos --show-sdk-path)//System/Library/Frameworks/CoreFoundation.framework/Headers/CFUserNotification.h + sudo sed -i.bak -e 's/__UNAVAILABLE_PUBLIC_IOS;/;/g' $(xcrun -sdk iphoneos --show-sdk-path)/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h + ruby -e "File.write(ARGV[0], File.read(ARGV[0]).gsub(ARGV[1]) { ARGV[2] })" $(xcrun -sdk iphoneos --show-sdk-path)/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h '__API_DEPRECATED_WITH_REPLACEMENT("kIOMainPortDefault", macos(10.0, 12.0)) __API_UNAVAILABLE(ios, watchos, tvos);' '__API_DEPRECATED_WITH_REPLACEMENT("kIOMainPortDefault", macos(10.0, 12.0)) /*__API_UNAVAILABLE(ios, watchos, tvos)*/;' + sudo tar -xf --preserve-permissions binpack.tgz + sudo chown $UID:$GID . + sudo gmake ramdisk.dmg + + - name: Upload ramdisk + uses: actions/upload-artifact@v3 + with: + name: ramdisk.dmg + path: src/jbinit/ramdisk.dmg + retention-days: 1 + + build-kpf: + runs-on: ubuntu-20.04 + steps: + - name: Install toolchain + run: | + echo 'deb https://assets.checkra.in/debian /' | sudo tee /etc/apt/sources.list.d/checkra1n.list + sudo apt-key adv --fetch-keys https://assets.checkra.in/debian/archive.key + sudo apt-get update + sudo apt-get install -y ld64 cctools-strip + - name: Voodoo magic + id: voodoo + uses: actions/cache@v2 + with: + key: ${{ github.event_name }}-${{ github.ref }}-${{ github.run_id }} + restore-keys: | + pongo-${{ github.ref }}- + pongo- + path: | + ** + - name: Checkout repository + if: steps.voodoo.outputs.cache-hit != 'true' + uses: actions/checkout@v2 + with: + submodules: true + - name: Update repository + if: steps.voodoo.outputs.cache-hit == 'true' + run: | + git fetch --all + git reset --hard origin/$(git branch --show-current) + git submodule update --recursive --remote + - name: Compile + run: | + EMBEDDED_CC='clang-10' EMBEDDED_AR='llvm-ar-10' EMBEDDED_RANLIB='llvm-ranlib-10' DEV_BUILD=1 make build/checkra1n-kpf-pongo + build-darwin: strategy: matrix: @@ -61,6 +277,7 @@ jobs: os: iphoneos minos: 7.0 runs-on: macos-12 + needs: [build-loader, build-jbinit, build-binpack, build-kpf] env: MBEDTLS_VERSION: 3.3.0 READLINE_VERSION: 8.2 @@ -85,6 +302,24 @@ jobs: - name: Download dependencies (embedded binaries) run: | echo "SDK=$(xcrun -sdk ${{ matrix.os }} --show-sdk-path)" >> $GITHUB_ENV + + - name: Download binpack.dmg + uses: actions/download-artifact@v3 + with: + name: binpack.dmg + path: src/palera1n/binpack.dmg + + - name: Download ramdisk.dmg + uses: actions/download-artifact@v3 + with: + name: ramdisk.dmg + path: src/palera1n/ramdisk.dmg + + - name: Download checkra1n-kpf-pongo + uses: actions/download-artifact@v3 + with: + name: checkra1n-kpf-pongo + path: src/palera1n/checkra1n-kpf-pongo - name: Download dependencies (source code) run: | @@ -391,6 +626,7 @@ jobs: - armel-linux-musleabi - aarch64-linux-musl runs-on: ubuntu-latest + needs: [build-loader, build-jbinit, build-binpack, build-kpf] env: MBEDTLS_VERSION: 3.3.0 LIBUSB_VERSION: 1.0.26 @@ -429,6 +665,24 @@ jobs: run: | curl -LO https://musl.cc/${{ matrix.triple }}-cross.tgz + - name: Download binpack.dmg + uses: actions/download-artifact@v3 + with: + name: binpack.dmg + path: src/palera1n/binpack.dmg + + - name: Download ramdisk.dmg + uses: actions/download-artifact@v3 + with: + name: ramdisk.dmg + path: src/palera1n/ramdisk.dmg + + - name: Download checkra1n-kpf-pongo + uses: actions/download-artifact@v3 + with: + name: checkra1n-kpf-pongo + path: src/palera1n/checkra1n-kpf-pongo + - name: Setup environment run: | tar -xf ${{ matrix.triple }}-cross.tgz @@ -664,3 +918,13 @@ jobs: dryRun: false localDir: 'ready/' remoteDir: '/palera1n/artifacts/c-rewrite' + + delete-artifacts: + runs-on: ubuntu-latest + needs: [darwin-dist, build-Linux] + steps: + - name: Delete all artifacts on GitHub + uses: geekyeggo/delete-artifact@v2 + with: + name: '*' + failOnError: false diff --git a/.gitignore b/.gitignore index 56b49d6..5f14a61 100644 --- a/.gitignore +++ b/.gitignore @@ -7,18 +7,17 @@ contrib/ .vscode checkra1n* payload.c -src/palera1n +src/palera1n/palera1n !xxd-embedded.h -src/binpack.dmg -src/ramdisk.dmg -src/xxd-*.c +src/palera1n/binpack.dmg +src/palera1n/ramdisk.dmg +src/palera1n/xxd-*.c .DS_Store !palera1n.1 palera1n.1.html Payload docs/*.html build -src/*.dmg.c +src/palera1n/*.dmg.c .idea -src/stage2/ -src/libcheckra1nhelper.dylib* +src/palera1n/libcheckra1nhelper.dylib* diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a38424f --- /dev/null +++ b/.gitmodules @@ -0,0 +1,12 @@ +[submodule "src/PongoOS"] + path = src/PongoOS + url = git@github.com:plooshi/PongoOS.git +[submodule "src/jbinit"] + path = src/jbinit + url = git@github.com:palera1n/jbinit.git +[submodule "src/loader"] + path = src/loader + url = git@github.com:palera1n/loader.git +[submodule "src/binpack"] + path = src/binpack + url = git@github.com:palera1n/binpack.git diff --git a/Makefile b/Makefile index 7190fcf..0385dee 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ STRIP = strip CC ?= cc CFLAGS += -I$(DEP)/include -I$(SRC)/include -I$(SRC) CFLAGS += -Wall -Wextra -DPALERAIN_VERSION=\"2.0.0\" -Wall -Wextra -Wno-unused-parameter -CFLAGS += -Wno-unused-variable -I$(SRC)/src -std=c99 -pedantic-errors -D_C99_SOURCE -D_POSIX_C_SOURCE=200112L -D_DARWIN_C_SOURCE +CFLAGS += -Wno-unused-variable -I$(SRC)/src/palera1n -std=c99 -pedantic-errors -D_C99_SOURCE -D_POSIX_C_SOURCE=200112L -D_DARWIN_C_SOURCE LIBS += $(DEP)/lib/libimobiledevice-1.0.a $(DEP)/lib/libirecovery-1.0.a $(DEP)/lib/libusbmuxd-2.0.a LIBS += $(DEP)/lib/libimobiledevice-glue-1.0.a $(DEP)/lib/libplist-2.0.a -pthread ifeq ($(TARGET_OS),) @@ -61,14 +61,14 @@ export SRC DEP CC CFLAGS LDFLAGS LIBS TARGET_OS DEV_BUILD BUILD_DATE BUILD_TAG B all: palera1n palera1n: download-deps - $(MAKE) -C src + $(MAKE) -C src/palera1n clean: - $(MAKE) -C src clean + $(MAKE) -C src/palera1n clean $(MAKE) -C docs clean download-deps: - $(MAKE) -C src checkra1n-macos checkra1n-linux-arm64 checkra1n-linux-armel checkra1n-linux-x86 checkra1n-linux-x86_64 checkra1n-kpf-pongo ramdisk.dmg binpack.dmg + $(MAKE) -C src/palera1n checkra1n-macos checkra1n-linux-arm64 checkra1n-linux-armel checkra1n-linux-x86 checkra1n-linux-x86_64 checkra1n-kpf-pongo ramdisk.dmg binpack.dmg docs: $(MAKE) -C docs diff --git a/download_deps.sh b/download_deps.sh deleted file mode 100755 index 42d8cc0..0000000 --- a/download_deps.sh +++ /dev/null @@ -1,20 +0,0 @@ -curl -LOOOOOO \ - https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v3.3.0.tar.gz \ - https://github.com/libusb/libusb/releases/download/v1.0.26/libusb-1.0.26.tar.bz2 \ - https://mirror-hk.koddos.net/gnu/readline/readline-8.2.tar.gz \ - https://www.jedsoft.org/releases/slang/slang-2.3.3.tar.bz2 \ - https://releases.pagure.org/newt/newt-0.52.23.tar.gz \ - https://github.com/rpm-software-management/popt/archive/master-release.tar.gz - -tar xf v3.3.0.tar.gz -tar xf libusb-1.0.26.tar.bz2 -tar xf readline-8.2.tar.gz -tar xf slang-2.3.3.tar.bz2 -tar xf newt-0.52.23.tar.gz -tar xf master-release.tar.gz - -git clone --depth=1 https://github.com/libimobiledevice/libplist -git clone --depth=1 https://github.com/libimobiledevice/libimobiledevice-glue -git clone --depth=1 https://github.com/libimobiledevice/libirecovery -git clone --depth=1 https://github.com/libimobiledevice/libusbmuxd -git clone --depth=1 https://github.com/libimobiledevice/libimobiledevice diff --git a/src/PongoOS b/src/PongoOS new file mode 160000 index 0000000..f3e1294 --- /dev/null +++ b/src/PongoOS @@ -0,0 +1 @@ +Subproject commit f3e1294f42c5f04893da70608891ece7a2093567 diff --git a/src/binpack b/src/binpack new file mode 160000 index 0000000..815e866 --- /dev/null +++ b/src/binpack @@ -0,0 +1 @@ +Subproject commit 815e866ac2ccb1df80f9e9e401593d591cafab31 diff --git a/src/jbinit b/src/jbinit new file mode 160000 index 0000000..4c47589 --- /dev/null +++ b/src/jbinit @@ -0,0 +1 @@ +Subproject commit 4c47589482bcbd2ad967fbc5ad9e8a91ae69d90b diff --git a/src/loader b/src/loader new file mode 160000 index 0000000..d73b4ac --- /dev/null +++ b/src/loader @@ -0,0 +1 @@ +Subproject commit d73b4ac49f6dedbbb0876b699873f79c47613146 diff --git a/src/Makefile b/src/palera1n/Makefile similarity index 100% rename from src/Makefile rename to src/palera1n/Makefile diff --git a/src/boyermoore_memmem.c b/src/palera1n/boyermoore_memmem.c similarity index 100% rename from src/boyermoore_memmem.c rename to src/palera1n/boyermoore_memmem.c diff --git a/src/chkstk.S b/src/palera1n/chkstk.S similarity index 100% rename from src/chkstk.S rename to src/palera1n/chkstk.S diff --git a/src/credits.c b/src/palera1n/credits.c similarity index 100% rename from src/credits.c rename to src/palera1n/credits.c diff --git a/src/devhelper.c b/src/palera1n/devhelper.c similarity index 100% rename from src/devhelper.c rename to src/palera1n/devhelper.c diff --git a/src/dfuhelper.c b/src/palera1n/dfuhelper.c similarity index 100% rename from src/dfuhelper.c rename to src/palera1n/dfuhelper.c diff --git a/src/exec_checkra1n.c b/src/palera1n/exec_checkra1n.c similarity index 100% rename from src/exec_checkra1n.c rename to src/palera1n/exec_checkra1n.c diff --git a/src/fake_embedded.c b/src/palera1n/fake_embedded.c similarity index 100% rename from src/fake_embedded.c rename to src/palera1n/fake_embedded.c diff --git a/src/lock_vars.c b/src/palera1n/lock_vars.c similarity index 100% rename from src/lock_vars.c rename to src/palera1n/lock_vars.c diff --git a/src/lockdown_helper.c b/src/palera1n/lockdown_helper.c similarity index 100% rename from src/lockdown_helper.c rename to src/palera1n/lockdown_helper.c diff --git a/src/lockdown_helper.h b/src/palera1n/lockdown_helper.h similarity index 100% rename from src/lockdown_helper.h rename to src/palera1n/lockdown_helper.h diff --git a/src/log.c b/src/palera1n/log.c similarity index 100% rename from src/log.c rename to src/palera1n/log.c diff --git a/src/main.c b/src/palera1n/main.c similarity index 100% rename from src/main.c rename to src/palera1n/main.c diff --git a/src/optparse.c b/src/palera1n/optparse.c similarity index 100% rename from src/optparse.c rename to src/palera1n/optparse.c diff --git a/src/override_file.c b/src/palera1n/override_file.c similarity index 100% rename from src/override_file.c rename to src/palera1n/override_file.c diff --git a/src/pongo_helper.c b/src/palera1n/pongo_helper.c similarity index 100% rename from src/pongo_helper.c rename to src/palera1n/pongo_helper.c diff --git a/src/tui_main.c b/src/palera1n/tui_main.c similarity index 100% rename from src/tui_main.c rename to src/palera1n/tui_main.c diff --git a/src/tui_screen_enter_dfu.c b/src/palera1n/tui_screen_enter_dfu.c similarity index 100% rename from src/tui_screen_enter_dfu.c rename to src/palera1n/tui_screen_enter_dfu.c diff --git a/src/tui_screen_enter_recovery.c b/src/palera1n/tui_screen_enter_recovery.c similarity index 100% rename from src/tui_screen_enter_recovery.c rename to src/palera1n/tui_screen_enter_recovery.c diff --git a/src/tui_screen_jailbreak.c b/src/palera1n/tui_screen_jailbreak.c similarity index 100% rename from src/tui_screen_jailbreak.c rename to src/palera1n/tui_screen_jailbreak.c diff --git a/src/tui_screen_main.c b/src/palera1n/tui_screen_main.c similarity index 100% rename from src/tui_screen_main.c rename to src/palera1n/tui_screen_main.c diff --git a/src/tui_screen_options.c b/src/palera1n/tui_screen_options.c similarity index 100% rename from src/tui_screen_options.c rename to src/palera1n/tui_screen_options.c diff --git a/src/usb.xml b/src/palera1n/usb.xml similarity index 100% rename from src/usb.xml rename to src/palera1n/usb.xml diff --git a/src/usb_iokit.c b/src/palera1n/usb_iokit.c similarity index 100% rename from src/usb_iokit.c rename to src/palera1n/usb_iokit.c diff --git a/src/usb_libusb.c b/src/palera1n/usb_libusb.c similarity index 100% rename from src/usb_libusb.c rename to src/palera1n/usb_libusb.c