# FINDINGS — RootHide iPhone X (iOS 16.7.16), build 41 live debugging

Legend: [V] = verified live on device, [S] = static analysis of build-info/Driver binary, [I] = inferred.

## Environment facts
- [V] Root shell = posix_spawn from `sysdiagd` (frida-server) via 127.0.0.1:7777, frida 17.27.4 venv `fv17`.
- [V] `system()` unusable on iOS; posix_spawn from `libSystem.B.dylib` works; shell = `<JB>/bin/sh`.
- [V] RootHide only trusts binaries under `.jbroot-*` — app installed to `<JB>/Applications/Driver.app`, registered with `uicache`.
- [V] Real media path = `/rootfs/private/var/mobile/Media`; `/var/mobile/Media` seen by JB processes is a shadow copy.
- [V] Frida 17 removed the ObjC bridge — drive `libobjc` with NativeFunction instead.
- [V] `Backtracer.ACCURATE` hangs on this target — use FUZZY only; `Interceptor.attach` fails on the 8-instruction getter at 0x298ec ("unable to intercept function").

## What the app does at startup (build 41 on the X)
- [V] App spawns, stays alive, **black screen** — same as iPhone 15 Pro. Reproduces the bug.
- [V] Live process: ~5–6 threads, **all waiting**, parked in CFRunLoop. **No Flutter threads ever created.**
- [V] Flag getter `0x298ec` (`return *(u8*)(obj+0x80) & 1`) fired 30,447× in one burst, then stopped.
      It is called from 300+ sites — a generic "is ready" poller, not a state initializer.
- [V] Flag setter `0x18e58` called exactly **once** from `0x2a58c`; check `0x42408` returned **1**; flag byte = **1**.
      => init-flag machinery works; the wait loops are NOT the blocker.
- [V] Never fired: verdict assembly `0xe0d0`, notify `0xe074`, get `0x4174`, addListener `0x5730`,
      Driver scene fn `0x3271c`, gate `0x32bf8`, presenter `0x22c740`.
- [V] ObjC runtime state of the stuck app:
      - app delegate class = `Function_UmcOPEDGyT`
      - 1 UIWindowScene, 1 UIWindow
      - **UIWindow: hidden = 1, key = 0, rootViewController = nil**  ← the black screen itself

## Current working hypothesis
[I] Startup completes native init, but the point that should create the root view controller
    (Flutter) and call `makeKeyAndVisible` never runs or bails — leaving a hidden, empty window.

## ROOT CAUSE (verified 2026-11-23, live + static)
- [V] The shield (build-info) supplies BOTH UIKit delegates:
      - app delegate `Function_UmcOPEDGyT` — 5 methods, all IMPs in build-info
        (`didFinishLaunching` = build-info+0x28feb8, `configurationForConnectingSceneSession:` = +0x292198)
      - scene delegate `Function_JgvFbyFH` — 9 methods, all in build-info
        (`scene:willConnectToSession:options:` = build-info+0x298158)
      The real `Driver.AppDelegate` / `Driver.SceneDelegate` IMPs are NEVER called (spawn-time
      hooks on all of them: zero hits).
- [V] Stalker call-trace of the shield's didFinishLaunching: 2831 build-info calls; it loads a
      bundle resource, parses config, calls `setDetectFlags:`, computes device UUID hash, creates
      `[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds`, `[self setWindow:]`,
      allocs its own root VC (`[g_7fd100 alloc] init`, responds to `setDetectFlags:`), then calls
      **`[window setRootViewController: VC]` (stub 0x761460) and `[window makeKeyAndVisible]` (stub 0x760d20)**
      — and returns YES. Nothing else ever runs after it (no Flutter, no scene delegate wiring visible).
- [V] **Those three stubs are NEUTERED to `ret`**: 0x761460, 0x760d20, 0x760200 each begin with
      `d65f03c0` (ret); the real msgSend stub bodies sit at +4 and are never reached. They are the
      "overlay prims" from the inherited patch list:
        0x761460 = `[X setRootViewController:]`   (selref 0x7fceb8)
        0x760d20 = `[X makeKeyAndVisible]`        (selref 0x7fcce8)
        0x760200 = `[X addSubview:]`              (selref 0x7fca20)
      Call sites: 0x291590/0x2915d8 (didFinishLaunching), 0x298394/0x298500 (shield scene delegate
      willConnect), 0x2932d8/0x293404/0x293d8c (overlay renderer).
- [V] The empty/hidden window (rootViewController=nil, hidden=1) is the DIRECT result: every UI
      wiring call is a silent no-op. This is the black screen. No verdict code ever fires because
      the engine's UI-driven check phase never starts.
- [I] The "overlay prims" stub in the inherited patch set was meant to suppress the ban-screen
      overlay, but the shield routes ALL window wiring through the same three prims, so it also
      suppresses the app itself.

## FIX (build 43, one variable)
- Restore the three stub entries to a working `adrp x1, #0x7fc000` (donor words verified identical
  for the same adrp pages):
  - 0x761460 <- f00004c1  (donor 0x7612a0, page 0x761)
  - 0x760d20 <- 900004e1  (donor 0x760d00, page 0x760)
  - 0x760200 <- 900004e1  (donor 0x760d00, page 0x760)
- Expected: shield wires its container window, starts its detection phase; verdicts may then fire.
  Iterate from there (blind codes 1/11 if the ban screen appears).

## Next
- Hook `application:didFinishLaunchingWithOptions:`, `application:configurationForConnectingSceneSession:options:`,
  scene delegate `scene:willConnectToSession:options:`, `UIWindow.setRootViewController:`,
  `UIWindow.makeKeyAndVisible` at spawn time; see which runs and where it stops. (DONE - see above)


# 2026-11-23/24 — ROOT CAUSE #2 FOUND: the inherited patch set neuters the REAL app launch path

## The real launch path (verified statically)
- Driver `main` (file off 0x80e0) -> UIApplicationMain(argc, argv, principal=nil,
  delegate=<class object at Driver+0x1fa11f0>).
- That class object IS `_TtC6Driver11AppDelegate` = `Driver.AppDelegate`
  (verified: its class_ro_t name pointer -> 0x19dc380 '_TtC6Driver11AppDelegate').
- Info.plist UIApplicationSceneManifest: UISceneDelegateClassName = 'Driver.SceneDelegate',
  configuration name 'Default Configuration'.
- Real app chain: `Driver.AppDelegate application:didFinishLaunchingWithOptions:` = Driver+0x3bb014
  -> helper Driver+0x3b8da4 (creates engine/UI); `Driver.SceneDelegate scene:willConnectToSession:options:`
  = Driver+0x31e9c -> Driver+0x3271c (the real UI entry).
