openstf / stf

Control and manage Android devices from your browser.
https://openstf.io
Other
13.27k stars 2.74k forks source link

Remote debugging with local control #814

Open Rabusek opened 6 years ago

Rabusek commented 6 years ago

Hi stf devs!

I'm trying to use the STF in a manner where I control the device and the dev I'm working with is connecting with the device via adb connect to see the logs locally.

Is that possible scenario? When we try that, dev is able to connect, but doesn't see the device in the list. WE can do that via myself going physically to the device but that takes a while each time a change is pushed.

Unfortunately remote control by the dev is not possible because of huge delays (USA -> Europe).

thinkhy commented 6 years ago

Seems your dev colleagues didn't register their Android public key on your STF. When they connect with your device via "adb connect ip:port", you could find a pop-up permit dialog on your STF web UI and click yes to permit it.

jachstet-sea commented 6 years ago

In our env sometimes that dialog does not appear on the web UI. But navigating to settings and adding the key manually helps. It also happens that users mistype their email-address and as such do not have the ADB keys in the same account

sorccu commented 6 years ago

Make sure developers don't share ADB keys. Each account should have a unique ADB key.