Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

ADB over serial port support. serial=/dev/ttyS1,115200 #178

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lsd-cat
Copy link

@lsd-cat lsd-cat commented May 27, 2020

Add support to connect to ADB over serial port.
Adds pySerial as a dependency.

Usage is as simple as

device.ConnectDevice(port_path=None, serial="/dev/ttyS11,115200")

In the case the baudrate is not specified, default is 115200.
tty is the keyword that triggers the SerialHandler instead of the Usb or Tcp ones.

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@JeffLIrion
Copy link
Contributor

You're welcome to submit a pull request to the adb-shell repo. If you'd like to do so, please follow the existing docentation style (numpydoc style), add tests for this serial transport, and create a subclass of AdbDevice. You can follow the example of the TCP transport:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants