|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| .vscode/ | | 15-Dec-2024 | - | 41 | 40 |
| apex/ | | 15-Dec-2024 | - | 469 | 420 |
| build/ | | 15-Dec-2024 | - | 670 | 587 |
| common/ | | 14-Jan-2024 | - | 16,953 | 11,705 |
| guest/ | | 15-Dec-2024 | - | 55,566 | 37,546 |
| host/ | | 15-Dec-2024 | - | 91,227 | 66,025 |
| recovery/ | | 15-Dec-2024 | - | 69 | 46 |
| shared/ | | 15-Dec-2024 | - | 9,932 | 5,885 |
| system_image/ | | 15-Dec-2024 | - | 963 | 945 |
| tests/ | | 15-Dec-2024 | - | 3,760 | 2,568 |
| tools/ | | 15-Dec-2024 | - | 3,710 | 2,663 |
| vsoc_arm64/ | | 15-Dec-2024 | - | 175 | 54 |
| vsoc_arm64_minidroid/ | | 15-Dec-2024 | - | 62 | 19 |
| vsoc_arm64_only/ | | 15-Dec-2024 | - | 281 | 89 |
| vsoc_arm64_pgagnostic/ | | 15-Dec-2024 | - | 139 | 59 |
| vsoc_arm_minidroid/ | | 15-Dec-2024 | - | 89 | 26 |
| vsoc_riscv64/ | | 15-Dec-2024 | - | 309 | 114 |
| vsoc_riscv64_minidroid/ | | 15-Dec-2024 | - | 77 | 26 |
| vsoc_x86/ | | 15-Dec-2024 | - | 365 | 125 |
| vsoc_x86_64/ | | 15-Dec-2024 | - | 304 | 120 |
| vsoc_x86_64_host/ | | 15-Dec-2024 | - | 46 | 9 |
| vsoc_x86_64_minidroid/ | | 15-Dec-2024 | - | 56 | 15 |
| vsoc_x86_64_only/ | | 15-Dec-2024 | - | 644 | 231 |
| vsoc_x86_64_pgagnostic/ | | 15-Dec-2024 | - | 140 | 59 |
| vsoc_x86_only/ | | 15-Dec-2024 | - | 121 | 37 |
| .clang-format | D | 15-Dec-2024 | 875 | 27 | 25 |
| Android.bp | D | 15-Dec-2024 | 5.7 KiB | 187 | 171 |
| Android.mk | D | 15-Dec-2024 | 5 KiB | 55 | 35 |
| AndroidProducts.mk | D | 15-Dec-2024 | 3.8 KiB | 70 | 52 |
| CleanSpec.mk | D | 14-Jan-2024 | 4.2 KiB | 79 | 19 |
| METADATA | D | 14-Jan-2024 | 39 | 4 | 3 |
| OWNERS | D | 15-Dec-2024 | 322 | 18 | 16 |
| OWNERS_techleads | D | 15-Dec-2024 | 140 | 8 | 7 |
| PREUPLOAD.cfg | D | 14-Jan-2024 | 194 | 8 | 6 |
| README.md | D | 15-Dec-2024 | 2.8 KiB | 94 | 69 |
| TEST_MAPPING | D | 15-Dec-2024 | 855 | 51 | 50 |
| default-permissions.xml | D | 15-Dec-2024 | 6.4 KiB | 145 | 74 |
| dtb.img | D | 14-Jan-2024 | 11 | 2 | 1 |
| host_package.mk | D | 15-Dec-2024 | 1 KiB | 29 | 16 |
| iwyu.imp | D | 14-Jan-2024 | 1.5 KiB | 23 | 22 |
| required_images | D | 15-Dec-2024 | 148 | 11 | 10 |
| rustfmt.toml | D | 14-Jan-2024 | 93 | | |
README.md
1# Cuttlefish Getting Started
2
3## Try Cuttlefish
4
51. Make sure virtualization with KVM is available.
6
7 ```bash
8 grep -c -w "vmx\|svm" /proc/cpuinfo
9 ```
10
11 This should return a non-zero value. If running on a cloud machine, this may
12 take cloud-vendor-specific steps to enable. For Google Compute Engine
13 specifically, see the [GCE guide].
14
15 [GCE guide]: https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances
16
17*** promo
18 ARM specific steps:
19 - When running on an ARM machine, the most direct way is to check
20 for the existence of `/dev/kvm`. Note that this method can also be used to
21 confirm support of KVM on any environment.
22***
23
242. Download, build, and install the host debian packages:
25
26 ```bash
27 sudo apt install -y git devscripts config-package-dev debhelper-compat golang curl
28 git clone https://github.com/google/android-cuttlefish
29 cd android-cuttlefish
30 sudo apt install devscripts equivs
31 for dir in base frontend; do
32 pushd $dir
33 sudo mk-build-deps -i
34 dpkg-buildpackage -uc -us
35 popd
36 done
37 sudo dpkg -i ./cuttlefish-base_*_*64.deb || sudo apt-get install -f
38 sudo dpkg -i ./cuttlefish-user_*_*64.deb || sudo apt-get install -f
39 sudo usermod -aG kvm,cvdnetwork,render $USER
40 sudo reboot
41 ```
42
43 The reboot will trigger installing additional kernel modules and applying
44 udev rules.
45
463. Go to http://ci.android.com/
474. Enter a branch name. Start with `aosp-main` if you don't know what you're
48 looking for
495. Navigate to `aosp_cf_x86_64_phone` and click on `userdebug` for the latest build
50
51*** promo
52 For ARM, use branch `aosp-main-throttled` and device target `aosp_cf_arm64_only_phone-trunk_staging-userdebug`
53***
54
556. Click on `Artifacts`
567. Scroll down to the OTA images. These packages look like
57 `aosp_cf_x86_64_phone-img-xxxxxx.zip` -- it will always have `img` in the name.
58 Download this file
598. Scroll down to `cvd-host_package.tar.gz`. You should always download a host
60 package from the same build as your images.
619. On your local system, combine the packages:
62
63 ```bash
64 mkdir cf
65 cd cf
66 tar xvf /path/to/cvd-host_package.tar.gz
67 unzip /path/to/aosp_cf_x86_64_phone-img-xxxxxx.zip
68 ```
69
7010. Launch cuttlefish with:
71
72 `$ HOME=$PWD ./bin/launch_cvd`
73
74## Debug Cuttlefish
75
76You can use `adb` to debug it, just like a physical device:
77
78 `$ ./bin/adb -e shell`
79
80## Launch Viewer (WebRTC)
81
82When launching with `---start_webrtc` (the default), you can see a list of all
83available devices at `https://localhost:8443` . For more information, see the
84WebRTC on Cuttlefish
85[documentation](https://source.android.com/setup/create/cuttlefish-ref-webrtc).
86
87## Stop Cuttlefish
88
89You will need to stop the virtual device within the same directory as you used
90to launch the device.
91
92 `$ HOME=$PWD ./bin/stop_cvd`
93
94