Skip to content

Commit f976f4d

Browse files
red-avtovoSrinivasanTarget
authored andcommitted
added description, how to share one android identification key (#61)
1 parent f0e9d1c commit f976f4d

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Appium/authorization.png

48.5 KB
Loading

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,23 @@
8282
driver = new AndroidDriver<MobileElement>(new URL("http://192.168.99.100:32769/wd/hub"), caps);
8383
}
8484
```
85+
### Share Android identification key
86+
87+
Each time, you will (re)create container, connected to container devices will ask for authorization after first
88+
connection. To prevent that, you can share one identity through all created containers. To do that, you should:
89+
90+
- Connect all devices to docker physical machine
91+
- Run `adb devices`
92+
- Authorize all devices (do not forget to check **Always allow this computer**)
93+
94+
![Always allow this computer screenshot](Appium/authorization.png)
95+
96+
- run your containers with parameter `-v ~/.android:/root/.android`
97+
98+
For example:
99+
```
100+
$ docker run --privileged -d -p 4723:4723 -v ~/.android:/root/.android -v /dev/bus/usb:/dev/bus/usb --name container-appium appium/appium
101+
```
85102
86103
### Connect to Android devices by Air
87104

0 commit comments

Comments
 (0)