commit | 627261dd50ca246edbf04c98d2aa3ec13a5234bc | [log] [tgz] |
---|---|---|
author | Nikita Ioffe <ioffe@google.com> | Thu Jan 30 19:04:15 2020 +0000 |
committer | Alistair Delva <adelva@google.com> | Mon Feb 03 05:47:40 2020 +0000 |
tree | f4dcd8ec115231beb95ebb47f2bc8b83a414bcea | |
parent | 258aa5823c9a9256ab2c1d5143455bbee855025f [diff] |
Enable userspace reboot on cuttlefish Test: acloud create --local-image --local-instance Test: adb reboot userspace Test: atest CtsUserspaceRebootHostSideTestCases Bug: 147726967 Change-Id: I5132acfef512ad0ebd0ec73b3e7d54e54565cd46 Merged-In: I5132acfef512ad0ebd0ec73b3e7d54e54565cd46
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!