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.
I am just trying to test sample code. but this error is occured.
I think this problem is related with cryptography thing, so i installed cryptography package.
but I could not solve it.
File "test.py", line 4, in
from adb import sign_cryptography
ImportError: cannot import name 'sign_cryptography'
I am just trying to test sample code. but this error is occured.
I think this problem is related with cryptography thing, so i installed cryptography package.
but I could not solve it.
File "test.py", line 4, in
from adb import sign_cryptography
ImportError: cannot import name 'sign_cryptography'
installed package
M2Crypto==0.26.4
cryptography==2.8
rsa==4.0
certifi==2019.9.11
pure-python-adb==0.2.2.dev0
adb==1.3.0
python==3.6.5
this is my test code
import os.path as op
from adb import adb_commands
from adb import sign_cryptography
KitKat+ devices require authentication
signer = sign_cryptography.CryptographySigner( op.expandduser('~/.android/adbkey'))
Connect to the device
device = adb_commands.AdbCommands()
device.ConnectDevice( rsa_keys=[signer])
Now we can use Shell, Pull, Push, etc!
for i in xrange(10):
print( device.Shell('echo %d' % i) )
The text was updated successfully, but these errors were encountered: