commit | da77719060404fb157038ee7cfbed33ee38a4929 | [log] [tgz] |
---|---|---|
author | Paul Kirth <[email protected]> | Fri Jul 17 19:41:22 2020 +0000 |
committer | Paul Kirth <[email protected]> | Wed Aug 05 18:10:15 2020 +0000 |
tree | e209b9dc7f1a9bf03b753c727b0a7c9a43bd1251 | |
parent | a0a802f50fc06a178e36c5ee0b1808d5f27d8964 [diff] |
Support ebtable-legacy in allocd cuttlefish_common.init selects which ebtables program to use, as ebtables may not be available on all platforms, but instead may be ebtables-legacy. Since we're calling popen using that program name, this commit adds a method for choosing which version of ebtables to use with a new flag, set when allocd is started. The flag approach was chosen over just using a string to ensure that there would be no unintended way to influence the arguments to popen, since the program name can only be one of two choices. These changes propagate to all users of the ebtables apis, which so far is limited to only the wireless configurations. Bug: 148823285 Test: make -j Test: allocd &; launch_cvd --use_allocd; stop_cvd Change-Id: I9ad10313b8ce7de2ab121ca946420c73a6d9e47c
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!