Compare commits

..
Author SHA1 Message Date
Mineek 84897c3563 fix: compilation on macOS 2025-12-11 14:42:13 +01:00
Nick Chan 113c5eb706 Use zstd for toolchains 2025-11-18 01:06:30 +08:00
Nick Chan 2e041a3158 Update github actions 2025-09-24 11:23:46 +08:00
Nick Chan bb0077b832 bump version 2025-09-24 11:22:00 +08:00
Nick Chan 2d795c1149 palera1n v2.2
Signed-off-by: Nick Chan <[email protected]>
2025-09-23 19:27:55 +08:00
Nick Chan 01d400af23 Update supported versions 2025-09-08 17:21:21 +08:00
Nick Chan 67805496f3 fix actions 2025-07-10 17:38:01 +08:00
Nick Chan 1389887b84 Initialize stuff_t
Signed-off-by: Nick Chan <[email protected]>
2025-07-10 17:20:57 +08:00
7 changed files with 22 additions and 21 deletions

No files matched your search

+11 -11
View File
@@ -41,7 +41,7 @@ jobs:
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
uses: tj-actions/branch-names@v9
- name: Upload artifact
if: ${{ github.event_name != 'pull_request' }}
@@ -332,7 +332,7 @@ jobs:
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
uses: tj-actions/branch-names@v9
- name: Upload artifact
if: ${{ github.event_name != 'pull_request' }}
@@ -504,7 +504,7 @@ jobs:
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
uses: tj-actions/branch-names@v9
- name: Upload artifact
if: ${{ github.event_name != 'pull_request' }}
@@ -554,24 +554,24 @@ jobs:
- name: Download toolchain checksum
run: |
curl -LO https://musl.cc/SHA512SUMS
echo "TOOLCHAIN_CHECKSUM="$(grep ${{ matrix.triple }}-cross.tgz SHA512SUMS | cut -d' ' -f1) >> $GITHUB_ENV
curl -u ${{ secrets.ACTIONS_RESOURCES_LOGIN }} -LO https://static.palera.in/action-resources/musl-cross/SHA512SUMS
echo "TOOLCHAIN_CHECKSUM="$(grep ${{ matrix.triple }}-cross.tar.zst SHA512SUMS | cut -d' ' -f1) >> $GITHUB_ENV
- name: Download toolchain (cached)
id: toolchain_cache
uses: actions/cache@v3
with:
path: ${{ matrix.triple }}-cross.tgz
path: ${{ matrix.triple }}-cross.tar.zst
key: ${{ matrix.triple }}-${{ env.TOOLCHAIN_CHECKSUM }}-toolchain
- name: Download toolchain
if: steps.toolchain_cache.outputs.cache-hit != 'true'
run: |
curl -LO https://musl.cc/${{ matrix.triple }}-cross.tgz
curl -u ${{ secrets.ACTIONS_RESOURCES_LOGIN }} -LO https://static.palera.in/action-resources/musl-cross/${{ matrix.triple }}-cross.tar.zst
- name: Setup environment
run: |
tar -xf ${{ matrix.triple }}-cross.tgz
tar --zstd -xf ${{ matrix.triple }}-cross.tar.zst
mkdir sysroot
echo "$(pwd)/${{ matrix.triple }}-cross/bin" >> $GITHUB_PATH
case ${{ matrix.triple }} in
@@ -844,7 +844,7 @@ jobs:
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
uses: tj-actions/branch-names@v9
- name: Upload artifact
if: ${{ github.event_name != 'pull_request' }}
@@ -884,10 +884,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
uses: tj-actions/branch-names@v9
- name: Download build tag
uses: actions/download-artifact@v4
+5 -5
View File
@@ -6,7 +6,7 @@
.Dt palera1n 1
.Sh NAME
.Nm palera1n
.Nd arm64 iOS/iPadOS/tvOS 15.0-18.3, bridgeOS 5.0-9.3 jailbreaking tool
.Nd arm64 iOS/iPadOS/tvOS 15.0-26.0, bridgeOS 5.0-10.0 jailbreaking tool
.Sh SYNOPSIS
.Nm
.Op Fl cCdDEfhIlLnpRsSTvV
@@ -20,14 +20,14 @@
.Op Fl -force-revert
.Sh DESCRIPTION
.Nm
jailbreaks an arm64 (arm64e excluded) iOS/iPadOS/tvOS 15.0-18.3, bridgeOS 5.0-9.2 device,
jailbreaks an arm64 (arm64e excluded) iOS/iPadOS/tvOS 15.0-26.0, bridgeOS 5.0-10.0 device,
utilizing the
.Em checkm8
bootROM exploit.
.Pp
.Nm
provides rootful and rootless jailbreak modes.
On iOS/iPadOS 15.0 and later and on tvOS 18.3 or later,
On iOS/iPadOS 15.0 and later and on tvOS 18.2 or later,
.Nm
is able to jailbreak the device in fakefs-rootful mode, where /
is writable, as well as rootless mode, where / cannot be written to.
@@ -139,13 +139,13 @@ Like
but the size of the created fakefs is smaller at the expense of having unwritable
parts in rarely-written paths. When jailbreaking 16 GB devices, this option must be used
when setting up fakefs for rootful, as they do not have enough storage for full fakefs.
This flag is supported on iOS/iPadOS 15.0 or later and tvOS 18.3 or later, as they
This flag is supported on iOS/iPadOS 15.0 or later and tvOS 18.2 or later, as they
require fakefs for rootful.
.It Fl c , -setup-fakefs
When used with
.Fl f , -fakefs ,
creates the new APFS volume required for rootful. Will fail if one already exists.
This flag is supported on iOS/iPadOS 15.0 or later and tvOS 18.3 or later, as they
This flag is supported on iOS/iPadOS 15.0 or later and tvOS 18.2 or later, as they
require fakefs for rootful.
.It Fl C , -clean-fakefs
This option is not currently supported and is a no-operation in this version of
+1 -1
View File
@@ -72,7 +72,7 @@ usb_ret_t USBBulkUpload(usb_device_handle_t handle, void *data, uint32_t len);
#endif
#ifndef PALERAIN_VERSION
#define PALERAIN_VERSION "2.1"
#define PALERAIN_VERSION "2.2.1"
#endif
#if defined(__APPLE__)
+2 -1
View File
@@ -14,6 +14,7 @@
#include <palerain.h>
#include <sys/mman.h>
#include <inttypes.h>
#include <sys/stat.h>
#ifdef TUI
#include <tui.h>
#endif
@@ -77,7 +78,7 @@ static int usage(int e, char* prog_name)
#endif
"] [-e boot arguments] [-k Pongo image] [-o overlay file] [-r ramdisk file] [-K KPF file] [-i checkra1n file]\n"
"Copyright (C) 2024, palera1n team, All Rights Reserved.\n\n"
"iOS/iPadOS/tvOS 15.0-18.3, bridgeOS 5.0-9.3 arm64 jailbreaking tool\n\n"
"iOS/iPadOS/tvOS 15.0-26.0, bridgeOS 5.0-10.0 arm64 jailbreaking tool\n\n"
"\t--version\t\t\t\tPrint version\n"
"\t--force-revert\t\t\t\tRemove jailbreak\n"
#ifdef DEV_BUILD
+1
View File
@@ -13,6 +13,7 @@
#include <getopt.h>
#include <sys/mman.h>
#include <errno.h>
#include <sys/stat.h>
int override_file(override_file_t *finfo, niarelap_file_t** orig, unsigned int *orig_len, char *filename) {
int ret = 0;
+1 -1
View File
@@ -208,7 +208,7 @@ static const int pongo_usb_product = PONGO_USB_PRODUCT;
int wait_for_pongo(void) {
kern_return_t ret;
stuff_t stuff;
stuff_t stuff = {0};
io_iterator_t found, lost;
void* cfdict_keys[3];
+1 -2
View File
@@ -180,8 +180,7 @@ static int LostDevice(libusb_context *ctx, libusb_device *dev, libusb_hotplug_ev
int wait_for_pongo(void)
{
stuff_t stuff;
stuff.handle = NULL;
stuff_t stuff = {0};
libusb_hotplug_callback_handle hp[2];
libusb_context* ctx = NULL;