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
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ All notable changes to Verone are recorded here. The format follows
- The Verone logo, in `docs/brand`.
- `verone --version` shows the logo beside the version when run in a terminal, in
colour unless `NO_COLOR` is set. Piped or redirected output is unchanged.
- Android 12 phones: `verone create NAME --android 12`, using
`redroid/redroid:12.0.0-latest` pinned by digest. Android 14 stays the default.
Android 12 ignores "Restart" and "Power off" chosen inside it, so Verone runs a
small helper container, `verone-power-<code>`, while an Android 12 phone exists; it
carries those requests out (decision D-017). `verone doctor` reports it.
- The phone fidelity benchmark design, in `docs/benchmark.md` (decision D-016).

### Fixed

- `verone open` showed no window: scrcpy asks for Opus audio, which the Android
images cannot encode, and then gave up. Verone now asks for uncompressed audio
unless you pass your own audio option after `--`.

## [0.1.0] - 2026-11-15

Expand Down
8 changes: 8 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ virtual-machine engine with real isolation is planned for that purpose.
hardware-backed keys, strict SELinux) are absent or weakened. A security result
observed in Verone does not automatically hold on a real phone, in either direction.

**Android 12 phones bring one more privileged helper.** While an Android 12 phone
exists, Verone runs a small container named `verone-power-<code>` that can see and
enter every process on the computer, so it can restart or power off Android 12 phones
when asked from inside (Android 12 ignores those requests itself). It has no network
and a read-only file system, runs a fixed script from Verone's source, and only acts on
Verone's own Android 12 phones. It is removed when the last Android 12 phone is
deleted. Its log is `docker logs verone-power-<code>`.

**Anyone who can use Docker controls your phones.** Membership of the `docker` group is
equivalent to administrator rights on the computer, and that includes every phone's data.

Expand Down
27 changes: 26 additions & 1 deletion crates/verone-cli/src/phone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,23 @@ pub fn open<E: Engine>(env: &Env<E>, tools: &Tools, id: &str, extra: &[String])
let Some((program, leading)) = tools.scrcpy.split_first() else {
return Err(Error::failed("no screen-mirroring program is configured"));
};
// The redroid images have no Opus audio encoder, scrcpy's default. Without
// this, scrcpy's helper inside the phone fails and no window appears.
// Uncompressed audio needs no encoder. The user's own audio options win.
let audio_chosen = extra
.iter()
.any(|option| option.starts_with("--audio") || option == "--no-audio");
let audio: &[&str] = if audio_chosen {
&[]
} else {
&["--audio-codec=raw"]
};
let cmd = Cmd::new(program)
.args(leading)
.arg("--serial")
.arg(endpoint.to_string())
.arg(format!("--window-title=Verone – {}", profile.name))
.args(audio)
.args(extra)
.no_timeout()
.passthrough();
Expand Down Expand Up @@ -1118,7 +1130,20 @@ mod tests {
);
assert_eq!(
f.calls().last().unwrap(),
"scrcpy --serial 127.0.0.1:5555 --window-title=Verone – Work phone --no-window --time-limit=5"
"scrcpy --serial 127.0.0.1:5555 --window-title=Verone – Work phone --audio-codec=raw --no-window --time-limit=5"
);

// Audio options given by the user replace the default.
open(
&f.human(),
&tools(&adb, stub_scrcpy(&script)),
"work",
&["--no-audio".to_string()],
)
.unwrap();
assert_eq!(
f.calls().last().unwrap(),
"scrcpy --serial 127.0.0.1:5555 --window-title=Verone – Work phone --no-audio"
);
}

Expand Down
Loading
Loading