sinkuri256 / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

Authentication failed: Handshake does not match. #393

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Trying to use android.py to remotely control my phone, I get this:

com.googlecode.android_scripting.rpc.RpcError: Authentication failed: Handshake 
does not match.
Traceback (most recent call last):
  File "./test_script.py", line 4, in <module>
    droid.makeToast('hello, my master')
  File "/home/coila/Desktop/NASA_Stuff/android-sdk-linux_86/tools/android.py", line 57, in rpc_call
    return self._rpc(name, *args)
  File "/home/coila/Desktop/NASA_Stuff/android-sdk-linux_86/tools/android.py", line 48, in _rpc
    result = json.loads(response)
  File "/usr/lib/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.6/json/decoder.py", line 338, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

This is on an ubuntu 9.04 system running python 2.6.2

Original issue reported on code.google.com by credenti...@gmail.com on 11 Aug 2010 at 6:20

GoogleCodeExporter commented 9 years ago
Oh, and also, using sl4a_r0.apk and python just now downloaded.

Original comment by credenti...@gmail.com on 11 Aug 2010 at 6:29

GoogleCodeExporter commented 9 years ago
The Tutorials wikipage links to this tutorial for doing remote scripts:

http://indefinitestudies.org/2009/06/20/command-your-shiny-android-in-python/

Which gives obsolete instructions for finding the AP_PORT to use.  When using 
that incorrect port, I got the above error.  You should remove the link to that 
tutorial, and make the RemoteControl tutorial easier to find.

Original comment by credenti...@gmail.com on 11 Aug 2010 at 6:59

GoogleCodeExporter commented 9 years ago
Tutorial removed and FAQ updated to point to the correct remote control 
instructions.

Original comment by damonkoh...@gmail.com on 18 Aug 2010 at 11:00