Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote Genymotion device connection failed for API21

I have a Genymotion device in another local PC (due to slow performance) and Android Studio in another development PC. I can connect any Genymotion device which is below API21 from my development PC (using adb connect 192.168.x.x) but any device with API21 shows offline in my development PC, though adb can connect well. In the "device choose" panel and device monitor, it shows offline. But in the remote PC, the same device is online and workable. Why does it show online for devices with API below 21, and offline for API 21+. I get the following after connecting to my remote Genymotion device. But the same device works on that remote host well. Any devices below API21 shows online.

enter image description here

like image 628
Tanvir Avatar asked Feb 08 '15 07:02

Tanvir


2 Answers

I think I got it right myself by trial n error.After connecting the remote genymotion device(API21),I found that there are several adb process in task manager for A SINGLE genymotion device.Then I manually stopped all "adb" process from windows task manager on remote machine (or adb kill-server command for all adb process,in my case there were more). Then using adb command I restarted and connected again the same remote device frm development machine. Somehow it is connected and shows ONLINE now and works as expected. I dont know why it happens to devices < API21. The other device >=API21 connects directly and shows online.The problem seems to be multiple adb process on remote machine for a single genymotion device of only API21.

like image 119
Tanvir Avatar answered Nov 03 '22 13:11

Tanvir


I tried both solutions (included the accepted one) and it didn't work. Finally found a solution to this one. After much fiddling, I found out that genymotion only allows adb connection from one machine at the time. Doing a adb kill-server on the host imediatelly followed by an adb connect ip on the remote machine did the trick.

like image 2
Henrique de Sousa Avatar answered Nov 03 '22 13:11

Henrique de Sousa