commit | 77ef85ac2beb0463f8830bbd236350ffa94ff671 | [log] [tgz] |
---|---|---|
author | Tristan Muntsinger <muntsinger@google.com> | Wed Aug 11 06:55:21 2021 +0000 |
committer | Tristan Muntsinger <muntsinger@google.com> | Tue Aug 24 03:14:43 2021 +0000 |
tree | d48babae9ae4d6482f412aa4ba9d8261c5539f60 | |
parent | 1d6cb0d59b5d606e531d30dfd06045fd45016903 [diff] |
Change userdata filesystem type if different than current If the user already has a userdata image that is of f2fs type and then specifies f2fs as the userdata_format, the userdata image does not get recreated. However, if the formats between what the userdata image is and what the user requests (per `userdata_format`) differ, then the userdata image is formatted. Bug: 142424832 Test: launch_cvd --userdata_format=f2fs Test: launch_cvd --userdata_format=ext4 Change-Id: I659d21cb4f6b6caa5644a6269c22bbf3eeb0d06c
Make sure virtualization with KVM is available.
grep -c -w "vmx\|svm" /proc/cpuinfo
This should return a non-zero value. If running on a cloud machine, this may take cloud-vendor-specific steps to enable. For Google Compute Engine specifically, see the GCE guide.
Download, build, and install the host debian package:
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 sudo reboot
The reboot will trigger installing additional kernel modules and applying udev rules.
Go to http://ci.android.com/
Enter a branch name. Start with aosp-master
if you don‘t know what you’re looking for
Navigate to aosp_cf_x86_64_phone
and click on userdebug
for the latest build
Click on Artifacts
Scroll down to the OTA images. These packages look like aosp_cf_x86_64_phone-img-xxxxxx.zip
-- it will always have img
in the name. Download this file
Scroll down to cvd-host_package.tar.gz
. You should always download a host package from the same build as your images.
On your local system, combine the packages:
mkdir cf cd cf tar xvf /path/to/cvd-host_package.tar.gz unzip /path/to/aosp_cf_x86_64_phone-img-xxxxxx.zip
Launch cuttlefish with:
$ HOME=$PWD ./bin/launch_cvd
$ HOME=$PWD ./bin/stop_cvd
You can use adb
to debug it, just like a physical device:
$ ./bin/adb -e shell
When launching with ---start_webrtc
(the default), you can see a list of all available devices at https://localhost:8443
. For more information, see the WebRTC on Cuttlefish documentation.
When launching with --start_vnc_server=true
, 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!