Add `remote_adb_setup` for remote work with local device.

This is based on Chromium's adb_remote_setup.sh modified by Tony at
https://github.com/domokit/devtools/issues/5 .

Fixes #18.

R=tonyg@chromium.org

Review URL: https://codereview.chromium.org/1179993006.

Cr-Mirrored-From: https://github.com/domokit/mojo
Cr-Mirrored-Commit: a19865b200b0db9b6f7b64346bc240117d1093c5
2 files changed
tree: d905dc4943451e63a8cfb68731ee0cf22d3f5f74
  1. android_stack_parser/
  2. devtoolslib/
  3. debugger
  4. README.md
  5. remote_adb_setup
README.md

Devtools

Unopinionated tools for running, debugging and testing Mojo apps.

The repo consists of:

  • devtoolslib - Python module containing the core scripting functionality for running Mojo apps: shell abstraction with implementations for Android and Linux and support for apptest frameworks
  • executable scripts - example embedders of devtoolslib and other utils

Embedding devtoolslib

As devtools carry no assumptions about build system or file layout being used, the primary way of using devtools now is to embed the functionality provided by devtoolslib in a thin wrapper script. For examples, one can refer to mojo's shell runner and apptest runner.

Executable scripts

The set of executable scripts is WIP. We currently offer:

  • debugger - supports interactive tracing of a running mojo shell and symbolizing android stack traces
  • remote_adb_setup - configures adb on a remote machine to communicate with a device attached to the local machine

Install

git clone https://github.com/domokit/devtools.git

File location

The library is canonically developed in the mojo repository, https://github.com/domokit/devtools is a mirror allowing to consume it separately.