commit | aa1ccbb920f519a697e40f28d92d1b7853f83354 | [log] [tgz] |
---|---|---|
author | Jason Macnak <natsu@google.com> | Thu Dec 19 13:34:02 2019 -0800 |
committer | Alistair Delva <adelva@google.com> | Mon Dec 23 15:57:12 2019 -0800 |
tree | d943c354ee332b3d80a7370af9f5e3ab70239cf9 | |
parent | 225ddf4c4be7ba454dc1666b0278351d2960be9a [diff] |
Update run_cvd to handle non-vsock frontend Adds a bool to specify whether vnc frontend was launched. aosp/1186883 changed the behavior of checking whether or not to enable the frontend flags in the vmm from whether or not all of the shared fds were created successfully to checking whether or not any server vsock ports were set. This was equivilent to the original check because one vsock port was always set for sending frames. But aosp/1186879 updates run_cvd to not set any vsock ports in the case of crosvm with GPU acceleration. Bug: b/128842306 Test: locally built and ran cuttlefish with crosvm<-wayland->vnc Change-Id: Ib104a075a643a50098b84a697f7c1a46b9098f2b
git clone https://github.com/google/android-cuttlefish cd android-cuttlefish debuild -i -us -uc -b sudo dpkg -i ../cuttlefish-common_*_amd64.deb sudo apt-get install -f
aosp-master
if you don't know what you're looking foraosp_cf_x86_phone
and click on userdebug
for the latest buildArtifacts
aosp_cf_x86_phone-img-xxxxxx.zip
-- it will always have img
in the name. Download this filecvd-host_package.tar.gz
. You should always download a host package from the same build as your images.mkdir cf cd cf tar xvf /path/to/cvd-host_package.tar.gz unzip /path/to/aosp_cf_x86_phone-img-xxxxxx.zip
Launch cuttlefish with:
$ HOME=$PWD ./bin/launch_cvd
Stop cuttlefish with:
$ HOME=$PWD ./bin/stop_cvd
You can use adb
to debug it, just like a physical device:
$ ./bin/adb -e shell
You can use the TightVNC JViewer. Once you have downloaded the TightVNC Java Viewer JAR in a ZIP archive, run it with
$ java -jar tightvnc-jviewer.jar -ScalingFactor=50 -Tunneling=no -host=localhost -port=6444
Click "Connect" and you should see a lock screen!