Skip to content

Installer: the Amethyst route on iOS 12.0 to 13.7 - #177

Merged
henrikklee merged 2 commits into
mainfrom
amethyst-installer
Dec 5, 2026
Merged

henrikklee merged 2 commits into
mainfrom
amethyst-installer

Conversation

@henrikklee

@henrikklee henrikklee commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Closes the installer part of #115.

What users get: an iPad or iPhone on iOS 12.0 to 13.7 splits its storage without DFU mode. The installer offers Amethyst (first choice there, ahead of checkra1n, as orchard's data says; the only choice on A12/A13 there), signs its helper app with the user's Apple ID through xtool and installs it. The device restarts once on the way; the user opens Orchard Installer again and taps Continue. orchard install --access amethyst does the same from the terminal.

How:

  • Flow: Helper::Amethyst, a helper app like Dopamine (Helper::is_app): no DFU round, same sign-in, steps and split. Where it fits comes from the data only. The "12 to 14" answer fits only a route covering all of it; a partial one (Amethyst, up to 13.7) is "may fit", checked once iOS runs.
  • Runtime: the route name maps to the helper; Amethyst's IPA is fetched ahead; the helper app goes into Amethyst (install_into(Host::Amethyst)), always signed with xtool (Xcode builds nothing for iOS 12/13), with a clear error where xtool has no build.
  • Companion: companion/out/access-ios12, its interface for iOS 12 with resize-apfs's AmethystBridge.m, the same helper, Amethyst's executable built from source (resize-apfs scripts/build-amethyst.sh), and Apple's Swift back-deployment runtime for iOS 12.0/12.1 (orchard#571 moved the data to 12.0): the interface's in the app's Frameworks, the helper's as payloads installed to /usr/libexec/orchard-companion/Frameworks (helper rpath after /usr/lib/swift). The pinned resize-apfs (cd1f9db) has Make the unresponsive wait a setting #43; resize-apfs 0.5.0/0.5.1 change no engine or Access code on top (0.5.1 only the release build script), so the pin stays.
  • UI, only existing components: the route option row gets "Amethyst" (explanation line: "Jailbreaks your iPad without DFU mode. Your iPad restarts once."); the helper-steps screen for Amethyst drops the Developer Mode step (not on iOS 12/13), names "Settings > General > Profiles & Device Management", and its note is the approved tools#115 copy "Your iPad restarts once. Open Orchard Installer again when it's back." (also on the companion's Storage access page, with UIDevice.model).
  • Tests: flow (data order, version answer, helper-app path), runtime (each host takes its build; xtool only), CLI (--access amethyst replaces the refusal test).

Never run on a device.

PRs don't build the companion, so a rehearsal run on this branch builds it (workflow_dispatch, rehearse 0.99.0).

@henrikklee henrikklee changed the title Installer: the Amethyst route on iOS 12.2 to 13.7 Installer: the Amethyst route on iOS 12.0 to 13.7 Dec 5, 2026
The board data has offered Amethyst ahead of checkra1n on iOS 12 and 13
since orchard#534 (from 12.0 since orchard#571), but the installer could
not run it: the flow had no such helper, `install --access amethyst` was
refused and the route was dropped when the data was read.

Amethyst is now a helper app as Dopamine is (Helper::is_app): no DFU
mode, signed with the user's Apple ID and installed while iOS runs, the
same sign-in, steps and split after it. Where it fits comes from the
data alone. The answer "12 to 14" to the version question takes only a
route that covers all of it (checkra1n) as fitting; one that covers part
of it (Amethyst, up to 13.7) may fit and is checked once iOS runs, so a
device on iOS 14 in DFU mode is not sent through iOS for a route that
can't take it.

The companion gets a build for Amethyst (companion/out/access-ios12):
its interface for iOS 12 with resize-apfs's AmethystBridge.m, the same
helper, Amethyst's executable built from its source by resize-apfs's
build-amethyst.sh, and Apple's Swift back-deployment runtime that iOS
12.0 and 12.1 lack: the interface's in the app's Frameworks, the
helper's as payloads the app puts into
/usr/libexec/orchard-companion/Frameworks, which the helper searches
after /usr/lib/swift. It is always signed with xtool, since Xcode builds
nothing for iOS 12 and 13; where xtool has no build the install says so.

On the device, Amethyst's steps drop Developer Mode (iOS 12 and 13 have
none) and name iOS 12's Profiles & Device Management; the note is the
approved one from tools#115: "Your iPad restarts once. Open Orchard
Installer again when it's back.", in the window, the terminal and the
companion's Storage access page.

Assisted-by: LLM
The installer's Amethyst part is built from the pinned resize-apfs; take
the release that serves the route from iOS 12.0. Its engine and Access
code are those of the previous pin.

Assisted-by: LLM
@henrikklee
henrikklee merged commit fb6d2b6 into main Dec 5, 2026
16 of 21 checks passed
@henrikklee
henrikklee deleted the amethyst-installer branch December 5, 2026 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant