Caution
CURRENTLY SUPPORTS iOS: 27.0-27.2 ON MAIN OS
doublera1n runs the phone's own stock System volume (sealed, untouched) with a separated data volume, as /private/var. It is booted from pwned DFU (usbliter8) with a patched kernel/iBoot and comes with a rootless jailbreak.
Stock iOS still here. A normal reboot on jailbreak data volume send you to stock iOS, to boot into the jailbreak state again, put the phone into pwned DFU and run boot.sh.
This resolve 2 problems I faced while using CFW: storage (which dualboot eats a lot) and cfw (which reboot turns your device into recovery mode).
But this is not a great solution, since SEP is disable for 2nd data partition, you can't login into iCloud on this, but luckily, FairPlay still works, which means application works well.
git clone https://github.com/34306/doublera1n.git
cd doublera1n
./boot.sh
That's it. Plug the iPhone in booted into iOS (its version is read automatically), then put it into pwned DFU when it asks. The first time boot.sh installs 2nd Data (it asks for pwned DFU once more for the first boot), every time after it just boots 2nd Data.
Updated stock iOS? Plug the iPhone in booted into the new iOS and run ./boot.sh: 2nd Data is rebuilt for the new build and DataB (apps, data, jailbreak) is kept. (developing feature, not device-tested yet)
On first use it runs ./setup.sh by itself, which installs the Homebrew tools (libimobiledevice, libirecovery, ldid, libusb, ipsw) and creates .venv from requirements.txt. .venv/ is machine-local, run ./setup.sh again any time to repair it (if needed).
Prefer a menu? ./dualboot.sh (↑/↓ select, Enter run):
| Menu | What it does |
|---|---|
| Start | same as ./boot.sh: installs 2nd Data the first time, boots it after |
| SSH into 2nd Data | ssh root@ through iproxy (pinned to the phone's UDID) |
| Re-apply fixes | pushes every userland fix again over SSH (2nd Data running) |
| Remove 2nd Data | deletes DataB and our files in Preboot, back to a single stock OS |
| Dualboot: 2nd iOS | developing feature: another iOS 27.x on its own volumes, see below |
| More | pick the iOS version by hand, status / check the Mac, run setup.sh again |
Warning
When setting up 2nd Data, if the iPhone asks iPhone Partially Set Up, choose Continue with Partial Setup. Do NOT choose Erase and Start Over.
I also fixed a lot of problems such as Wifi did not auto connect when reboot, deep sleep panic the device, SEP-less panic stuff, etc. You can check patches i did in the repo as well.
Note
Developing feature. The code is in, but it has not been booted on a device yet. Expect bugs.
Besides 2nd Data (stock System + DataB), you can add a second iOS 27.x build on its own volumes:
OS2System: the system files of that build,OS2Data: its/private/var- its cryptex content (dyld shared cache) in
Preboot:/Cryptexes/ob/os2/<build>
Stock iOS and DataB are not touched, and a normal reboot still goes to stock iOS. 2nd Data has to be installed and running (the files are copied over SSH). You need about 22 GB free on the phone and about 30 GB on the Mac (IPSW + decrypted images).
./dualboot.py os2 install --build <build> # 2nd Data running
./dualboot.py os2 boot # pwned DFU
./dualboot.py os2 remove # 2nd Data running
"Remove 2nd Data" refuses while a 2nd iOS is installed (both use the same folder in Preboot): remove the 2nd iOS first.
- A Mac (support both Apple silicon and Intel) with Homebrew.
setup.shinstalls libimobiledevice, libirecovery, ldid, libusb, ipsw and creates.venv. - A usbliter8 board (RP2350) for pwned DFU. I'd recommend using the board i put the image below.
- A13: iPhone SE 2 (iPhone12,8, d79ap), iPad 9 Wi-Fi / Cellular (iPad12,1 j181ap / iPad12,2 j182ap), for iPad 9: added support but untested.
- Any iOS 27.x build of that iPhone. 2nd Data always runs the build installed on the phone (i might be extend to iOS 26 soon?).
Every patch site is found again in the IPSW of the build you pick. If Apple changes a patched function too much, wait for me until I update and support it. Only iPhone 11 Pro on 27.2 (24B119) has booted so far, Issues, PR are welcome if it broken for you.
Pre-check (lib/precheck.py) runs before anything touches the phone: it pulls only BuildManifest, kernelcache, TXM, iBSS, iBEC and DeviceTree (~70 MB) with ipsw extract --remote, builds the profile, applies every patch and checks TSS. Release builds come from ipsw.me, betas and RCs from AppleDB. If your build is on neither, give the IPSW yourself (file or URL).
./dualboot.py versions # local profiles + Apple's builds
./dualboot.py select --auto # read the build from the iPhone (USB)
./dualboot.py select --build 24B5110a # any build, betas included
./dualboot.py precheck --build <build> --ipsw <file|URL> # an IPSW you fetched yourself
TSS: if Apple doesn't sign the build anymore (old builds, betas), the newest signed build's ticket is used for the setup chain, the patched iBoot doesn't check AP images. Once installed, 2nd Data uses the ticket installed on the phone (read over UART), this UART require you to have this kind of board:
Open the patch.c file in the usbliter source code of t8030_shellcode and add the patches, then recompile
SET32(ROM_NEW_PA + 0x763C, NOP);
SET32(ROM_NEW_PA + 0x7644, 0x52800008); // mov w8, #0
SET32(ROM_NEW_PA + 0x766C, NOP);
SET32(ROM_NEW_PA + 0x795C, NOP);
doublera1n is MIT, see LICENSE. Some parts keep their own license.