- 0x3271c does NOT use self: 0x31e9c only retains self then calls 0x3271c(scene, options).

## THE BUG: 17 diff regions in the Driver binary (orig vs shipped)
All are 'neuters' from the inherited patch set. The four stub rewrites + six call-site NOPs
are the crash source:

    stubs (all -> c0035fd6 'ret'):    0x18FC6E8 (adrp x0)   0x18FE118 (adrp x16)
                                      0x18FE484 (adrp x16)  0x190C47C (adrp x16)
    call sites (all -> 1f2003d5 nop): 0x031FA8  bl 0x18FE484
                                      0x03281C  bl 0x18FE118   <-- inside 0x3271c
                                      0x032BF8  cbz x0,#0x3336c (null guard removed)
                                      0x0333CC  bl 0x18FE484
                                      0x035E4B4 bl 0x18FE118
                                      0x03B8E0C bl 0x18FE484   <-- inside 0x3b8da4
                                      0x05DE9C8 bl 0x18FC6E8
    remaining neuters kept: 0x22C740 (stp->ret), 0x1709780 (sub sp->mov w0,#0; ret),
                            0x170867C/0x1708684/0x17086BC/0x17086C0 (orr -> mov x0,xzr)

- These are **Swift value-type metadata accessors**. Idiom at each call site:
      `mov x0,#0 ; bl <accessor> ; ldur xN,[x0,#-8] ; ldr x,[xN,#0x40]`
  [x0-8] = Swift **value witness table** pointer, [vwt+0x40] = `size` (stack alloc).
  NOPing the call leaves x0 = 0 -> `ldur x,[x0,#-8]` -> **EXC_BAD_ACCESS at 0xfffffffffffffff8**.
- This is EXACTLY the SIGSEGV seen when the real SceneDelegate was allowed to run
  (crash Driver+0x32824, thread 0, via -[UIApplication _connectUISceneFromFBSScene:])
  and the abort seen when the real AppDelegate didFinishLaunching was invoked.
- Verified: Driver symtab/strtab are fully zeroed (7798 syms, n_strx=0) so import names
  are NOT recoverable statically; LC_DYLD_INFO_ONLY bind/lazy offsets are garbage (0x29/0x1d);
  no LC_DYLD_CHAINED_FIXUPS. Import identification must be done at runtime.

## Runtime verification (Frida, build 44 on the X)
- Returning nil from the shield's `application:configurationForConnectingSceneSession:options:`
  (build-info+0x292198) makes UIKit fall back to Info.plist -> **real Driver.SceneDelegate runs**
  (REAL_SD_willConnect + REAL_SCENE_FN fired) -> crashed at Driver+0x32824 (the neutered accessor).
- Restoring 0x3281c in memory removes the SIGSEGV; the real willConnect then runs further
  and hits a Swift trap ('abort was called') - likely a force-cast of
  `UIApplication.shared.delegate as! Driver.AppDelegate`, which fails because the shield
  is still the delegate.
- The real Driver.AppDelegate is NEVER instantiated (its init is never called);
  `object_setClass` is only used by CF internally (no AppDelegate morph).
- The shield's instance is created during **dyld initializer / +load** (backtraces contain
  dyld frames) via Foundation+libdispatch, then installed with -[UIApplication setDelegate:].
  Blocking that call in memory kills the app; swapping it for a real Driver.AppDelegate
  caused a stack overflow (alloc inside the setter).
- **UIKit does NOT consult the app delegate scene-config method on a normal (uiopen) launch**
  (verified twice: method_setImplementation and a byte patch both ignored; runtime manifest
  is intact and still says Driver.SceneDelegate). On a Frida *spawn* it DID get called once.
- Clearing the app data container's 'Saved Application State' + Caches + prefs did NOT change
  the outcome -> it is not an archived-scene-session issue.

