I have a Nexus 5X running Android 7.0 (security patch level: November 5, 2016; Build number: N5D91L) plugged into my Mac with USB debugging enabled.
ADB recognizes the device (so this solution is not relevant):
$ adb devices -l
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
016e07928f462163 device usb:337641472X product:bullhead model:Nexus_5X device:bullhead
I turn on the Selendroid server using the demo setup:
java -jar selendroid-standalone-0.17.0-with-dependencies.jar -app selendroid-test-app-0.17.0.apk
But when I check http://localhost:4444/wd/hub/status
, the device is not listed in supportedDevices
:
{
"value": {
"os": {
"name": "Mac OS X",
"arch": "x86_64",
"version": "10.11.6"
},
"build": {
"browserName": "selendroid",
"version": "0.17.0"
},
"supportedDevices": [],
"supportedApps": [
{
"mainActivity": "io.selendroid.testapp.HomeScreenActivity",
"appId": "io.selendroid.testapp:0.17.0",
"basePackage": "io.selendroid.testapp"
},
{
"mainActivity": "io.selendroid.androiddriver.WebViewActivity",
"appId": "io.selendroid.androiddriver:0.17.0",
"basePackage": "io.selendroid.androiddriver"
}
]
},
"status": 0
}
The same basic procedure will show an Android 6 device or emulator.
How can I make Selendroid recognize my Android 7 device?