feat(tools): add TrollStore deploy script - #18
Merged
Conversation
Shipping a patched IPA to a device was a manual scp + ssh dance, and two device-specific gotchas kept biting: trollstorehelper cannot read /tmp (error 166), and its location differs between TrollStore and TrollStore Lite installs. deploy.sh stages into /var/mobile/Documents with a chown to mobile, auto-discovers the helper while filtering out stale PersistenceHelper leftovers, kills the running process so the new binary actually dyld_loads, and tolerates the ssh exit 255 that a mid-install SpringBoard restart produces. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
port_recipe re-resolves a recipe's SITES table against a new target's dump index, rewriting the RVA and prologue columns while preserving row order. That order is load-bearing: cave payloads are allocated in declaration order while the dispatcher indexes by hook id, so the two only agree when position equals id. verify_offsets diffs il2cpp field offsets between two dump.cs files. Prologue checks catch a moved method, but nothing catches a moved field — a class that gains a member above the one a hook reads silently shifts every offset below it. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
tools/deploy.sh— ships a patched IPA to an iOS device and installs it through TrollStore over SSH.Why
Deploying was a manual
scp+sshdance, and two device-specific gotchas kept biting:trollstorehelperruns sandboxed and cannot read/tmp/— an IPA staged there is rejected with return code 166 even though the file is physically present. The script stages into/var/mobile/Documents/andchowns tomobile.TrollStoreLite.app, and filters out staleTrollStorePersistenceHelper.appleftovers whose entitlements have been invalidated (they SIGKILL with exit 137 / ssh 255).It also
killalls the running process before install — otherwiseopen <bundle-id>front-restores the old in-memory instance and the new binary neverdyld_loads, which reads as "the tweak didn't take effect".trollstorehelpercommonly restarts SpringBoard mid-install, yanking the SSH session and returning exit 255 despite a successful install; that specific exit is tolerated, any other non-zero exit propagates.Test plan
deploy.sh --ipa <patched.ipa> --host host.docker.internal --port 2222 --bundle-id com.neconome.shogiinstalls and relaunches on a TrollStore Lite deviceTrollStoreLite.appwhen both flavours are present🤖 Generated with Claude Code