commit | c99ed6780dc530b7c8da457b1e60a4b57e6e4329 | [log] [tgz] |
---|---|---|
author | Jason Macnak <natsu@google.com> | Wed Jan 08 09:45:17 2020 -0800 |
committer | Jason Macnak <natsu@google.com> | Wed Jan 08 11:18:45 2020 -0800 |
tree | 2efa78d7f597574418a6b15ebea6e0efea7650e6 | |
parent | eaf376abdff40d387b7d0c916656bc9b3db9bd90 [diff] |
Fix screen bytes size calculation The calculation was changed in aosp/1200261 which introduced an extra BytesPerPixel. This causes crashes in vnc_server with --gpu_mode=drm_virgl when trying to read past the end of the framebuffer buffer. Bug: b/147360526 Test: launch_cvd (and connect via vnc) Test: launch_cvd --gpu_mode=drm_virgl (and connect via vnc) Change-Id: If50c58ecf5a45456a4c4da784e101fef9db6ef97
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!