Repository navigation
Releases
cfview 1.0.2
cfview shows a display of a running Cuttlefish group in a window and sends mouse and keyboard input back to the guest. It reads the frames straight from the shared memory rings Cuttlefish keeps, so it needs no WebRTC, no browser and no video encoder.
New in 1.0.2
- Input survives a reboot of the guest.
adb rootdoes not outlast a reboot, so mouse and keys were lost until cfview was started again. cfview now asks for root again when it has to reopen an input pipe.
New in 1.0.1
- cfview runs
adb rootby itself on every VM that is not root yet. Before, mouse and keys did not arrive on a guest with SELinux enforcing, and nothing said why. - When
adb rootdoes not work, or adb gives no answer, cfview says so and shows the picture without input.
Download
cfview-1.0.2-x86_64-linux: one binary for x86-64 Linux, 575 KB. It needs glibc 2.28 or newer (Ubuntu 20.04, Debian 10, RHEL 8 and later).
chmod +x cfview-1.0.2-x86_64-linux
./cfview-1.0.2-x86_64-linux # display 0
./cfview-1.0.2-x86_64-linux 1 # display 1Check the download: sha256sum -c cfview-1.0.2-x86_64-linux.sha256
What it needs
- A running Cuttlefish group started with
cvd. cfview finds the newest one under/var/tmp/cvdby itself. - A display with overlays, because Cuttlefish keeps the frame rings only then. A single VM lays its display over itself:
--display0=width=1920,height=1080,overlays=0:0, with the size of your display.widthandheightare required by Cuttlefish;overlays=0:0is display 0 of VM 0, the display itself. libSDL2-2.0.so.0, loaded at start. On Debian or Ubuntu:sudo apt install libsdl2-2.0-0.- adb, for input. The Cuttlefish host package installs one and cfview finds it. Without adb it still shows the screen.
- For input, a userdebug or eng image: cfview runs
adb rootat start, because a guest with SELinux enforcing refuses input from the adb shell user. A guest started permissive works too.
How it was built
From the tag v1.0.2, with cargo zigbuild --release --target x86_64-unknown-linux-gnu.2.28 (Rust 1.100, zig 0.13). The crate has no dependencies beyond the standard library.
Known limits
- The configuration is looked for under
/var/tmp/cvdonly. - With several groups running, cfview takes the one configured last.
cfview 1.0.1
cfview shows a display of a running Cuttlefish group in a window and sends mouse and keyboard input back to the guest. It reads the frames straight from the shared memory rings Cuttlefish keeps, so it needs no WebRTC, no browser and no video encoder.
New in 1.0.1
- cfview runs
adb rootby itself on every VM that is not root yet. Before, mouse and keys did not arrive on a guest with SELinux enforcing, and nothing said why. - When
adb rootdoes not work, or adb gives no answer, cfview says so and shows the picture without input.
Download
cfview-1.0.1-x86_64-linux: one binary for x86-64 Linux, 572 KB. It needs glibc 2.28 or newer (Ubuntu 20.04, Debian 10, RHEL 8 and later).
chmod +x cfview-1.0.1-x86_64-linux
./cfview-1.0.1-x86_64-linux # display 0
./cfview-1.0.1-x86_64-linux 1 # display 1Check the download: sha256sum -c cfview-1.0.1-x86_64-linux.sha256
What it needs
- A running Cuttlefish group started with
cvd. cfview finds the newest one under/var/tmp/cvdby itself. - A display with overlays, because Cuttlefish keeps the frame rings only then. A single VM lays its display over itself:
--display0=width=1920,height=1080,overlays=0:0, with the size of your display.widthandheightare required by Cuttlefish;overlays=0:0is display 0 of VM 0, the display itself. libSDL2-2.0.so.0, loaded at start. On Debian or Ubuntu:sudo apt install libsdl2-2.0-0.- adb, for input. The Cuttlefish host package installs one and cfview finds it. Without adb it still shows the screen.
- For input, a userdebug or eng image: cfview runs
adb rootat start, because a guest with SELinux enforcing refuses input from the adb shell user. A guest started permissive works too.
How it was built
From the tag v1.0.1, with cargo zigbuild --release --target x86_64-unknown-linux-gnu.2.28 (Rust 1.100, zig 0.13). The crate has no dependencies beyond the standard library.
Known limits
- The configuration is looked for under
/var/tmp/cvdonly. - With several groups running, cfview takes the one configured last.
cfview 1.0.0
cfview shows a display of a running Cuttlefish group in a window and sends mouse and keyboard input back to the guest. It reads the frames straight from the shared memory rings Cuttlefish keeps, so it needs no WebRTC, no browser and no video encoder.
Download
cfview-1.0.0-x86_64-linux: one binary for x86-64 Linux, 568 KB. It needs glibc 2.28 or newer (Ubuntu 20.04, Debian 10, RHEL 8 and later).
chmod +x cfview-1.0.0-x86_64-linux
./cfview-1.0.0-x86_64-linux # display 0
./cfview-1.0.0-x86_64-linux 1 # display 1Check the download: sha256sum -c cfview-1.0.0-x86_64-linux.sha256
What it needs
- A running Cuttlefish group started with
cvd. cfview finds the newest one under/var/tmp/cvdby itself. - A display with overlays, because Cuttlefish keeps the frame rings only then. A single VM lays its display over itself:
--display0=width=1920,height=1080,overlays=0:0, with the size of your display.widthandheightare required by Cuttlefish;overlays=0:0is display 0 of VM 0, the display itself. libSDL2-2.0.so.0, loaded at start. On Debian or Ubuntu:sudo apt install libsdl2-2.0-0.- adb, for input. The Cuttlefish host package installs one and cfview finds it. Without adb it still shows the screen.
How it was built
From the tag v1.0.0, with cargo zigbuild --release --target x86_64-unknown-linux-gnu.2.28 (Rust 1.100, zig 0.13). The crate has no dependencies beyond the standard library.
Known limits
- The configuration is looked for under
/var/tmp/cvdonly. - With several groups running, cfview takes the one configured last.