Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: MIT-0
# GitHub Actions CI for Scion.
#
# What it does on every push / PR:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ios-bundle.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: MIT-0
# Scion with iOS 16.5 ready to install, built from nothing (Actions > ios-bundle > Run workflow).
#
# apk (macOS, as release.yaml) the app: app-debug.apk. Our own code and QEMU, no Apple file: passed on as an
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: MIT-0
# Continuous delivery: build the app and publish a GitHub Release on version tags.
#
# Trigger:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: MIT-0
.gradle/
build/
local.properties
Expand Down
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: MIT-0
[submodule "third_party/inferno"]
path = third_party/inferno
url = https://github.com/Scion-Project/pyre.git
Expand Down
18 changes: 18 additions & 0 deletions LICENSES/MIT-0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
MIT No Attribution

Copyright (c) 2025-2026 Scion Project contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
31 changes: 31 additions & 0 deletions LICENSING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Licensing

This file is a plain-English map of who may use what under which licence. It does not replace the licence files.

The repository-level `LICENSE` is AGPL-3.0 and is not changed.

## Original work: MIT-0

Files that the Scion project wrote entirely from scratch (every commit by the project's authors, no third-party notice, nothing ported or derived from another codebase) are licensed **MIT-0** (MIT No Attribution, SPDX `MIT-0`; text in `LICENSES/MIT-0.txt`). Each such file carries `SPDX-License-Identifier: MIT-0` in its first lines, except the files listed in the table below, which cannot hold a comment.

MIT-0 paths (top-level location, number of files):

- `.github`: 3 files
- `(top level)`: 5 files
- `app`: 50 files
- `docs`: 10 files
- `native`: 4 files
- `tools`: 6 files

The full per-file list is in the pull request that introduced this file, and every file's own first lines are authoritative.

Note: 2 of these files already carried a project-chosen `SPDX-License-Identifier` tag (MIT or AGPL-3.0-or-later); it was replaced by `MIT-0`.

## Files that keep their existing licence

- Anything not listed above, and any file that has no explicit `SPDX-License-Identifier: MIT-0` tag, stays under the repository's existing licence, as before.
- `third_party/inferno` (the Pyre/Inferno submodule: GPL-2.0 for QEMU, AGPL-3.0 for Inferno's own code) and everything it builds.
- `gradlew`, `gradlew.bat`, `gradle/wrapper/*`: Gradle's, Apache-2.0.
- `native/patches/*` (patch against libslirp) and `native/keymaps/en-us` (generated from QEMU data, GPL-2.0).
- `docs/ios27/*` and `docs/IOS27.md`: notes from analysing Apple firmware; `tools/ipsw_probe.py` and `README.md`: partly taken from other sources (see the PR for the reasons).

1 change: 1 addition & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
plugins {
id("com.android.application")
}
Expand Down
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- SPDX-License-Identifier: MIT-0 -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
Expand Down
1 change: 1 addition & 0 deletions app/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: MIT-0
# The AVF display's frame copy (scfb_present.c), the AVF camera's (sccam_put.c), the AVF GPU's device
# (scgpu.c: gfxstream, libgfxstream_backend.so, loaded at run time) and the AVF sound's player (scsnd.c,
# AAudio), and the VM's CPUs' clocks while it draws (vmboost.c: a performance hint session). Built by
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/cpp/sccam_put.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: MIT-0
//
// Host side of the Scion camera region (SCCAM, scion-kernel avf/CAMERA.md) for the AVF
// camera (avf/SccamCamera.kt): one Camera2 frame (YUV_420_888) into a slot of the shared region as
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/cpp/scfb_present.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: MIT-0
//
// Host side of the Scion shared framebuffer (SCFB, scion-avf display/SCFB.md) for the AVF
// display (avf/ScfbIo.kt): waits for the guest to publish a frame in the shared region and
Expand Down
1 change: 1 addition & 0 deletions app/src/main/cpp/scgpu.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* SPDX-License-Identifier: MIT-0 */
/*
* SCGPU, the app's side: the guest's GPU in this process. gfxstream's host renderer
* (libgfxstream_backend.so, built for Android by scion-kernel tools/gfxstream/mk-host-android.sh)
Expand Down
1 change: 1 addition & 0 deletions app/src/main/cpp/scsnd.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* SPDX-License-Identifier: MIT-0 */
/*
* SCSND, the app's side: iOS's sound, played through AAudio. The guest's audio server writes what it
* has mixed for its speaker to /dev/hakios-audio, and the kernel's sink puts it into a ring in a region
Expand Down
1 change: 1 addition & 0 deletions app/src/main/cpp/vmboost.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* SPDX-License-Identifier: MIT-0 */
/*
* The VM's CPUs at the clock speed its frames need. crosvm's vCPU threads work in short bursts (a
* frame of CoreAnimation's: a few milliseconds every 16), and Android's governor keeps the cores they
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.app.Activity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.annotation.SuppressLint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.graphics.Rect
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

/**
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/io/github/dylanneve1/iosonpixel/Img4.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import java.io.File
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.net.LocalSocket
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.app.ActivityManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.net.LocalSocket
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.annotation.SuppressLint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.annotation.SuppressLint
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/io/github/dylanneve1/iosonpixel/Ui.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.app.Notification
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import android.app.Notification
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel.avf

import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel.avf

import android.view.KeyEvent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel.avf

import java.nio.ByteBuffer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel.avf

import android.Manifest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel.avf

import java.nio.ByteBuffer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel.avf

import android.content.BroadcastReceiver
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel.avf

import android.os.Build
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel.avf

import android.view.Surface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel.avf

import java.nio.ByteBuffer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel.avf

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel.rfb

import android.net.LocalSocket
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/drawable/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- SPDX-License-Identifier: MIT-0 -->
<!-- Generic phone glyph; deliberately not Apple branding. -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- SPDX-License-Identifier: MIT-0 -->
<resources>
<string name="app_name">Scion</string>
<string name="notif_channel">Virtual machine</string>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import io.github.dylanneve1.iosonpixel.EdgeMap.Box
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import org.junit.Assert.assertEquals
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import org.junit.Assert.assertEquals
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel

import org.junit.Assert.assertEquals
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel.avf

import org.junit.Assert.assertEquals
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel.avf

import org.junit.Assert.assertArrayEquals
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
package io.github.dylanneve1.iosonpixel.avf

import org.junit.Assert.assertArrayEquals
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT-0
plugins {
id("com.android.application") version "9.3.3" apply false
}
1 change: 1 addition & 0 deletions docs/AUDIO.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- SPDX-License-Identifier: MIT-0 -->
# Guest audio: iOS speaker out of the Pixel's speaker

Plan for getting sound from the emulated iPhone 11 (t8030, iOS 14) out of the phone. Speaker
Expand Down
1 change: 1 addition & 0 deletions docs/ETHICS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- SPDX-License-Identifier: MIT-0 -->
# Project aim, ethics and legal position

## Aim
Expand Down
1 change: 1 addition & 0 deletions docs/GPU.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- SPDX-License-Identifier: MIT-0 -->
# GPU: getting iOS's UI onto the Pixel's GPU

Status: design plus milestones M1 and M2, measured on the phone (2026-10-22). Work is paused
Expand Down
1 change: 1 addition & 0 deletions docs/HANDOFF.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- SPDX-License-Identifier: MIT-0 -->
# Handoff notes (2026-10-21)

State of the project, everything verified so far, and what to do next. Read
Expand Down
1 change: 1 addition & 0 deletions docs/NETWORKING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- SPDX-License-Identifier: MIT-0 -->
# Networking: getting the guest online

## AVF backend (iOS 16.5 on HackiOS's XNU): the "Network" setting
Expand Down
1 change: 1 addition & 0 deletions docs/PERF.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- SPDX-License-Identifier: MIT-0 -->
# Restore-boot benchmark and profile (iOS 14.8, Android)

Issue #48. Measured on the Android **emulator** (`sdk_gphone64_arm64`, 8 host cores) with
Expand Down
1 change: 1 addition & 0 deletions docs/PHONE-QUICKSTART.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- SPDX-License-Identifier: MIT-0 -->
# Phone quickstart: iOS 14 on a Pixel (proof of concept)

This page takes you from a finished Inferno setup on a Mac to the emulated
Expand Down
1 change: 1 addition & 0 deletions docs/PHONE-SMOKE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- SPDX-License-Identifier: MIT-0 -->
# iOS 14.8 smoke boot on Android: how far does XNU get?

Issue #35. Measured on the Android **emulator** (`sdk_gphone64_arm64`, 6 GB RAM, ~650 MB
Expand Down
1 change: 1 addition & 0 deletions docs/RELATED-PROJECTS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- SPDX-License-Identifier: MIT-0 -->
# Related projects (GitHub scan, 2026-10-22)

**Scope.** Projects active in 2025-2026 that could help Pyre (the QEMU/TCG backend) or scion-avf (XNU as a pKVM/crosvm guest). The projects you already know (Inferno, darwin-vm, ios-sweet, HackiOS, qemu-ios, Asahi) appear only where a fork or derivative adds something. Stars and push dates are from the GitHub API on 2026-10-22. "NOASSERTION" means GitHub could not detect the licence; where I read the licence file myself, I give the real one.
Expand Down
1 change: 1 addition & 0 deletions docs/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- SPDX-License-Identifier: MIT-0 -->
# Roadmap

Ordered roughly by payoff over effort. "Measured" items need a booted VM on a
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# SPDX-License-Identifier: MIT-0
org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8
android.useAndroidX=false
1 change: 1 addition & 0 deletions native/build-android.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MIT-0
# Cross-compiles the Inferno QEMU fork (and its dependencies) for Android arm64,
# tuned for Tensor G5, and drops the result into app/src/main/jniLibs.
#
Expand Down
Loading
Loading