diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2114ad8..b9ba1ea 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: MIT-0 # GitHub Actions CI for Scion. # # What it does on every push / PR: diff --git a/.github/workflows/ios-bundle.yml b/.github/workflows/ios-bundle.yml index c7850ae..0513beb 100644 --- a/.github/workflows/ios-bundle.yml +++ b/.github/workflows/ios-bundle.yml @@ -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 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2cccddd..eb4a175 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: MIT-0 # Continuous delivery: build the app and publish a GitHub Release on version tags. # # Trigger: diff --git a/.gitignore b/.gitignore index d302467..26e6518 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: MIT-0 .gradle/ build/ local.properties diff --git a/.gitmodules b/.gitmodules index 6de089f..27fceeb 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/LICENSES/MIT-0.txt b/LICENSES/MIT-0.txt new file mode 100644 index 0000000..7018405 --- /dev/null +++ b/LICENSES/MIT-0.txt @@ -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. diff --git a/LICENSING.md b/LICENSING.md new file mode 100644 index 0000000..5485268 --- /dev/null +++ b/LICENSING.md @@ -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). + diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 1c39524..f73a357 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 plugins { id("com.android.application") } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index ba47519..fab74b5 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,4 +1,5 @@ + diff --git a/app/src/main/cpp/CMakeLists.txt b/app/src/main/cpp/CMakeLists.txt index b3fc5e7..5bec656 100644 --- a/app/src/main/cpp/CMakeLists.txt +++ b/app/src/main/cpp/CMakeLists.txt @@ -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 diff --git a/app/src/main/cpp/sccam_put.c b/app/src/main/cpp/sccam_put.c index 4fc47be..e6d280d 100644 --- a/app/src/main/cpp/sccam_put.c +++ b/app/src/main/cpp/sccam_put.c @@ -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 diff --git a/app/src/main/cpp/scfb_present.c b/app/src/main/cpp/scfb_present.c index c2c970c..190b1b1 100644 --- a/app/src/main/cpp/scfb_present.c +++ b/app/src/main/cpp/scfb_present.c @@ -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 diff --git a/app/src/main/cpp/scgpu.c b/app/src/main/cpp/scgpu.c index f788491..67f9d1b 100644 --- a/app/src/main/cpp/scgpu.c +++ b/app/src/main/cpp/scgpu.c @@ -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) diff --git a/app/src/main/cpp/scsnd.c b/app/src/main/cpp/scsnd.c index d41de1b..1aabf92 100644 --- a/app/src/main/cpp/scsnd.c +++ b/app/src/main/cpp/scsnd.c @@ -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 diff --git a/app/src/main/cpp/vmboost.c b/app/src/main/cpp/vmboost.c index 6fb0c29..2305f0e 100644 --- a/app/src/main/cpp/vmboost.c +++ b/app/src/main/cpp/vmboost.c @@ -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 diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/AvfBackend.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/AvfBackend.kt index d598f3b..9b6ebaa 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/AvfBackend.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/AvfBackend.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.content.Context diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/DebugBundle.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/DebugBundle.kt index 7230f27..aeeebc7 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/DebugBundle.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/DebugBundle.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.app.Activity diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/DisplayActivity.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/DisplayActivity.kt index adc6515..e28ed85 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/DisplayActivity.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/DisplayActivity.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.annotation.SuppressLint diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/DisplayCorners.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/DisplayCorners.kt index 61bf476..7fe1e28 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/DisplayCorners.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/DisplayCorners.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.content.Context diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/DisplayPrefs.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/DisplayPrefs.kt index a95f7ed..26d65c4 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/DisplayPrefs.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/DisplayPrefs.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.content.Context diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/EdgeInput.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/EdgeInput.kt index 393bf45..51fe763 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/EdgeInput.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/EdgeInput.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.graphics.Rect diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/EdgeMap.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/EdgeMap.kt index de021cd..5e2d64d 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/EdgeMap.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/EdgeMap.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel /** diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/Img4.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/Img4.kt index bae4e3e..762ec30 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/Img4.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/Img4.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import java.io.File diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/Installs.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/Installs.kt index 38a60a4..4504f98 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/Installs.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/Installs.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.content.Context diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/Monitor.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/Monitor.kt index 332acce..b55047f 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/Monitor.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/Monitor.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.net.LocalSocket diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/QemuBackend.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/QemuBackend.kt index 23543b1..60c6c2e 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/QemuBackend.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/QemuBackend.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.content.Context diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/QemuInProcess.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/QemuInProcess.kt index 21140e8..6838c9f 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/QemuInProcess.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/QemuInProcess.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.app.ActivityManager diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/QemuNet.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/QemuNet.kt index 431dad2..f5e9da7 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/QemuNet.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/QemuNet.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.content.Context diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/QmpTouch.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/QmpTouch.kt index f0698cb..3cf2468 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/QmpTouch.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/QmpTouch.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.net.LocalSocket diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/ScreenView.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/ScreenView.kt index 7045aa3..9494945 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/ScreenView.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/ScreenView.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.annotation.SuppressLint diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/StorageBench.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/StorageBench.kt index d5210ad..5c2d94c 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/StorageBench.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/StorageBench.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.content.Context diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/SurfaceScreen.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/SurfaceScreen.kt index d0d4978..247895f 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/SurfaceScreen.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/SurfaceScreen.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.annotation.SuppressLint diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/Ui.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/Ui.kt index a541de9..2e270bd 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/Ui.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/Ui.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.content.Context diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/VmBackend.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/VmBackend.kt index 5560e93..f652f75 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/VmBackend.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/VmBackend.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.content.Context diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/VmConfig.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/VmConfig.kt index 4727197..84a7beb 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/VmConfig.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/VmConfig.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.content.Context diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/VmImport.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/VmImport.kt index 789a9d0..42f9ab4 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/VmImport.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/VmImport.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.app.Notification diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/VmService.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/VmService.kt index 51c6446..0a2b69a 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/VmService.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/VmService.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import android.app.Notification diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/AvfApi.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/AvfApi.kt index 708e656..e0983cd 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/AvfApi.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/AvfApi.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel.avf import android.content.Context diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/AvfIo.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/AvfIo.kt index 343a120..142fdfd 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/AvfIo.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/AvfIo.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel.avf import android.view.KeyEvent diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/Sccam.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/Sccam.kt index dfc9480..0d6aef0 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/Sccam.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/Sccam.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel.avf import java.nio.ByteBuffer diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/SccamCamera.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/SccamCamera.kt index 95fb5ea..60ecbe1 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/SccamCamera.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/SccamCamera.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel.avf import android.Manifest diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/Scfb.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/Scfb.kt index 1eb3e66..173c5a9 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/Scfb.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/Scfb.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel.avf import java.nio.ByteBuffer diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/ScfbBattery.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/ScfbBattery.kt index 6e3af19..4203937 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/ScfbBattery.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/ScfbBattery.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel.avf import android.content.BroadcastReceiver diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/ScfbIo.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/ScfbIo.kt index edd2843..0de3815 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/ScfbIo.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/ScfbIo.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel.avf import android.os.Build diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/Scgpu.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/Scgpu.kt index e769128..dd59017 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/Scgpu.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/Scgpu.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel.avf import android.view.Surface diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/Scsnd.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/Scsnd.kt index 74a23db..86b1ac8 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/Scsnd.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/Scsnd.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel.avf import java.nio.ByteBuffer diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/TouchQueue.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/TouchQueue.kt index a19bd59..b581cb9 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/TouchQueue.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/avf/TouchQueue.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel.avf /** diff --git a/app/src/main/java/io/github/dylanneve1/iosonpixel/rfb/RfbClient.kt b/app/src/main/java/io/github/dylanneve1/iosonpixel/rfb/RfbClient.kt index b814fd1..6f60177 100644 --- a/app/src/main/java/io/github/dylanneve1/iosonpixel/rfb/RfbClient.kt +++ b/app/src/main/java/io/github/dylanneve1/iosonpixel/rfb/RfbClient.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel.rfb import android.net.LocalSocket diff --git a/app/src/main/res/drawable/ic_launcher.xml b/app/src/main/res/drawable/ic_launcher.xml index d5105c4..85e60ad 100644 --- a/app/src/main/res/drawable/ic_launcher.xml +++ b/app/src/main/res/drawable/ic_launcher.xml @@ -1,4 +1,5 @@ + + Scion Virtual machine diff --git a/app/src/test/java/io/github/dylanneve1/iosonpixel/EdgeMapTest.kt b/app/src/test/java/io/github/dylanneve1/iosonpixel/EdgeMapTest.kt index c4d45a5..53b1358 100644 --- a/app/src/test/java/io/github/dylanneve1/iosonpixel/EdgeMapTest.kt +++ b/app/src/test/java/io/github/dylanneve1/iosonpixel/EdgeMapTest.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import io.github.dylanneve1.iosonpixel.EdgeMap.Box diff --git a/app/src/test/java/io/github/dylanneve1/iosonpixel/InstallMigrationTest.kt b/app/src/test/java/io/github/dylanneve1/iosonpixel/InstallMigrationTest.kt index 111db0a..c842cb8 100644 --- a/app/src/test/java/io/github/dylanneve1/iosonpixel/InstallMigrationTest.kt +++ b/app/src/test/java/io/github/dylanneve1/iosonpixel/InstallMigrationTest.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import org.junit.Assert.assertEquals diff --git a/app/src/test/java/io/github/dylanneve1/iosonpixel/QemuCommandTest.kt b/app/src/test/java/io/github/dylanneve1/iosonpixel/QemuCommandTest.kt index 818e245..70eaebd 100644 --- a/app/src/test/java/io/github/dylanneve1/iosonpixel/QemuCommandTest.kt +++ b/app/src/test/java/io/github/dylanneve1/iosonpixel/QemuCommandTest.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import org.junit.Assert.assertEquals diff --git a/app/src/test/java/io/github/dylanneve1/iosonpixel/QemuEnvTest.kt b/app/src/test/java/io/github/dylanneve1/iosonpixel/QemuEnvTest.kt index ba9d32a..c9f4593 100644 --- a/app/src/test/java/io/github/dylanneve1/iosonpixel/QemuEnvTest.kt +++ b/app/src/test/java/io/github/dylanneve1/iosonpixel/QemuEnvTest.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel import org.junit.Assert.assertEquals diff --git a/app/src/test/java/io/github/dylanneve1/iosonpixel/avf/SccamTest.kt b/app/src/test/java/io/github/dylanneve1/iosonpixel/avf/SccamTest.kt index 1216d62..ce6dcfc 100644 --- a/app/src/test/java/io/github/dylanneve1/iosonpixel/avf/SccamTest.kt +++ b/app/src/test/java/io/github/dylanneve1/iosonpixel/avf/SccamTest.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel.avf import org.junit.Assert.assertEquals diff --git a/app/src/test/java/io/github/dylanneve1/iosonpixel/avf/ScfbTest.kt b/app/src/test/java/io/github/dylanneve1/iosonpixel/avf/ScfbTest.kt index 51870fd..c59e9a2 100644 --- a/app/src/test/java/io/github/dylanneve1/iosonpixel/avf/ScfbTest.kt +++ b/app/src/test/java/io/github/dylanneve1/iosonpixel/avf/ScfbTest.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel.avf import org.junit.Assert.assertArrayEquals diff --git a/app/src/test/java/io/github/dylanneve1/iosonpixel/avf/TouchQueueTest.kt b/app/src/test/java/io/github/dylanneve1/iosonpixel/avf/TouchQueueTest.kt index e841724..2f9182a 100644 --- a/app/src/test/java/io/github/dylanneve1/iosonpixel/avf/TouchQueueTest.kt +++ b/app/src/test/java/io/github/dylanneve1/iosonpixel/avf/TouchQueueTest.kt @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 package io.github.dylanneve1.iosonpixel.avf import org.junit.Assert.assertArrayEquals diff --git a/build.gradle.kts b/build.gradle.kts index b9f750f..2f82d60 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 plugins { id("com.android.application") version "9.3.3" apply false } diff --git a/docs/AUDIO.md b/docs/AUDIO.md index d081d79..ca3b544 100644 --- a/docs/AUDIO.md +++ b/docs/AUDIO.md @@ -1,3 +1,4 @@ + # 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 diff --git a/docs/ETHICS.md b/docs/ETHICS.md index 8f776e2..603e81b 100644 --- a/docs/ETHICS.md +++ b/docs/ETHICS.md @@ -1,3 +1,4 @@ + # Project aim, ethics and legal position ## Aim diff --git a/docs/GPU.md b/docs/GPU.md index 8d310dc..e9b0aba 100644 --- a/docs/GPU.md +++ b/docs/GPU.md @@ -1,3 +1,4 @@ + # 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 diff --git a/docs/HANDOFF.md b/docs/HANDOFF.md index 36cf011..b9200c8 100644 --- a/docs/HANDOFF.md +++ b/docs/HANDOFF.md @@ -1,3 +1,4 @@ + # Handoff notes (2026-10-21) State of the project, everything verified so far, and what to do next. Read diff --git a/docs/NETWORKING.md b/docs/NETWORKING.md index f13b468..25d9f24 100644 --- a/docs/NETWORKING.md +++ b/docs/NETWORKING.md @@ -1,3 +1,4 @@ + # Networking: getting the guest online ## AVF backend (iOS 16.5 on HackiOS's XNU): the "Network" setting diff --git a/docs/PERF.md b/docs/PERF.md index beeeabc..263c2e6 100644 --- a/docs/PERF.md +++ b/docs/PERF.md @@ -1,3 +1,4 @@ + # Restore-boot benchmark and profile (iOS 14.8, Android) Issue #48. Measured on the Android **emulator** (`sdk_gphone64_arm64`, 8 host cores) with diff --git a/docs/PHONE-QUICKSTART.md b/docs/PHONE-QUICKSTART.md index 1e907a8..91f25ae 100644 --- a/docs/PHONE-QUICKSTART.md +++ b/docs/PHONE-QUICKSTART.md @@ -1,3 +1,4 @@ + # 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 diff --git a/docs/PHONE-SMOKE.md b/docs/PHONE-SMOKE.md index 596cd6a..78330fb 100644 --- a/docs/PHONE-SMOKE.md +++ b/docs/PHONE-SMOKE.md @@ -1,3 +1,4 @@ + # 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 diff --git a/docs/RELATED-PROJECTS.md b/docs/RELATED-PROJECTS.md index 110dc88..79eed9c 100644 --- a/docs/RELATED-PROJECTS.md +++ b/docs/RELATED-PROJECTS.md @@ -1,3 +1,4 @@ + # 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. diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 4f9aa81..7494d38 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -1,3 +1,4 @@ + # Roadmap Ordered roughly by payoff over effort. "Measured" items need a booted VM on a diff --git a/gradle.properties b/gradle.properties index 5ab792c..5e024fc 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,3 @@ +# SPDX-License-Identifier: MIT-0 org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8 android.useAndroidX=false diff --git a/native/build-android.sh b/native/build-android.sh index bf29fda..8ca9000 100755 --- a/native/build-android.sh +++ b/native/build-android.sh @@ -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. # diff --git a/native/fetch-gfxstream.sh b/native/fetch-gfxstream.sh index 11059c0..224b894 100755 --- a/native/fetch-gfxstream.sh +++ b/native/fetch-gfxstream.sh @@ -1,4 +1,5 @@ #!/bin/bash +# SPDX-License-Identifier: MIT-0 # libgfxstream_backend.so for the APK (app/src/main/jniLibs, which git ignores): gfxstream's host # renderer for Android arm64, which the AVF GPU (SCGPU, app/src/main/cpp/scgpu.c) loads at run time. # It is built by scion-kernel's tools/gfxstream/mk-host-android.sh (gfxstream at the commit the diff --git a/native/pgo-profile.sh b/native/pgo-profile.sh index 6f7d42f..9711e67 100755 --- a/native/pgo-profile.sh +++ b/native/pgo-profile.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: MIT-0 # Generates a PGO profile for the Android QEMU from the iOS 14.8 restore boot # (docs/PERF.md, "Compiler and linker options"): # 1. builds an instrumented QEMU (native/build/qemu-pgo-gen), diff --git a/native/qemu_jni.c b/native/qemu_jni.c index f39858a..e565bec 100644 --- a/native/qemu_jni.c +++ b/native/qemu_jni.c @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: MIT-0 */ /* * JNI shim for the in-process QEMU variant (QemuVmService, ":vm" process). * diff --git a/settings.gradle.kts b/settings.gradle.kts index b3da404..78946cd 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT-0 pluginManagement { repositories { google() diff --git a/tools/aaudio_tone.c b/tools/aaudio_tone.c index 6f844cf..2f21dab 100644 --- a/tools/aaudio_tone.c +++ b/tools/aaudio_tone.c @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: MIT-0 */ /* * aaudio_tone: Scion audio milestone 3, step 1 probe. * Opens an AAudio output stream the way the planned QEMU driver will diff --git a/tools/emu_test.py b/tools/emu_test.py index e4c7328..9cfd7b6 100755 --- a/tools/emu_test.py +++ b/tools/emu_test.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: MIT-0 """Regression checks for the Android build of QEMU, run on an emulator or phone. Pushes the cross-built qemu-system-aarch64 to a device over adb and runs: diff --git a/tools/idle_bench.py b/tools/idle_bench.py index a38b455..51d9897 100755 --- a/tools/idle_bench.py +++ b/tools/idle_bench.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: MIT-0 """Boot restore mode to waiting_host, then measure per-thread host CPU while the guest idles. Reuses restore_bench.py's command line and kit layout. For each run prints, per QEMU diff --git a/tools/install-ios-bundle.sh b/tools/install-ios-bundle.sh index a0934ec..047e84f 100755 --- a/tools/install-ios-bundle.sh +++ b/tools/install-ios-bundle.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: MIT-0 # Install Scion and its iOS 16.5 VM (AVF) on a Pixel over adb, from the bundle the "ios-bundle" workflow makes # (scion-ios-bundle.7z, opened with its passphrase). Run it from the bundle's folder: # diff --git a/tools/package_vm.py b/tools/package_vm.py index 3d3e0f5..233da28 100755 --- a/tools/package_vm.py +++ b/tools/package_vm.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: MIT-0 """Package a finished Inferno setup (the guide's "InfernoData" folder) for the phone. Run this on the Mac *after* the restore, filesystem patches and first boot diff --git a/tools/restore_bench.py b/tools/restore_bench.py index a9b23ae..29bb1e1 100755 --- a/tools/restore_bench.py +++ b/tools/restore_bench.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: MIT-0 """Benchmark the iOS restore boot on an Android device, and optionally profile it. Boots the t8030 machine into the iOS 14 restore environment N times and reports