commit | 36845e3f05a0d6e744a64783ad6344e6a5203301 | [log] [tgz] |
---|---|---|
author | Jorge E. Moreira <jemoreira@google.com> | Thu Dec 19 14:40:24 2019 -0800 |
committer | Jorge E. Moreira <jemoreira@google.com> | Thu Dec 19 15:26:36 2019 -0800 |
tree | 1f52adac208fc1e5c4c1f7b988f9a6c0f5289b42 | |
parent | f2ef6451d376b08c9c9b06fc370c20f27db49904 [diff] |
Use big enough types to accomodate port numbers GetVsockPort() returns an unsigned int, so that's the type that should be used everywhere. The one exception is when obtaining it from a property in the guest, where unsigned int is not available, in which case int64 is used instead. Bug: 146582083 Test: launch_cvd and get lucky with a big port Change-Id: I4738a7a07dd41d0d72d9b4d1628ac8fe9ef328b9
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!