Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emulator Control disabled with real android device

I'm trying to test a GPS-enabled application and want to test it on the real device (not the emulator). I want to spoof the application by sending fake GPS coordinates to it.

I've read that you can do this with DDMS, but this does not work because the "Emulator Control" to send the GPS signal is greyed out (disabled). I tried:

  • Selecting the right device.
  • Running DDMS both in eclipse and outside from the command-line
  • I have enabled the Settings on my Android device so it allows USB debugging and GPS spoofing.
like image 528
Roalt Avatar asked Nov 14 '22 13:11

Roalt


1 Answers

Like I said in my comment, I have the same issue. The best workaround I've found so far is Motorola Dev Forums, which requires a bit of code to spoof locations on an actual device. However, like the OP pointed out to the ignorant Moto rep, the android docs do promise the ability to fake locations from the DDMS. I'll try coding the TestProvider tomorrow, and post updates here if I have any luck. Would appreciate it if you could do the same.

like image 92
Neil Avatar answered Nov 16 '22 02:11

Neil