commit | 4c20aa778f7a97be50284237d9afea1394b82320 | [log] [tgz] |
---|---|---|
author | Alistair Delva <adelva@google.com> | Wed Jul 08 16:58:17 2020 -0700 |
committer | Alistair Delva <adelva@google.com> | Thu Jul 09 22:45:30 2020 +0000 |
tree | fe7fdae765653656c70289378ca9a8880c2e9221 | |
parent | 261416a5d0d05e6e23a2fe34b9f07d7474a8e152 [diff] |
Switch logcat_receiver from vsock to virtio-console Remove "logcat_port" and replace it with "logcat_pipe_name". Alter the logcat_receiver to read from a pipe instead of a vsocket. Update the crosvm and qemu backends to create the hvc2 serial port and update the init script to write to this new location. In the guest, logcat can now run as logd, which fixes some long-standing sepolicy bug_maps. Keep logcat in the root group, so it can access all the logpersist classes. Remove extraneous sepolicy for writing to a pipe. Bug: 155217436 Bug: 160341724 Test: launch_cvd Test: launch_cvd -vm_manager=qemu_cli Change-Id: Ic1450da7977d90f7fa01b4c40a661ea60504c239 Merged-In: Ic1450da7977d90f7fa01b4c40a661ea60504c239
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!