This repository was archived by the owner on Jan 10, 2023. It is now read-only.
Description Steps to reproduce:
pip install adb pycryptodome rsa
Run the following Python commands:
from adb import adb_commands
from adb .sign_pythonrsa import PythonRSASigner
from adb .adb_protocol import InvalidChecksumError
serial = '192.168.0.74:5555'
adbkey = '/home/jeff/.android/adbkey'
signer = PythonRSASigner .FromRSAKeyPath (adbkey )
conn = adb_commands .AdbCommands ().ConnectDevice (serial = serial , rsa_keys = [signer ])
Error message:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-1-85eb2f5c0fc0> in <module>()
8 signer = PythonRSASigner.FromRSAKeyPath(adbkey)
9
---> 10 conn = adb_commands.AdbCommands().ConnectDevice(serial=serial, rsa_keys=[signer])
~/.virtualenvs/adb/lib/python3.5/site-packages/adb/adb_commands.py in ConnectDevice(self, port_path, serial, default_timeout_ms, **kwargs)
128 if 'handle' in kwargs:
129 self._handle = kwargs.pop('handle')
--> 130 elif serial and b':' in serial:
131 self._handle = common.TcpHandle(serial, timeout_ms=default_timeout_ms)
132 else:
TypeError: 'in <string>' requires string as left operand, not bytes
This issue is fixed by #119
Reactions are currently unavailable
Steps to reproduce:
pip install adb pycryptodome rsaRun the following Python commands:
Error message:
This issue is fixed by #119