Cannot run application over WiFi ADB

Hi,

I’m developing an app that uses a UVC Webcam and need to be able to debug while keeping the board in keyboard + mouse (USB host) mode.

I’m running the latest Android 5.1 and having a difficult time getting wifi adb to run under any IDE (tried both Eclipse with ADT and AS 1.5.1). I can access the shell using wifi adb from a terminal.

I followed the steps in this app note to create the tcipip service on port 5555 and set permissions, etc.

In eclipse when I do ‘Run as’ > Android Application and select the ‘unknown-msm8916_for_arm64-10.9…’ device, the console shows:

[2015-12-30 00:01:27 - SplashScreen] Android Launch!
[2015-12-30 00:01:27 - SplashScreen] adb is running normally.
[2015-12-30 00:01:27 - SplashScreen] Performing com.qualcomm.fastcvdemo.apis.SplashScreen activity launch
[2015-12-30 00:01:27 - SplashScreen] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2015-12-30 00:01:33 - SplashScreen] WARNING: Unknown device API version!
[2015-12-30 00:01:33 - SplashScreen] Uploading SplashScreen.apk onto device '10.90.227.142:5555'
[2015-12-30 00:01:39 - SplashScreen] Failed to install SplashScreen.apk on device '10.90.227.142:5555': timeout
[2015-12-30 00:01:39 - SplashScreen] Launch canceled!

Also, just a note, when boot switch 3 is set to ON (USB Host mode) the DB410c shows up as ip_address:5555 in the Android Device Chooser instead of ‘unknown-msm8916…’

In Eclipse I have tried changing the ‘ADB connection timeout’ to 10s through Window > Preferences > Android > DDMS.

In Android Studio, the ‘Device Chooser’ fields are:
Device: (empty)
State: Online
Compatible: No, minSdk(API 15) > deviceSdk(API 1)
Serial Number: ip_address:5555

On the board I have tried running this Wifi ADB app:
https://play.google.com/store/apps/details?id=com.ttxapps.wifiadb&hl=en on the DragonBoard

Other relevant settings:

Under Settings > Security, I have allowed installation of apps from unknown sources.
In developer options, USB debugging is enabled (even though i’m trying to bypass it).

There are two fields which are greyed out in developer options:

  • Wait for debugger (off by default)
  • Verify apps over USB (on by default)

I still have a few other things to try, but any tips are greatly appreciated!

Hi .
Re: just a note, when boot switch 3 is set to ON (USB Host mode) the DB410c shows up as ip_address:5555 in the Android Device Chooser instead of ‘unknown-msm8916…’
>> This is expected. This is because , in host mode, the adb over USB connection is not present and you only have adb over wifi .
And adb over wifi is listed as ‘ip_address:5555’

Re: "In eclipse when I do ‘Run as’ > Android Application and select the ‘unknown-msm8916_for_arm64-10.9….’ "
>> if the BOOT switch 3 is set to ON, you have to install the application using the adb over wifi interface. please select “ip_address:5555”
The install should work.

thanks
Sujai.

Full Disclosure: I am an employee of Qualcomm Innovation Center, Inc. San Diego . Views expressed are my own and not reflect my employer.

Hi Sujai,

I connected them both to a tether and was able to debug over wifi from Android Studio. It was an issue with my router and/or my proximity to it (only seeing fair signal strength).

The Device Chooser now shows:

Device: Unknown MSM8916 for Arm64 Android 5.1.1, API 22
State: Online
Compatible: Yes
Serial Number: ip_address:5555

Hi angusg
Glad to know the issue was with the router.
Let us know if there were any other issues /inconsistencies when using adb over wifi.

Full Disclosure: I am an employee of Qualcomm Innovation Center, Inc. San Diego . Views expressed are my own and not reflect my employer.