## Build 45 (built, verified, installed on X, normally launched)
- apply_patch45.py: restores the 11 launch-path-critical Driver sites byte-identical to
  pristine + patches build-info 0x292198 -> `000080d2 c0035fd6` (mov x0,#0; ret).
- make_unsigned.py OUT=GSMDriver-3.19.0-patched45-unsigned.ipa, 65 patch sites verified.
  sha256 2c0a34f9b531b037c0e00d95fa0e3a18c52c776b43283d91ae96b2e60dff837a
- Installed in place on the X (only Driver + build-info replaced, ldid -S re-signed,
  backups at Driver.bak44 / build-info.bak44). Bundle:
  /var/containers/Bundle/Application/DE63FD5B-A21F-4487-9921-882DEDFA8DE9/Driver.app
- **Normal launch (uiopen, no Frida): app runs, NO crash, NO black screen; ban screen renders
  with ZERO rows.** Same as build 44 -> the restored sites do not destabilise anything.
- jbroot hash after rejailbreak = .jbroot-B23459BE77770263 (glob it, never hardcode).
- runsh.py added: runs a shell script FILE as root (avoids PowerShell mangling);
  output must go to /var/mobile/Media/<name> (NOT /rootfs/... - that path ENOENTs).
  AFC root == /var/mobile/Media. DDI must be re-mounted after each rejailbreak
  (pymobiledevice3 mounter auto-mount) before DVT screenshots work.
  root_exec.py must run under fv17 (system python's frida is too old for the new server).

## Remaining blocker (single point)
The shield's app delegate (Function_UmcOPEDGyT) + its scene delegate (Function_JgvFbyFH)
stay in control, so the real app never starts.

## Next moves (in order)
1. On a normally-launched build 45, attach Frida *after* launch and resolve
   NSClassFromString('Driver.SceneDelegate') **on the main thread** (calling it from the
   Frida thread access-violates). If it returns Function_JgvFbyFH, the shield re-binds
   NSClassFromString (fishhook) -> find and patch that rebind; that alone should let the
   real scene delegate run.
2. If (1) is clean, the static fix is: restore the 11 Driver sites (done) + neutralise the
   NSClassFromString rebind + keep build-info 0x292198 -> nil (harmless).
3. Alternative if the rebind is not the mechanism: patch build-info's shield scene
   `scene:willConnectToSession:options:` (0x298158) to hand off. Requires constructing a
   Driver.SceneDelegate - not expressible as a small byte patch; prefer (1).
4. Re-verify on the X with a normal launch + DVT screenshot; only then package for LCSign.


# 2026-11-24 — The 4 stub `ret` patches were a LAZY-BINDING workaround, not detector blinding

This reframes the inherited patch set and explains the trap.

## Evidence (all verified at runtime on the X, build 45 restored in memory)
- Calling ANY of these Driver import stubs directly with x0=0 traps immediately
  ("Error: abort was called"): 0x19038A8, 0x18FE484, 0x18FE118, 0x18FE550, 0x18FE508.
- Their `__la_symbol_ptr` GOT slots STILL point into Driver's own `__stub_helper`
  (e.g. 0x18FE118 -> slot 0x1ed0c28 -> base+0x190df64) **before and after** the call,
  i.e. the lazy bind NEVER completes.
- `LC_DYLD_INFO_ONLY` in the shipped Driver: rebase_off=0x2142a78 sz=0x25f60 (valid),
  export_off=0x21cf700 sz=0xe08a0 (valid), **bind_off=0x29 sz=0x10 (garbage),
  lazy_bind_off=0x1d sz=0x10 (garbage)**. No LC_DYLD_CHAINED_FIXUPS.
  Symtab/strtab are zeroed (7798 syms, n_strx=0). So the lazy-bind stream is unusable
  and import names are unrecoverable statically.
- Therefore those accessors can never be bound -> the real app launch path (which is
  the only code that calls them) cannot run while they are needed.
- The inherited pipeline's `c0035fd6` (ret) on those 4 stubs was therefore a workaround
  for the same broken bind, not a detector blind.

## Trap localisation
- The trap happens BEFORE 0x3b8e4c in `Driver+0x3b8da4`: Interceptor probes on
  0x3bc904 / 0x246c58 / 0x2dc64 / 0x3bcb70 / 0x23a1e8 / 0x19228a0 / 0x19024f8 never fire.
  So it is inside the first two metadata accessors at 0x3b8dd4 / 0x3b8e0c.
- No fatal reporter fires at all (all attached successfully, none called):
  abort, abort_with_payload, abort_with_reason, __abort_with_payload, abort_report_np,
  __assert_rtn, swift_reportError, _swift_stdlib_reportFatalErrorInFile,
  swift_unexpectedError, objc_exception_throw, exit, and write(2) to fd 2.
  => dyld halts from its OWN embedded code (not libsystem_kernel/libsystem_c).
- No `brk`/`udf` anywhere in 0x3b8da4..0x3bb014 -> not a bare Swift trap either.
- Stalker block tracing from inside a NativeCallback recorded 0 events even with a
  deferred parse -> cannot be used to localise here.
- Note: `swift_dynamicCastFailure` is not exported by this iOS 16.7.16 libswiftCore.
- Also: 228 LC_LOAD_DYLIB entries; the stub-helper literals (0x6468/0x64bf/0x64f0/
  0x6537/0x6591) land inside the LC_LOAD_DYLIB command region, consistent with the
  bind stream being lost.

## What this means
The blocker is no longer "the shield decides to ban" alone: the patched IPA cannot
even execute the real app's launch path because four of its imports cannot be bound.
A fresh install on the 15 Pro is the cleanest way to get the missing symbol name,
because without Frida attached the trap becomes a REAL crash and iOS writes a crash
report containing dyld's message (typically
`Symbol not found: _swift_getTypeByMangledNameInContextInMetadataState...` or similar).

## Tooling notes (this session)
- `root_exec.py` must run under fv17 (system python's frida is older than the new
  on-device frida-server -> "major versions match" error).
- `runsh.py` runs a shell script FILE as root; it auto-globs `.jbroot-*`.
- File paths: runsh's OUTFILE must be `/var/mobile/Media/<name>` (opened by the frida
  agent). Files created INSIDE the shell script must use
  `/rootfs/private/var/mobile/Media/<name>` (the shell's view); AFC root == that Media dir.
- DDI must be re-mounted after each rejailbreak (`pymobiledevice3 mounter auto-mount`)
  before DVT screenshots work.
- Launch the app without Frida via `<JB>/usr/bin/uiopen --bundleid vn.gsm.md`.


# 2026-11-24 — 15 Pro crash log + ROOT CAUSE #3: the base dump itself is corrupt

## The 15 Pro crash log (Driver-2026-11-24-020944.ips) is decisive
- `EXC_CRASH / SIGABRT`, `asi: libsystem_c.dylib: ["abort() called"]`.
- Faulting stack, thread 0:
      libsystem_c abort
      Driver +0x32820          <- return address of `bl 0x18fe118` at 0x3281c
      Driver +0x31ef8          <- real Driver.SceneDelegate willConnect (0x31e9c)
      UIKitCore +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:]
      UIKitCore -[UIApplication _connectUISceneFromFBSScene:transitionContext:]
      ...
- TWO conclusions:
  1. On a FRESH install UIKit DOES fall back to the Info.plist scene manifest:
     the real `Driver.SceneDelegate` ran for the first time ever. Build 45's
     scene-config patch works.
  2. The crash is exactly the unbindable import at Driver+0x18fe118 -> the
     abort comes from dyld's own halt path (no libsystem_kernel/libsystem_c
     reporter was involved, which is why every reporter hook missed it).

