commit | 49d5348a24958f7103c2ef64894e2a8733b62e01 | [log] [tgz] |
---|---|---|
author | Ram Muthiah <[email protected]> | Mon Aug 10 11:48:30 2020 -0700 |
committer | Ram Muthiah <[email protected]> | Mon Aug 10 19:57:16 2020 +0000 |
tree | 71d3992ecac78db377ae0f658e4942b5f7cbbd26 | |
parent | e80f4a545c60051df30bbc15e392b4f53ee892f3 [diff] |
Make all writes to the PTY nonblocking The PTY has a buffer that fills up during writes and can only be drained by a client. Once the PTY fills up, future writes to it are blocked until a client connects to the PTY. To prevent the PTY from filling up and blocking the console forwarder write thread during writes, make all writes to the PTY nonblocking. This change effectively voids all writes to the PTY until a client connects to it. Bug: 162365412 Test: locally via cf bootloader boot Change-Id: Idccf165b238c8b65159bab239340dbb7f3fb7dc2
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!