commit | 1cf4f13cca334498bc50328a81a5ee362772cb00 | [log] [tgz] |
---|---|---|
author | Cody Schuffelen <schuffelen@google.com> | Mon Dec 09 18:54:51 2019 -0800 |
committer | Alistair Delva <adelva@google.com> | Wed Dec 11 10:48:11 2019 -0800 |
tree | c85e3437057275845079590c6980c721dc95419f | |
parent | c36abe48f1e444fc5734405a33feb99064c69633 [diff] |
Make subprocesses die when their parents do This could also be a configurable option in cvd::Subprocess, but it seems to work when always enabled. The PR_SET_PDEATHSIG setting is unset on the forked child, which happens to do the right thing already with run_cvd daemonizing. Because that does not use cvd::Subprocess, the setting doesn't apply to it (though it is given to run_cvd originally by launch_cvd). Bug: 145956571 Test: ctrl-c on launch_cvd Change-Id: I387db1acabe90e1f41abb159b1c07e891ea46a87
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!