webadb / webadb.js

ADB host implementation based on WebUSB
https://webadb.github.io
MIT License
403 stars 71 forks source link

"Failed to connect with 'host::'" error. #1

Closed beaufortfrancois closed 6 years ago

beaufortfrancois commented 7 years ago

Steps to reproduce:

  1. Go to https://webadb.github.io/
  2. Plug my "Google Pixel" phone, make sure USB debugging is enabled
  3. Click "I understand and accept" button
  4. Click "Connect" button
  5. Select the device in the USB chooser and click "Connect"

What happens?

I get "Failed to connect with 'host::'" error. For info, the response I get in "connectAdb" is Adb.Message {cmd: "AUTH", arg0: 1, arg1: 0, data: DataView(20)}

cavokz commented 6 years ago

Please retry, at that time the adb authentication was unsupported.

Check also https://webadb.github.io/?debug=yes&dump=yes, it will provide extra info in the browser console (Ctrl+Shift+I). It could be useful for understanding what goes wrong.

I'm sorry I didn't notice this issue before, I'll improve on this.

beaufortfrancois commented 6 years ago

Thank you! I can now connect to it. Is that expected I get "ls: /tmp/test_webadb.txt: No such file or directory" when I press the "Send" button?

cavokz commented 6 years ago

you can try with /sdcard/Download/test_webadb.txt

beaufortfrancois commented 6 years ago

Argh, I can't connect it succesfully to it now ;(

key is not extractable

From https://webadb.github.io/?debug=yes&dump=yes

cavokz commented 6 years ago

Which version of Chrome/Chromium are you using? Maybe you can cut&paste what you see in the browser console?

beaufortfrancois commented 6 years ago
Google Chrome   63.0.3230.0 (Official Build) canary (64-bit)
Revision    0
Platform    10009.0.0 (Official Build) canary-channel samus
Firmware Version    Google_Samus.6300.174.0
Customization ID    SAMUS
cavokz commented 6 years ago

Windows, right?

beaufortfrancois commented 6 years ago

Chrome OS

cavokz commented 6 years ago

Please try again.

beaufortfrancois commented 6 years ago

Yeah. It works now! Thank you ;)

beaufortfrancois commented 6 years ago

Sending shell:ls -l /sdcard/Download/test_webadb.txt though still doesn't work I get "ls: /sdcard/Download/test_webadb.txt: No such file or directory" ;(

beaufortfrancois commented 6 years ago

Hitting "Push" button first helps ;) You may want to move the "Push" button first so that user can simply clicks each button in the top order.

cavokz commented 6 years ago

ok, that's nice. it shows that the file is not there. now if you push it, it will show up.

cavokz commented 6 years ago

reordered actions so to minimize surprises for the user.

beaufortfrancois commented 6 years ago

It is great! Thank you @cavokz!

cavokz commented 6 years ago

Thank you too @beaufortfrancois!