tree: e52036553e99b36c8877bff4f1c3d82d50abeff2 [path history] [tgz]
  1. Android.bp
  2. blackboard.cpp
  3. blackboard.h
  4. frame_buffer_watcher.cpp
  5. frame_buffer_watcher.h
  6. jpeg_compressor.cpp
  7. jpeg_compressor.h
  8. keysyms.h
  9. main.cpp
  10. mocks.h
  11. README.md
  12. simulated_hw_composer.cpp
  13. simulated_hw_composer.h
  14. virtual_inputs.cpp
  15. virtual_inputs.h
  16. vnc_client_connection.cpp
  17. vnc_client_connection.h
  18. vnc_server.cpp
  19. vnc_server.h
  20. vnc_utils.h
host/frontend/vnc_server/README.md

Host side VNC server

Build instructions

bazel build host/frontend/vnc_server/:vnc_server

Requirements

  • libjpeg-turbo8-dev

Run Instructions

The vnc server receives frame updates from the hwcomposer through the shared memory, for which it needs to connect to the ivserver. To send input to the instance it temporarily connects to monkey, which is set up to run on the instance as a service and listens on port 6445, so you need to forward that port to a local socket.

  • Make sure to wait for monkey to start (about 16s), it‘s one of the last services to start since it’s started by the zygote:
adb shell ps -e | grep monkey
  • Forward the port to a local socket:
adb forward localfilesystem:/tmp/android-cuttlefish-1-input tcp:6445
  • Run the server:
bazel-bin/host/vnc_server/vnc_server --port=6444 --input_socket=/tmp/android-cuttlefish-1-input

The VNC server will then be listening for connections on port 6444 on the host.