Skip to content

Commit

Permalink
added description, how to share one android identification key (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
red-avtovo authored and SrinivasanTarget committed Aug 18, 2017
1 parent f0e9d1c commit f976f4d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Binary file added Appium/authorization.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,23 @@
driver = new AndroidDriver<MobileElement>(new URL("http://192.168.99.100:32769/wd/hub"), caps);
}
```
### Share Android identification key

Each time, you will (re)create container, connected to container devices will ask for authorization after first
connection. To prevent that, you can share one identity through all created containers. To do that, you should:

- Connect all devices to docker physical machine
- Run `adb devices`
- Authorize all devices (do not forget to check **Always allow this computer**)

![Always allow this computer screenshot](Appium/authorization.png)

- run your containers with parameter `-v ~/.android:/root/.android`

For example:
```
$ docker run --privileged -d -p 4723:4723 -v ~/.android:/root/.android -v /dev/bus/usb:/dev/bus/usb --name container-appium appium/appium
```

### Connect to Android devices by Air

Expand Down

0 comments on commit f976f4d

Please sign in to comment.