commit | 8a25a057246fe471ae3eec1dc35ba66c5df904f9 | [log] [tgz] |
---|---|---|
author | A. Cody Schuffelen <schuffelen@google.com> | Thu Mar 31 14:18:50 2022 -0700 |
committer | A. Cody Schuffelen <schuffelen@google.com> | Fri Jul 08 15:56:33 2022 -0700 |
tree | 5e53aa9cdb5bb5ddec597e96b78b7d5b542286d4 | |
parent | 80ea72b461ea5928a8937360db119cc924ed746c [diff] |
Fix crash in `ReadFile` when the input file is empty. When the internal ifstream is in a `fail()` state `tellg()` returns -1, and passing that directly to `std::string::resize` causes it to throw an exception. We can avoid the exception by checking `fail()` first. Bug: 227657872 Test: Use with aosp/2048065 Change-Id: Ibb262c753ad90d044a0d8c28d439ea699a481b2b Merged-In: Ibb262c753ad90d044a0d8c28d439ea699a481b2b
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!