## Scale of the problem (measured in the running process)
- `__la_symbol_ptr` holds 5397 entries; **4568 are UNBOUND** (still pointing into
  Driver's own `__stub_helper`), only 829 were ever bound.
- So the shipped `Driver` binary is a **decryption dump whose __LINKEDIT was not
  taken from memory**: bind/lazy_bind offsets are garbage (0x29 / 0x1d), symtab
  and strtab are zeroed (7798 syms, n_strx=0). Any import that the original
  process had not resolved before the dump can never be bound again.
- The inherited 4 stub `ret` patches were a workaround for exactly this.

## The fix: a proper dump of the ORIGINAL 3.19.0 (should have been done on day 1)
Conditions, all easily met on the X:
1. Install the ORIGINAL 3.19.0 from the App Store on the X (free app). Our patched
   build is safe: `E:\ios\GSMDriver-3.19.0-patched45-unsigned.ipa` (sha256
   2c0a34f9...0dff837a) plus `gsm45.tar`, and `restore45.sh` re-installs it.
2. The original will show the shield/ban screen - irrelevant, FairPlay decryption
   happens at load time, independent of the UI-level blocking.
3. Reconstruction is what the old tool got wrong: it kept the plaintext metadata
   from the on-disk file instead of overwriting with the raw memory image. The
   correct recipe, implemented in `rebuild_dump.py`:
   - __TEXT      <- MEMORY  (decrypted code)
   - __LINKEDIT  <- MEMORY  (TRUE dyld_info bind/lazy_bind + symtab + export trie)
   - __DATA/__DATA_CONST <- ON-DISK file (pre-rebase internal pointers; rebasing
     is NOT idempotent, so rebase opcodes must see the on-disk values)
   Dumping is done by `dump_orig.py` (fwrite straight from process memory into
   /var/mobile/Media/dump319/, no 36 MB through the Frida message channel) and it
   dumps EVERY binary under the app bundle -- so we also recover the REAL 3.19.0
   frameworks instead of the TTJB 3.15 substitutes currently in the IPA.

## Tooling added this round
- dump_orig.py     : memory dump of every app-bundle module, fwrite to device
- rebuild_dump.py  : on-disk base + memory __TEXT/__LINKEDIT -> proper binaries
- restore45.sh     : re-install build 45 from gsm45.tar after the dump
- test46c.py / mk46.py / stub46.json : the synthesised-metadata experiment
  (VWT+metadata built at runtime by a position-independent cave initializer at
  file 0x6600, VWT in the __data zero run at 0x1fffb80, size/stride 0x800).
  It DID remove the dyld bind abort (the probe returned kind=2, size=2048,
  stride=2048) and moved the failure further along (access violation instead of
  abort) -- but it is now obsolete: a proper dump removes the need for it.


# 2026-11-24 — PROPER DUMP ACHIEVED (the fix that should have been done on day 1)

The user's diagnosis was exactly right: the project inherited a corrupted dump
(`vn.gsm.md_3.19.0-PARTIAL.ipa`) whose __LINKEDIT was not taken from memory, and
treated it as the definitive source. Nothing else was ever wrong with the approach.

## What was done
1. Original 3.19.0 installed from the App Store on the X (confirmed FairPlay:
   `SC_Info/Driver.sinf|supf|supp`, no mobileprovision).
2. `dump_orig2.py` — spawn-gated launch + survival guards (exit/_exit/abort ->
   native `b .` self-branch so the calling thread spins with no JS involvement;
   kill/pthread_kill -> ret0; -[UIApplication openURL:...] -> no-op) + force
   page-in of every page (that is what performs the FairPlay per-page
   decryption) + fwrite straight from process memory into the app's own tmp
   (the process is sandboxed and cannot write to /var/mobile/Media).
   The two script bodies share ONE preamble declared once in Python, so no
   helper can be orphaned when they are split.
3. 172 modules dumped, copied out by root shell, pulled by AFC.
4. `rebuild_dump.py`: on-disk file as the base (pre-rebase __DATA pointers),
   __TEXT and __LINKEDIT overlaid from memory.

## Result — the Driver is finally whole
```
Driver      : wrote 36372384 bytes  __TEXT(0x0,+0x1d98000) __LINKEDIT(0x2044000,+0x26bfa0)
              dyld_info: rebase 0x2044000/0x170d0  bind 0x205b0d0/0x3a430
                         lazy  0x2095d98/0x486d0   export 0x20de468/0x64610  [LOOKS VALID]
build-info  : dyld_info rebase 0x800000/0x1f40 bind 0x801f40/0x1e80 lazy 0x803eb0/0x1d78 [LOOKS VALID]
```
- **Driver: 7798 symbols, ALL with names** (the old dump had 7798 with zero names).
- **build-info: 395 symbols, ALL with names**, and they are the shield's own
  classes: `_OBJC_CLASS_$_ShieldAPI`, `_ShieldAssets`, `_ShieldConfig`,
  `_ShieldData`, `_ShieldDataProtection`, `_SecuredFile`, `_SecuredStore`, ...
- Only **Driver** was corrupted; build-info's on-disk dyld_info was always valid.
- The new Driver needs only the 6 detector neuters re-applied (0x22C740 -> ret,
  0x1709780 -> mov w0,#0;ret, 0x170867C/0x1708684/0x17086BC/0x17086C0 -> mov x0,xzr);
  the 11 launch-path sites are ALREADY pristine in the fresh dump (verified 11/11).
- `uncrypt46.py` sets cryptid 1 -> 0 (the fresh dump carries the App Store header).

## Build 46
`E:\ios\GSMDriver-3.19.0-patched46-unsigned.ipa`
sha256 cfdd3c76578d3fc6853782b7881c809729af3c1b88706c1cad2a0c9d39b0bc1b
65 patch sites verified, 0 encrypted binaries, bundle id vn.gsm.md, version 3.19.0.

## Observed behaviour of build 46 on the X
- Installs and launches; the app runs in the foreground for the full 20 s and is
  then killed by **the process-launch watchdog** ("exhausted real (wall clock)
  time allowance of 20.00 seconds", ProcessState: Running) — it never produces a
  first frame.
- This is a NEW behaviour: build 45 showed the ban screen immediately. The proper
  Driver makes the app run substantially further along the real launch path.
- Frida cannot spawn it (spawn times out waiting for the launch event) and cannot
  attach in time after `uiopen`, because the watchdog window is tight.
- Next step: attach during the window (or pull the watchdog crash report, which
  contains every thread's backtrace at the 20 s mark) to see where the launch path
  is stalled. With the real symbol table now available, that backtrace can be
  symbolicated instead of guessed.

## Tooling notes
- `runsh.py` + `launch46b.sh` for uiopen; `dump_orig2.py` (two-phase: guards at
  spawn, dump after resume, PRELUDE shared by both bodies); `rebuild_dump.py`;
  `apply46.py`; `uncrypt46.py`; `build_tar46.py`.
- `uicache -l` shows which PATH the bundle id is registered at — after deleting
  and re-creating a bundle, `uicache -a` (respring) re-registers it, and the
  registered path may differ from the one you just wrote to. Check it first.


# 2026-11-24 — Rebuilt Driver verified correct; build 46 halts in dyld on iOS 27 only

## Verification that the proper dump is byte-correct
Compared `proper319\Driver` (36,372,384 B, same size as the on-disk original)
against `patch_src_orig\Driver` (the old PARTIAL dump that demonstrably runs):
- `__TEXT`: 7576 pages compared, **only ONE page differs - at file offset 0x1000**,
  and that difference is exactly the cryptid 1 -> 0 patch in the load commands
  (`uncrypt46.py`). Everything else, i.e. all code, is byte-identical.
  (Proof: at 0x1000 the OLD dump is still equal to the ENCRYPTED on-disk original,
  while the new dump carries the decrypted/corrected load commands.)
- `__LINKEDIT`: 54/620 pages identical -> completely different, which is precisely
  the repair (real dyld_info + real symtab instead of the zeroed one).

So the rebuilt Driver is structurally sound and its code is the same code that has
been running in builds 19-45.

## Build 46 on the two devices
- **X (iOS 16.7.16)**: installs, launches, runs in the foreground for the full
  20 s, then killed by the process-launch watchdog. No crash, no DYLD error.
- **15 Pro (iOS 27.0.1)**: `EXC_CRASH / SIGABRT`, termination namespace **DYLD**,
  `dyld4::halt` <- `dyld4::prepare` <- `dyld4::start`.
  Driver + ALL 169 app frameworks are already in `usedImages`, so the halt is in
  the **fixups/bindings** stage of `prepare`.
  `asi` is null, so the dyld message is NOT in the crash report.
  Code signature is fine: `codeSigningID=vn.gsm.md`, `TeamID=MFCLWQ7UZK`,
  validation category 5, trust level 4.

## Meaning
With valid bind information dyld now actually binds the ~4,568 imports it used to
skip. On iOS 16 that succeeds; on iOS 27 `dyld4::prepare` halts. The message has
to come from the unified log.

## Next step
Stream the 15 Pro's unified log while launching build 46:
    python -m pymobiledevice3 syslog live --udid <15pro-udid>
The dyld halt message (typically "Symbol not found: ..." or a fixup error) will
appear there and will name the exact import / segment that fails.

## Candidate causes to check against that message
1. A symbol that exists on iOS 16 but not on iOS 27 (unlikely - the App Store
   original runs on the 15 Pro).
2. The in-memory __LINKEDIT we copied may contain runtime-mutated regions; if so,
   the conservative rebuild is: on-disk file + memory __TEXT + ONLY the
   dyld_info/symtab/strtab/export ranges of __LINKEDIT (keep the on-disk
   CodeSignature region).
3. LCSign's re-sign interacting with the App Store signature blob that the memory
   image still contains at the tail of __LINKEDIT.


# 2026-11-24 — Build 49 (all real 3.19.0 binaries) — precise final diagnosis

## What was built
`build48.py` replaced **156 binaries** in patch_src with the properly dumped
3.19.0 originals (Driver + build-info + every framework), re-applied all 65
patch sites (0 failures), cleared cryptid everywhere.
`E:\ios\GSMDriver-3.19.0-patched49-unsigned.ipa`
sha256 d3a6af7a217fb58e7fe38f944ea3425b6fba2eae4260dbc34ed6926bbf56b208

Verified along the way:
- properly-dumped build-info differs from the previously shipped one in exactly
  **7 pages, all of them our own patch sites** -> the shield code is identical
  between the TTJB copy and 3.19.0, so every build-info patch offset applies.
- the rebuilt Driver's **bind stream (non-lazy) is now VALID** at file 0x205b0d0:
  `12 40 <name> 51 72 <sleb> 80 <uleb seg,off> a0 ...` (ordinal, symbol, type,
  addend, segment+offset, DO_BIND) - 3214 named entries survive in memory.

## Result on the X
Still `SIGABRT / DYLD "Symbol missing"` at Driver+0x32820 (the call to stub
0x18fe118 inside the real SceneDelegate willConnect).

## Root cause, now fully pinned down
The bind stream (non-lazy, __got) is intact, but the **lazy bind stream is ZERO
in every copy we possess** - both in the on-disk PARTIAL dump and in the memory
image (verified: region 0x2095d98..0x2142468 is 100% zeros on disk and in memory).
dyld4 no longer supports lazy binding: it processes the lazy-bind stream eagerly
at launch, and with an empty stream it binds every `__la_symbol_ptr` slot to
`_dyld_missing_symbol_abort`. The first such call is the metadata accessor at
0x18fe118 -> immediate abort at launch.

The 829 slots that WERE resolved in the dump session carry runtime addresses and
work (that is why builds 19-45 ran at all); the remaining 4,568 - including
0x18fe118, which only the real launch path ever calls - cannot be bound.

There is no second bind stream anywhere in the on-disk image (a scan for dense
`0x40 <name>` regions finds exactly one, the non-lazy stream).

## The one thing still needed
The **pristine on-disk Driver binary of the App Store app** - its __LINKEDIT is
plaintext (FairPlay only encrypts __TEXT) and still contains the original
lazy-bind stream. The dump tool zeroed it because it captured the memory state
AFTER dyld had consumed and zeroed the stream.

Concretely:
1. Re-download GSM Driver 3.19.0 from the App Store on the X (do NOT launch it).
2. Pull the on-disk  Driver  binary via root shell + AFC (no launch needed).
3. Take __LINKEDIT (and __DATA if convenient) from THAT file - it has the intact
   lazy-bind stream - and splice it into the properly dumped Driver.
4. Rebuild, install, test.

Everything else is already in place: decrypted __TEXT, valid bind stream, real
export trie, all real frameworks, all patches re-appliable at the same offsets
(the shield code did not change between the TTJB copy and 3.19.0).


# 2026-11-24 — Build 50 (cleanest reconstruction) + the indirect-table discovery

## Build 50: the cleanest possible reconstruction
Take the ORIGINAL App Store Driver binary from the ipatool IPA
(`gsm-driver-3.19.0.ipa`, cryptid=1, 36,372,384 bytes) and change only:
  1. `__TEXT` [0, 0x1d98000) swapped for the decrypted pages from the memory dump
  2. cryptid 1 -> 0
  3. the 6 detector neuters
Everything else - __DATA, __DATA_CONST, __LINKEDIT, the load commands - is what
Apple shipped, untouched. dyld binds every import from the original bind stream
exactly as it does for the App Store app.
`E:\ios\GSMDriver-3.19.0-patched50-unsigned.ipa`
sha256 76d84d0859c127016202e1d80df1191a7beaed916ccab10dc60e1d5f873656fa

## Result on the X (iOS 16.7.16)
Same `SIGABRT / DYLD "Symbol missing"` at Driver+0x32820 (the call to stub
0x18fe118 inside the real SceneDelegate willConnect).
NOTE: the real SceneDelegate is now reached on the X as well - with the proper
Driver the shield no longer hijacks the scene configuration.

## Discovery: the indirect symbol table is ALL 0xC0000000 in the ORIGINAL too
`INDIRECT_SYMBOL_LOCAL | INDIRECT_SYMBOL_ABS` for all 13,818 entries - that is
the chained-fixups convention, where the indirect table is vestigial.
Consequence: **stub -> symbol name cannot be resolved from this binary at all**,
neither from the dump nor from the original.

## Re-interpretation of the "bind stream"
The region at bind_off (0x205b0d0) that parses as `12 40 <C++ name> 51 72 <sleb>
a0 d0 9b 05 a0 c8 fb 07 ...` is the **export trie**, not the bind stream
(`__ZNKSt3__119__shared_weak_count...` is an EXPORTED C++ symbol; trie nodes
start with a terminal-size byte, 0x12 = 18).
The `\x40<name>` clusters found in memory (3214 entries, 0x20bf0d0..0x20f9500)
are inside `dyld_info.export_off` (0x20de468/0x64610) - i.e. also the trie.
So the bind stream has not actually been located yet.

## Where this leaves us
- The real SceneDelegate now runs on BOTH devices (the shield's scene hijack is
  gone once the Driver is correct) - the launch path is fully unblocked.
- The single remaining blocker is one missing import (stub 0x18fe118) - a Swift
  value-type metadata accessor called with x0=0 at the very start of
  Driver+0x3271c.
- Its name cannot be recovered from the binary (no indirect table, no symtab
  names, lazy stream zeroed).

## Candidate next steps
1. **Test build 50 on the 15 Pro (iOS 27)** - untested with the corrected
   __LINKEDIT. The symbol may simply exist on iOS 27 and not on iOS 16.7.16.
2. Capture the dyld message on the 15 Pro via `pymobiledevice3 syslog live` -
   dyld's halt message names the missing symbol.
3. If the symbol is from a system dylib absent on iOS 16, then iOS 16 cannot run
   the real launch path and the 15 Pro is the correct target anyway.


# 2026-11-24 — dyld message captured; the missing symbol is called from libobjc

## Capture (hooking dyld's own abort path on the X, build 50)
Hooked inside dyld: abort_with_payload (dyld+0x6ebfc),
abort_with_payload_wrapper_internal (0x6ebcc), __abort_with_payload (0x64ee4),
dyld4::halt (0x17f1c), _dyld_missing_symbol_abort (0x3e280).

Captured payload: `__abort_with_payload(reason_namespace=6, reason_code=4,
reason_string=StructuredError*, payload=20,
payload_string="missing symbol called", flags=0)` with the backtrace

    dyld+0x6ebcc <- dyld+0x6ebfc <- dyld+0x17f1c
    <- libobjc.A.dylib+0x174f4 <- +0x10f3c <- +0x174f4 <- +0x86ec <- +0x10090 <- +0x86ec <- +0x10090

i.e. **the ObjC runtime (libobjc) is recursing and calls the missing symbol** -
not the Driver's stub directly (the earlier build-47/49 crash at Driver+0x32820
is the same missing symbol reached through the scene-delegate path instead).

The payload string is generic; dyld does NOT put the symbol name in it.

## Confirmed dead ends for recovering the name from the binaries we hold
- indirect symbol table: all 13,818 entries = 0xC0000000 (LOCAL|ABS) - in the
  ORIGINAL Apple binary too (chained-fixups convention, vestigial table)
- symtab/strtab: zeroed in the memory image; LC_SYMTAB offsets point into a
  sparse region while the real name content lives at mem 0x2138000..0x2198000
- lazy bind stream: zeroed everywhere (dyld consumed and zeroed it at launch)
- the region at bind_off (0x205b0d0) parses as the EXPORT TRIE, not a bind stream
  (trie nodes start with a terminal-size byte; 0x12 = 18)
- a byte-pattern scan for `0x80 03 <uleb in __la_symbol_ptr range>` over the whole
  on-disk image finds only false positives, and no entry for slot 389

## What is actually happening
With the correct Driver, the shield no longer hijacks the scene configuration:
the REAL Driver.SceneDelegate.willConnect runs on both devices. It immediately
calls a Swift value-type metadata accessor (stub 0x18fe118, x0=0) whose symbol
dyld cannot find, and the ObjC runtime's handling of that missing symbol is what
aborts the process.

## The one remaining unknown
The name of that one import. Sources left:
1. **The 15 Pro (iOS 27) syslog** during launch - `pymobiledevice3 syslog live`;
   iOS 27's dyld may log the symbol name where 16.7's does not.
2. Test build 50 on the 15 Pro: it may simply WORK there (the symbol may exist on
   iOS 27 and be absent on iOS 16.7.16 - the X may be too old for the real launch
   path even though the shield path runs).
3. A dump tool that preserves __LINKEDIT from the on-disk App Store binary
   (FairPlay does not encrypt __LINKEDIT) would give the pristine lazy-bind
   stream with all 5,397 names.

## Files
- `E:\ios\GSMDriver-3.19.0-patched50-unsigned.ipa`
  sha256 76d84d0859c127016202e1d80df1191a7beaed916ccab10dc60e1d5f873656fa
- `capturedyld.py` / `capturedyld2.py` - the dyld abort capture harness
- `lookupstub.py` - indirect-table lookup (works, but the table has no names)
- `findlazy.py` / `parsebind.py` / `scandense.py` / `findsymtab.py` - the scans
  that ruled the other sources out


# 2026-11-24 — CORRECTIONS (must be read before any conclusion below)

1. **Build 50 WAS tested on the 15 Pro at 13:54 today.** It died at exactly
   `Driver+0x32820` on iOS 27. That test is DONE - there is no "still needs
   testing" state for build 50 on the 15 Pro.

2. **The hypothesis "the missing symbol is a system symbol absent on iOS 16" is
   FALSIFIED.** The same death at the same offset on iOS 27 means the symbol is
   missing in OUR configuration on BOTH OS versions. Its identity is still
   UNKNOWN and must not be recorded as a conclusion.

3. The JSON parse error in the last capture run was pure agent post-processing:
   `dyld_abort.json` was empty (that run captured no DYLD_ABORT line) and was
   still fed to `json.loads`. The Frida channel was alive (307 processes
   enumerable). The raw output of the capture run is the thing to review, not
   the filtered file.

## Consequence for the search
Since the symbol is missing on both iOS 16 and iOS 27 while the App Store
original runs on both, the symbol is NOT a system API. It must come from
something that differs between the App Store bundle and ours:
- one of the app's own frameworks (ours are the properly dumped 3.19.0 ones, but
  a rebuild that mixed TTJB __DATA with real __TEXT/__LINKEDIT may be internally
  inconsistent), or
- the Driver binary itself exporting/importing through a mechanism we broke
  during reconstruction (e.g. an export-trie/ordinal mismatch), or
- a dylib that the ORIGINAL bundle loads but ours does not.


# 2026-11-24 — Build 53: full 3.19 memory-image reconstruction, ready to install

Per the user's instruction ("Bỏ 3.15 đi. Tôi dump 3.19 rồi mà sao không dùng?"),
build 53 drops the TTJB 3.15 mixing entirely:

- `rebuild_dump.py` now overlays **every** segment (not just __TEXT/__LINKEDIT)
  from the raw memory image, mapped per segment
  (src = vmaddr - vmaddr(__TEXT), dst = fileoff).
  `__LINKEDIT` needs that per-segment mapping because its vaddr-fileoff delta
  (0x64000) differs from __TEXT's.
- `build51.py` copies `proper319\*` (the trimmed full-memory rebuilds) into
  patch_src - **171 binaries, no 3.15 content anywhere**.
- All 65 patch sites re-applied (0 failures), cryptid cleared.

`E:\ios\GSMDriver-3.19.0-patched53-unsigned.ipa`
217,402,451 bytes
sha256 1161F1EBB27DCD7F46D1C24BE76E63737E84050F89CA8A25C4458A9A3A1693D4

## Install is prepared but blocked on device availability
`inst53.sh` is ready: wipe the jbroot app dir, untar `gsm53.tar` (already pushed
to the device as /gsm53.tar, 451.9 MB), overlay the patched Driver + build-info,
ldid-sign, `uicache -p`, launch.
It could not run because **the device's frida-server is down**: both
`frida.get_usb_device()` (I/O error) and the TCP forward
(ServerNotRunningError) fail. The OpenCode server restarts also kept killing the
port forward; `frida.get_usb_device()` removes that dependency entirely and
should be used from now on instead of `add_remote_device('127.0.0.1:7777')`.

## When the device is back
1. Make sure frida-server is running on the X (re-jailbreak if needed).
2. Run `python runsh.py inst53.sh /var/mobile/Media/i53.txt 1200`.
3. Screenshot + crash log; with the real symbol table every crash is now
   symbolicable.

## Finding 11 (2026-11-24): build 54 crash root cause = 4 frameworks still ENCRYPTED
The PARTIAL IPA is mixed: 166/170 frameworks are already FairPlay-decrypted with
cryptid=0 on disk; 4 are still encrypted (FirebaseCoreExtension,
MapboxCoreNavigationObjC, MapboxDirectionsObjc, MapboxNavigationObjC).
The DELIVERED build 54 shipped those 4 with 16 KB of encrypted garbage __TEXT
(16384/16384 bytes == PARTIAL encrypted bytes) and cryptid=0 -> dyld ObjC
optimizer assert (getNameSelRefVMAddr) when parsing their garbage metadata.
6 other frameworks (RecaptchaEnterpriseSDK, eKYC_GSM, firebase_core,
firebase_messaging, google_maps_flutter_ios, permission_handler_apple) were
never encrypted (cryptsize=0, cryptid=0) - nothing to do for them.
Build 55 crypt-swaps the 4 from the memory dumps (verified byte-exact).

## Finding 12 (2026-11-24): PARTIAL == App Store original outside the crypt region
- Driver: PARTIAL vs ipatool pristine differ ONLY in the crypt region
  (PARTIAL = decrypted) + cryptid. The earlier corruption findings (zeroed
  lazy-binds, symtab, indirect table 0xC0000000) are NORMAL App Store
  characteristics - the app binds eagerly via the non-lazy stream.
- All 166 clean frameworks: on-disk __TEXT byte-identical to the memory dumps.
- Driver crypt envelope [0x8000, 0x1d94000) ends INSIDE __TEXT; on-disk
  __DATA_CONST is plaintext (memory shows the same data + slide 0x7EC000 ->
  NEVER take __DATA* from memory: that was the build 49/53 double-slide bug).
- In-memory LC_ENCRYPTION_INFO differs from disk only in cryptsize
  (0x1000 vs 0x1d8c000) - irrelevant when cryptid=0. Build 54 vs 55 differed
  by exactly 3 bytes (that cryptsize field) + the 4 encrypted frameworks.

## Finding 13 (2026-11-24): build 55 on iPhone 15 Pro - dyld assert GONE, abort moved into app code
Build 55 passed PrebuiltObjC/optimizeObjCSelectors (the 4 fixed frameworks),
all initializers ran, UIApplicationMain ran, scene connection started, then:
  Driver+0x31F78 (frame 4) -> Driver+0x328E0 (frame 3) -> abort()
Disassembly: 0x328DC: mov w2,#1; bl 0x1938240 = objc_msgSend sel
'setIdleTimerDisabled:' on [UIApplication sharedApplication] - the app's own
scene-config/Swift glue (region 0x31E00-0x33400, byte-identical to pristine).
Swift metadata accessors 0x18FE118/0x18FE484 now bind fine (pristine __LINKEDIT);
the build 50 'Symbol missing' was purely the rebuilt-__LINKEDIT artifact.

## Finding 14 (2026-11-24): THE 6 NEUTERS ARE WRONG FOR 3.19.0
The 6 detector neuters were derived on the 3.15 TTJB layout. In pristine
3.19.0 the same offsets hit DIFFERENT, legitimate code:
  0x22C740  = real function PROLOGUE (stp x26,x25...) -> our 'ret' makes it
              return instantly with garbage x0. Callers: 0x73674, 0x77cac.
  0x1709780 = real function prologue (sub sp,#0x90...) -> our 'mov w0,#0;ret'.
              Callers: 0x162ed90, 0x16af22c.
  0x170867C/0x17086BC = mid-function 'orr x0,x21,x19' -> we zeroed x0.
  0x1708684/0x17086C0 = mid-function 'mov x1,x22' -> we zeroed x1.
  (those four are argument-setup for the next call inside one function)
Additionally ALL 25 other Driver CHECKS entries are byte-level no-ops on
pristine 3.19.0 (3.15-TTJB bytes == 3.19.0 bytes there) - only the 6 neuters
actually modified the Driver. Framework CHECKS patches (bshield, MDAPILayer,
MDMap, build-info, flutter_bshield_callback, geolocator, MDOrderBusiness) DO
change bytes and carry the same wrong-target risk.

## Finding 15 (2026-11-24): build 56 = pristine decrypted baseline (0 patches)
Every binary = pristine App Store binary, FairPlay region decrypted from the
memory dumps, cryptid=0, ZERO code changes (Driver diff vs pristine-decrypted
= 0 bytes). Isolation experiment: if 56 launches (or shows the REAL shield
behavior), the decrypt/resign pipeline is proven and the 3.19.0 shield checks
must be re-derived from scratch (frida on the X), not inherited from 3.15.
File: E:\ios\GSMDriver-3.19.0-pristine56-unsigned.ipa
217,944,633 bytes
sha256 d412b0f860976ccbb01ef7c9a4960e7f5ff7b5266d0b1b5c89535e0a383ad111

## Finding 16 (2026-11-25): user correction + build 56 on the 15 Pro = the real app RUNS
- USER CORRECTION: the 3.15 fake319 build (GreenSMDriver-3.15.0_fake319_bshieldPatched)
  NEVER worked - it still reports REPACK. The 24-byte / 3-site bshield diff vs the
  TTJB original is an unsuccessful attempt, NOT a proven bypass. Do not treat it as
  a reference solution. Also: bshield __TEXT is byte-identical 3.15 vs 3.19.0 (only
  __LINKEDIT/version pages differ), but build-info (7.8 MB vs 8.7 MB) and Driver are
  completely different builds - every 3.15 build-info/Driver offset is dead.
- build 56 (0 patches) on the iPhone 15 Pro: NO dyld crash, initializers complete,
  UIApplicationMain runs, the REAL app UI starts, then the shield's repack
  detection fires verdicts 1 + 11 and the app switches to the blocking web page
  (server-side page, no local HTML resources in the bundle).
  => With the 6 harmful neuters removed, the entire real launch path works on
     iOS 27. The ONLY remaining problem is the repack verdicts.
- build 45 on the X (same 3.19.0 build-info + framework patches, all 65 sites):
  ban screen with ZERO rows => the 65-site set suppresses every verdict. The
  build-info offsets in CHECKS were derived live on THIS build-info (3.19.0),
  so they remain valid. The 6 Driver neuters were harmless there only because
  the real app path never executed.
- build 57 = build 56 + the 65-site set MINUS the 6 proven-harmful Driver
  neuters (0x22C740, 0x1709780, 0x170867C, 0x1708684, 0x17086BC, 0x17086C0).
  Driver diff vs pristine = 0 bytes. 18 real writes + 41 no-ops across
  build-info / bshield / MDAPILayer / MDMap / geolocator / MDOrderBusiness /
  flutter_bshield_callback.
File: E:\\ios\\GSMDriver-3.19.0-patched57-unsigned.ipa
217,944,763 bytes
sha256 bcf271c5b93f6be1e4e17dfdc9d5fa8ee56472421bb0301511dfa6f9eb0573bf

## Finding 17 (2026-11-25): BUILD 57 CRASH ROOT CAUSE - the PARTIAL build-info is a
## DIFFERENT COMPILATION from the 45-era build-info
- build 57 (65-set minus 6 neuters) crashed IDENTICALLY to build 55 (same abort at
  Driver+0x328E0 inside the setIdleTimerDisabled: msgSend), while build 56 (0 patches)
  did not -> the culprit was among the 18 framework writes.
- Decisive check: build-info 0xe0d0 in the CURRENT PARTIAL does NOT match the CHECKS
  expectation. build 45's IPA build-info DOES contain the CHECKS patched bytes.
  The 45-era build-info and the current PARTIAL build-info are the SAME SIZE
  (8,683,760) but differ in 7 pages with instruction SHIFTS (e.g. 4 extra
  instructions before the 0xe0d0 site) - a different compilation of the same source.
  The PARTIAL file mtime (11/21 12:43) predates the session, so the 41-45 pipeline
  must have kept its OWN build-info in patch_src (persisted across builds), and the
  build 55-57 scripts overwrote it with the PARTIAL's -> the CHECKS build-info
  offsets became INVALID -> 18 corruption writes -> crash.
- All 32 Driver CHECKS entries are no-ops vs pristine (verified) - the Driver was
  never the problem in 57; the framework writes were.
- Consistency check: build 45's clean frameworks (Alamofire/RxSwift/Flutter/App)
  are byte-identical to the current PARTIAL (0 diff pages) - same rip. Only
  build-info (7 pages) and the patched frameworks (1-3 pages = patch effects)
  differ.

## Finding 18 (2026-11-25): build 58 - the corrected composition
  = build 45's ENTIRE framework set (45-era build-info with the proven verdict
    suppression - the 'zero rows' state; 33/33 non-Driver CHECKS sites verified)
  + build 56's pristine decrypted Driver (no neuters; proven real-app launch on
    iOS 27)
  + the 4 FairPlay-straggler frameworks crypt-decrypted from the memory dumps.
File: E:\\ios\\GSMDriver-3.19.0-patched58-unsigned.ipa
217,944,799 bytes
sha256 1dd076b477786d9b3de3b58cecd229bf96825a740e6567786bf9293d836a3da4
Also: the X frida-server is HUNG (socket accepts, closes immediately; both frida
16/17 clients fail; no SSH on 22/44). Needs a manual re-jailbreak tap to restart.
Note: the Driver method-list scan found a Driver-side category method setTarget:
(IMP 0x10053b540, checks a class method then returns nil or sharedApplication) -
context for the shield's UIApplication integration.

## Finding 19 (2026-11-25): build 58 aborts too -> the build-info patch set itself is
## the trigger; the patches are INHERITED BLIND from the 3.15 project
- build 58 (45-era frameworks, patch offsets verified 33/33 against build 45's own
  binary, pristine Driver) aborts IDENTICALLY (Driver+0x328E0 inside the
  setIdleTimerDisabled: msgSend). So with correct offsets, the build-info patch
  CONTENT breaks the engine on iOS 27.
- BI19 (build ~19 IPA build-info) == the PARTIAL build-info at 0xe0d0/0x292198 and
  differs from build 45 only at pages 0x6000/0x7000/0x290000/0x760000 = exactly the
  inherited-patch regions. The CHECKS build-info offsets (0xe0d0, 0x292198, ...)
  were designed for the 3.15 build-info (7.8 MB) and applied blind to the 8.68 MB
  3.19.0 one since build 19. The X-era zero-rows state = the engine corrupted into
  not reporting verdicts; on iOS 27 the same corruption kills the process.
- Model that fits every data point: the engine (build-info) runtime-hooks the
  sharedApplication chain early. Pristine (56): hook works, delegate installed,
  verdicts 1/11 -> ban page. Corrupted engine (55/57/58): hook/handler aborts in
  the real-app scene-config path.
- build 59 = build 58 MINUS every build-info patch: build 45's six patched
  frameworks (verified: vs PARTIAL they differ only at their known patch regions,
  no layout shifts) + PRISTINE build-info + pristine Driver + 4 crypt fixes.
  14 CHECKS sites verified.
File: E:\\ios\\GSMDriver-3.19.0-patched59-unsigned.ipa
217,944,790 bytes
sha256 eeeaf0eefa7ef2edfb72df3372dda5865fb8d8a7486ade4661c30aeb6c39cdfd
Expected: no abort (56-behavior restored). Verdicts likely still fire (the
build-info suppression is gone) -> ban page may return; the surgical verdict
suppression for 3.19.0 build-info must then be derived at runtime (frida on the X,
needs the jailbreak re-tap).
