palera1n(1) General Commands Manual palera1n(1)

palera1narm64 iOS/iPadOS/tvOS 15.0-17.5, bridgeOS 5.0-8.3 jailbreaking tool

palera1n [-cCdDEfhIlLnpRsSTvV] [-e Boot arguments] [-k Pongo image] [-o overlay file] [-r ramdisk file] [-K KPF file] [-i checkra1n file] [--version] [--force-revert]

palera1n jailbreaks an iOS/iPadOS/tvOS 15.0-17.5, bridgeOS 6.0-8.3 device with an arm64 (arm64e excluded) on iOS 15.0-17.5, utilizing the checkm8 bootROM exploit.

palera1n provides rootful and rootless jailbreak modes. On iOS/iPadOS, palera1n is able to jailbreak the device in fakefs-rootful mode, where / is writable, as well as rootless mode, where / cannot be written to. On tvOS and bridgeOS, only rootful is supported, and it uses the actual filesystem instead of a fakefs.

Due to the nature of the checkm8 exploit, palera1n is semi-tethered. That is, you must run the palera1n tool after the device reboot in order to enter the jailbroken state. However, it is not required for the device to boot.

On A11 devices, that is, iPhone 8, iPhone 8 Plus and iPhone X, the passcode cannot be used.

On iOS 15, the passcode must be off while jailbroken.

On iOS 16, the passcode must be off since restore, and from settings app counts as a restore. A backup may be used in this case.

In the remainder of this document, the term "iOS" and "iPadOS" will be used interchangably as the difference is negligible as far as the jailbreak is concerened.

As described above, arm64 iOS 15.0-17.5 devices are supported, here is an explicit list of supported devicecs:

iPhone 6s
 
iPhone 6s Plus
 
iPhone SE (2016)
 
iPhone 7
 
iPhone 7 Plus
 
iPhone 8
 
iPhone 8 Plus
 
iPhone X
 

iPad mini 4
 
iPad Air 2
 
iPad (5th generation)
 
iPad (6th generation)
 
iPad (7th generation)
 
