You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
TypeError: from_buffer() cannot return the address of a unicode object #159
i am sorry, the information less, i use ubuntu 18.04 and running adb with 1.0.41 vesion. clone this project and use setup.py to install. if i use sign_pycryptodome type to connect device, it can't auth and always throw the exception with DeviceAuthError if i run program. and i try working with sign_cryptography type to hope it can solve authError, but this error was happened, i don't know how to fix or skip it.
Activity
g1im2 commentedon Jun 17, 2019
i am sorry, the information less, i use ubuntu 18.04 and running adb with 1.0.41 vesion. clone this project and use setup.py to install. if i use sign_pycryptodome type to connect device, it can't auth and always throw the exception with DeviceAuthError if i run program. and i try working with sign_cryptography type to hope it can solve authError, but this error was happened, i don't know how to fix or skip it.
anthonybm commentedon Aug 8, 2019
Did you resolve this issue? I have the same error on OSX running "pyadb shell". The .pub key should be valid.
hamdya commentedon Nov 5, 2019
You need to modify line 33 of sign_cryptography.py to add .encode('ascii') as follows:
sa_prv_file.read().encode('ascii'), None, default_backend())
Fix Upstream google#159