mojo/v23proxy: Add support for running on Android devices

We also switch to passing in args rather than environment variables.
The reason is that Android won't accept/forward those over.

Further, stdout/stderr only appears on rooted phones, so this isn't
very easy to use on Android yet.
The issue is here: https://github.com/domokit/mojo/issues/531
UPDATE: This issue has been solved. You can see the go output on
non-rooted phones now!

Change-Id: I7a6a7cccd6885fc2d064114fd3a861cb96a7bbc4
5 files changed
tree: 98cfc5dfaadc57ab3d7a42ae58308cd3986b0e09
  1. go/
  2. mojom/
  3. .gitignore
  4. Makefile
  5. README.md
README.md

Mojo + v23 RPCs

This repository implements the proposal outlined here that enables communication between Mojo applications on different devices.

Quick start

  • For desktop: make build
  • For android: ANDROID=1 make build

The commands above build the .mojo shared library that can be run by mojo shells. For example:

  • make start-v23proxy
  • HOME=/tmp make ARGS="{see Makefile}" start-echo-client

You can also run these with Android devices. Use an ANDROID={N} prefix to run on the Nth Android device connected to your machine. N must be a positive integer.

Note: To run these examples, the devices used must run mojo_shell on the same local network.