iPad Pro (9.7")
 
iPad Pro (12.9") (1st generation)
 
iPad Pro (10.5")
 
iPad Pro (12.9") (2nd generation)
 

iPod Touch (7th generation)
 

Apple TV HD
 
Apple TV 4K (1st generation)
 

Apple T2 iMacPro1,1
 
Apple T2 MacBookPro15,1
 
Apple T2 MacBookPro15,2
 
Apple T2 Macmini8,1
 
Apple T2 MacPro7,1
 
Apple T2 MacBookPro15,3
 
Apple T2 MacBookAir8,1
 
Apple T2 MacBookPro15,4
 
iBridge2,11 (Unknown Mac)
 
Apple T2 MacBookAir8,2
 
iBridge2,13 (Unknown Mac)
 
Apple T2 MacBookPro16,1
 
Apple T2 MacBookAir9,1
 
Apple T2 MacBookPro16,2
 
Apple T2 iMac20,1
 
Apple T2 iMac20,2
 
Apple T2 MacBookPro16,3
 
Apple T2 MacBookPro16,4
 

Support for the A8 HomePod on Darwin 21 and above could be added, but it is currently unsupported.

arm64e devices will NEVER be supported.

Prints the program version and exit.
Remove the jailbreak while keeping user data. Some jailbreak files may remain after running this command. Additionally, jailbreak apps may remain on the home screen on for a while even when the files are deleted as the icon cache still has their icons. When used with -f, --fakefs, this will actually boot the device in rootless mode then delete the jailbreak files. As a result, using the loader app to install the jailbreak environment is not supported when this option is used together with -f, --fakefs .
, --setup-fakefs-partial
Like -c, --setup-fakefs 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 only supported on iOS/iPadOS.
, --setup-fakefs
When used with -f, --fakefs, creates the new APFS volume required for rootful. Will fail if one already exists. This flag is only supported on iOS/iPadOS.
, --clean-fakefs
This option is not currently supported and is a no-operation in this version of palera1n .
, --demote
Set the effective production fuse to 0, so as to enable hardware debugging features.
, --dfuhelper
Execute the DFU helper to guide the user into putting the device into DFU mode then exit.
, --boot-args boot arguments
Specify custom XNU kernel command line. The argument is used by palera1n and cannot be overriden. Additionally, the argument is used during fakefs setup.
, --enter-recovery
Exit after entering recovery mode.
, --fakefs
Proceed in rootful mode. This applies to both full, partial fakefs, as well as realfs. This option is not supported on iOS/iPadOS 17.
, --help
Prints help text.
, --checkra1n-file checkra1n file
Specify the path to a custom checkra1n file.
, --override-pongo pongo file
Override PongoOS image. The raw image, named when built, should be used. PongoOS 2.6.0 or later is required.
, --override-kpf KPF file
Override the kernel patchfinder PongoOS module. The module is required to support setting root filesystem in paleinfo with command. If in doubt, use iOS15 branch or your own fork of it.
, --rootless
Proceed in rootless mode. This option is only supported on iOS/iPadOS.
, --jbinit-log-to-file
This option is not currently supported and is a no-operation in this version of palera1n .
, --exit-recovery
Exit recovery mode and exit.
, --override-overlay overlay file
Specify the path to a custom overlay file, which is then mounted onto /cores/binpack during boot, if the default ramdisk is used. The default ramdisk expects the overlay to contain a folder named at the root of it, as well as a dmg named at the root of it. Otherwise, the device will not boot. It is also expected that it contains a shell, a ssh server, and various command line utilities.
, --pongo-shell
Exit after booting into a clean PongoOS shell
, --pongo-full
Like -p, --pongo-shell but default images and options have been uploaded and applied respectively.
, --override-ramdisk ramdisk file
Override the ramdisk. At a very minimum, it should contain as well as a fake dyld where the logic is expected to be in.
, --reboot-device
Reboot device in normal mode and exit.
, --safe-mode
Enter safe mode. An alert will be displayed on iOS/iPadOS/tvOS. Jailbreak daemons nor early boot executable files specified (see FILES section below) will be executed. The loader app and the built in SSH server can still be used, as well as any jailbreak-specific apps you have installed.
, --no-colors
Disable colors on the command line. External programs like checkra1n clones may still output colors.
, --telnetd
Enable the TELNET daemon on port 46, all interfaces. Please note that there is no authentication and is therefore insecure.
, --debug-logging
Enable debug logging. The option may be repeated for extra verbosity.
, --verbose-boot
Boots the device in verbose mode, allowing boot logs to be seen.
, --device-info
Prints info about device and exits.

This environmental variable should contain the a directory for temporary files. Without the -i, --override-checkra1n option, files must be executable from it as the built-in checkra1n file is extracted and executed here. When not set, /tmp is used.

To (re-)jailbreak in rootless mode:

palera1n

To setup fakefs for rootful mode:

palera1n -fc

After the device has rebooted, follow the following example.

To re-jailbreak in rootful mode:

palera1n -f

To remove the jailbreak in rootful mode:

palera1n --force-revert -f

To remove the jailbreak in rootless mode:

palera1n --force-revert

To verbose boot in rootful mode:

palera1n -Vf

To create a partial fakefs with bind mounts:

palera1n -Bf

To exit recovery mode:

palera1n -n

-v is not a real XNU boot argument. It is interpreted by iBoot. However, since XNU boot arguments are set in PongoOS, which is ran after iBoot has ran, it does nothing. To verbose boot, use the -V, --verbose-boot option when jailbreaking.

Fakefs takes up around 5-10 GB of storage, and take up to 10 minutes to setup.

iOS 15.0 requires DER entitlements, and iOS 15.1 requires hash agility in code signatures. As a result, binaries with the old code signature format need to be resigned with a recent version of the Procursus fork of ldid(1) before they can be ran on a device jailbroken with palera1n .

When using rootful mode, the -f, --fakefs flag must be specified at all times. It does not matter whether you want to create fakefs, create partial fakefs, rejailbreak or remove jailbreak.

Due to a stock bug, using the -V, --verbose-boot option might cause some versions for tvOS to crash and not boot.

Offical Apple USB-C cables as well as some other USB-C cables cannot be used to enter DFU mode. USB-A cable with male USB-C to female USB-A adapter works fine.

The palera1n loader app will take up to 30 seconds to appear on the homescreen after the device has booted. If it does not appear, you can try using the shortcut:

https://www.icloud.com/shortcuts/8cd5f489c8854ee0ab9ee38f2e62f87d

to open it. After opening the loader app, select a package manager to install. This will also bootstrap your device.

A built-in SSH server runs on port 44 on loopback interfaces.

The palera1n loader app will appear on homescreen. Open the loader and select a package manager to install. This will also bootstrap your device.

A built-in SSH server runs on port 44 on all interfaces.

A built-in SSH server runs on port 44 on all interfaces.

Bootstrapping is currently not supported on this device.

During the jailbreak process, a temporary filesystem is mounted on /cores as a place to stash jailbreak files needed during the boot process. No files are ever written onto the actual disk if you do not use the SSH server to write files or using the loader app to install additional jailbreak files.

/cores
The location of the temporary filesystem where jailbreak files are stash during boot.
/Library/LaunchDaemons
The directory where jailbreak-specific launchd.plist(5) property list files should be placed on rootful.
/var/jb/Library/LaunchDaemons
The directory where jailbreak-specific launchd.plist(5) property list files should be placed on rootless.
/etc/rc.d
The directory where executable filse that needs to be executed during boot, before daemons are launched, are placed rootful. They are executed after all filesystems has been mounted.
/var/jb/etc/rc.d
The directory where executable files that needs to be executed during boot, before daemons are launched, are placed on rootless. They are executed after all filesystems has been mounted.

palera1n may crash if the machine it is running on:

- Has non-compliant USB devices plugged in

The exploit may also work less reliably on some hosts, like AMD desktops, or some MediaTek devices.

The device may randomly crash and reboot due to launchd using too much memory.

The built-in SSH server might be not accessible with password after bootstrapping rootful, since the bootstrap uses a custom crypt() function that is not supported by the built-in SSH server.

There are no DFU instructions for iBridge T2 as there are no known ways to connect to the T2's USB interface when macOS has been booted.

There was an option in palera1n to force create the fakefs even when one already exists (which would overwrite the existing fakefs), by setting the palerain_option_setup_rootful_forced flag in palera1n flags. This option was removed because using --force-revert and -c at the same time has exactly the same effect.

The hook that enabled has been removed, since it leaks memory in launchd.

launchd(8) launchd.plist(5) ldid(1) p1ctl(8)

The palera1n jailbreak was first written by Nebula and Mineek on September 26, 2022, as a shell script. Tweak support with DEVELOPMENT kernels are added on October 2, 2022. RELEASE kernel support is added on November 14, 2022. iOS 16 Support is added on December 13, 2022. Later, the first attempt to rewrite palera1n into C begins on January 01 2023. The palera1n utility described here is the second attempt, which first started on January 16, 2023, using checkra1n 1337 and a custom KPF. Something happened on August 15, 2023.

30 March 2024