Skip to content
Ottov0.1.0
Proven 8/8 · iOS 26.2 & Physical Android 16 (R8)

Signed OTA updates for NativeScriptwithout forking the runtime.

Native pre-boot bundle selection before V8 starts, Ed25519 + streaming SHA-256 in CryptoKit and Tink, per-platform native drift checks, and offline crash rollback.

0/8
Release scenarios
0
iOS 9.1 · Android 9.1 R8
0
Unit & CLI tests
0
Runtime forks
Otto
CortexOtaBootstrapper · pre-V8
iOS CryptoKit · Android Tink R8
Ed25519 + SHA-256
import { updates } from '@getcortexlabs/ota-nativescript';

export function onFirstUsableScreen() {
  updates.markReady();           // offline confirmation
  void updates.checkAndStage();  // background verify + stage
}
ENGINEERED FOR RELEASE BUILDS

Three NativeScript failure modes solved at the root

Built on official NativeScript 9.1 hooks — never relying on broken JavaScript to recover itself.

01 / NATIVE PRE-BOOT

Recovery before V8 even boots

If a new bundle throws on its first import, JavaScript recovery code never runs. Bundle selection and launch-attempt accounting execute in Objective-C (NS_SWIFTUI_BOOT) and Java (com.tns.internal.Plugin) before V8 initializes.

Explore native pre-boot ↗
02 / THREE-PART SECURITY

Integrity, authenticity & compatibility separated

Every staged release checks Ed25519 signatures (Apple CryptoKit / Google Tink), streaming SHA-256 over the exact manifest inventory, and compatibility via targetBuild + runtimeContract + monotonic directiveSeq.

Read security model ↗
03 / NATIVESCRIPT CONTRACT

Native drift blocked before publishing

ota-ns fingerprint hashes five per-platform sections — runtime, native plugins, App_Resources, generated metadata-*.bin / *.dat and normalized sbg-bindings.txt — refusing incompatible packs in CI.

Inspect fingerprinting ↗
INTERACTIVE JOLT WEB LABS

Inspect the OTA lifecycle, verification gates & rollback live

Every transition below mirrors the exact state machine and OtaError codes proven on iOS 26.2 and physical Android 16.

Jolt Interactive Lab

OTA Delivery & Atomic Switch

IMMUTABLEembedded/appActive on boot
SANDBOXstaging/ota-vue-v2
0 files · 0 KB
RELEASE releases/ota-vue-v2/app Waiting for staging

Native pre-boot selects the immutable store-shipped bundle

Before V8 starts, CortexOtaBootstrapper (iOS) / OtaAndroidPlugin (Android) read state.json and boot the untouched embedded bundle.

// active pointer: embedded/app
{
  "confirmedReleaseId": null,
  "stagedReleaseId": null,
  "pendingLaunch": null
}
Jolt Fault Lab

Three-Part Verification Gate Lab

ota-ns serve --mode update
1. Authenticity (Ed25519)PASS
CryptoKit / Google Tink

keyId="prod-2026" verified on canonical JCS payload

2. Compatibility & SeqPASS
runtimeContract + targetBuild

ios-rc-16579a18 · build 1 · directiveSeq 8 > 7

3. Integrity (SHA-256)PASS
Streaming 11/11 files

Exact byte lengths, zero symlinks, zero extra files

STAGE_COMMITTED (ota-vue-v2)

All three gates passed: staging/ moved atomically into releases/ota-vue-v2.

Jolt Recovery Lab

Offline Crash Rollback & Store Upgrade

STAGED
Active bundle: ota-vue-v2 (confirmed) attempts: 0 / 1

ota-vue-crash is validly signed and staged for next cold launch

Ed25519 and SHA-256 passed — yet the bundle throws on top-level import before updates.markReady() can ever run.

// state.json
{
  "confirmedReleaseId": "ota-vue-v2",
  "stagedReleaseId": "ota-vue-crash",
  "pendingLaunch": null,
  "failedReleaseIds": []
}
DOCUMENTATION CATALOG

Organized by topic and maturity status

Catalog navigation with section counts, tree connectors and Verified, New, Updated and Beta tags.

REAL RELEASE PROOF (#13)

8/8 release scenarios proven on iOS & physical Android

Open full evidence →
01
Offline cold boot on embedded bundlesource: embedded · v1-embedded · assets/font/chunk/worker
iOS ✓Android ✓
02
Signed download & staging (ota-vue-v2)11 files · CryptoKit & Google Tink Ed25519 + SHA-256
iOS ✓Android ✓
03
Offline activation on next cold restartConfig.BaseDir (iOS) · POSIX symlink files/app (Android)
iOS ✓Android ✓
04
Image, font, lazy chunk, worker & logic~/assets/badge.png · lucide.ttf · lazy:ota-v2 · worker:ota-v2
iOS ✓Android ✓
05
All 5 fault modes rejected cleanlySIGNATURE_INVALID · HASH_MISMATCH · CONTRACT · TARGET_BUILD
iOS ✓Android ✓
06
Pre-markReady() crash + offline rollbackfailedReleaseIds: [ota-vue-crash] · recovered to ota-vue-v2
iOS ✓Android ✓
07
Mid-download socket drop + clean retryDOWNLOAD_FAILED keeping active bundle · retry staged OK
iOS ✓Android ✓
08
In-place store binary upgrade (Build 2)Embedded Build 2 takes over immediately and cleans releases/
iOS ✓Android ✓