Repository navigation
Android 12 phones, the power watcher, the benchmark design and a window fix - #13
Merged
Merged
Conversation
- docs/benchmark.md: the phone fidelity benchmark (D-016, accepted), with BM-01 results for A-17 (Android Emulator) and A-21 (reference phone, Android 12) and the two-set plan (Android 12 and 14). - Android 12 phones: redroid 12.0.0-latest pinned by digest; Android 14 stays the default. Tested on the reference laptop (A-22). - docs/design/android-12-power.md: how restart and power-off inside Android 12 will work (D-017, accepted). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-02) Each Verone data folder gets its own watcher, verone-power-<code>, so a test run with a temporary folder never replaces the user's watcher. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the reference laptop the phone was back 6.2 s after a restart request inside Android, and verone stop took 1.2 s with exit code 130. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
redroid images have no Opus encoder, scrcpy's default audio codec. The audio stream failed, scrcpy's helper in the phone was killed and no window appeared. verone open now passes --audio-codec=raw unless the user gives their own audio option. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reading every process every second cost 21% of one core. Looking for phones every 10 s, and at once when a watched phone ends, brings it to 1.7% on average with at most 3 MB of memory. Also stop a redirection from printing 'can't open' for processes that end mid-read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
User guide, SECURITY.md, architecture, benchmark notes, changelog and the design's results. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
Phone fidelity benchmark design (docs/benchmark.md, decision D-016, accepted)
A public, repeatable test that scores Verone, redroid, the Android Emulator, Cuttlefish and Waydroid against a real phone. Not built yet; this is the design plus the first prerequisite checks (BM-01):
Android 12 phones
verone create NAME --android 12usesredroid/redroid:12.0.0-latest, pinned by digest. Android 14 stays the default. Tested on the reference laptop (A-22): boots in about 5 s.Power watcher for Android 12 (docs/design/android-12-power.md, decision D-017, accepted; tasks P12-01 to P12-05)
Android 12 ignores "Restart" and "Power off" chosen inside it. While an Android 12 phone exists, Verone runs one small helper container per data folder,
verone-power-<code>, that carries the request out with the realrebootsystem call, so the phone ends with exit code 129 or 130, just as Android 14 does by itself.verone stop: 1.2 s with exit code 130 (was 20 s, then a kill).SECURITY.mddescribes the helper (privileged, host process view, no network, read-only).Fix:
verone openshowed no windowscrcpy asks for Opus audio, which the redroid images cannot encode, and then gave up. Verone now passes
--audio-codec=rawunless the user gives their own audio option.Tests
cargo fmt --check,cargo clippy --workspace --all-targets -- -D warnings: clean.cargo test --workspace: 237 passed.VERONE_TEST_DOCKER=1): 5 of 6 passed, including the new Android 12 test. The adb port test failed for the known, unrelated reason: thext_tcpudpfirewall module was not loaded on the laptop.Owner steps after merging
verone(0.1.0) has none of this until the next release.🤖 Generated with Claude Code