gecko-dev/testing/mozbase/mozrunner
Aaron Klotz 4cef0c49f7 Bug 1581971: Part 5 - Update android_device.py to support installing and running lldb-server; r=gbrown,jmaher
In `verify_android_device`, when `debugger` is true, we setup `lldb-server`. We
also add a new method, `run_lldb_server`, for actually starting `lldb-server`.

Both cases call into a new function, `_setup_or_run_lldb_server`.

For setup functionality, this function copies `lldb-server` to the device and
then sets up its perms within the target app's data directory.

For run functionality, this function sets some environment variables and
(re)creates directories and log files as needed. Finally it starts the server
and returns to the caller the absolute path to the socket file on the device.
The client provides that path to `lldb` in order to connect to the server.

Both cases use `ADBDevice.batch_execute` to run several commands. The
`LLDB_SERVER_INSTALL_COMMANDS_SCRIPT` and `LLDB_SERVER_START_COMMAND_SCRIPT`
commands are intended to produce the same result as the `start_lldb_server.sh`
script that is provided by Android SDK.

Differential Revision: https://phabricator.services.mozilla.com/D94383
2021-02-19 21:07:19 +00:00
..
mozrunner Bug 1581971: Part 5 - Update android_device.py to support installing and running lldb-server; r=gbrown,jmaher 2021-02-19 21:07:19 +00:00
tests Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
setup.cfg
setup.py Bug 1683158 - Update mozrunner version number for release, r=jmaher 2020-12-17 18:00:49 +00:00