This is my first time on these forums. I've exhausted all my options in trying to find information in how to get gpsd to run with my LG android phone on my laptop. So I'm posting here hoping someone will reach out to help me troubleshoot.
My setup: An old Dell E6400 XFR rugged laptop from around the year 2011
Problem: I'm running gpsd and getting the following:
root@BALLISTIC:~# gpsd -N -n D5 tcp://localhost:4352
gpsd:ERROR: SER: device open of D5 failed: No such file or directory - retrying read-only
gpsd:ERROR: SER: read-only device open of D5 failed: No such file or directory
gpsd:ERROR: initial GPS device D5 open failed
gpsd:ERROR: SER: device open of D5 failed: No such file or directory - retrying read-only
gpsd:ERROR: SER: read-only device open of D5 failed: No such file or directory
gpsd:ERROR: D5: device activation failed.
gpsd:ERROR: D5: activation failed, freeing device
gpsd:ERROR: internal error - too many satellites [72]!
gpsd:ERROR: internal error - too many satellites [72]!
gpsd:ERROR: internal error - too many satellites [72]!
What I'm trying to do: Use my LG G4 Android phone as a GPS and feed the data to Kismet. I have loaded BlueNMEA. And then using adb to forward all traffic via tcp port 4352. Running Android 6.0. Kernel version 3.10.84.
What I have done so far:
Verify phone is present with:
root@BALLISTIC:~# lsusb
Bus 004 Device 005: ID 1004:633e LG Electronics, Inc. G2 Android Phone [MTP mode]
Bus 004 Device 003: ID 0461:4e22 Primax Electronics, Ltd
Bus 004 Device 002: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 0a5c:5801 Broadcom Corp. BCM5880 Secure Applications Processor with fingerprint swipe sensor
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
and
dmesg
[ 628.572104] usb 4-3: new high-speed USB device number 7 using ehci-pci
[ 628.727579] usb 4-3: New USB device found, idVendor=1004, idProduct=633e
[ 628.727586] usb 4-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 628.727591] usb 4-3: Product: LGE Android Phone
[ 628.727595] usb 4-3: Manufacturer: LG Electronics Inc.
[ 628.727599] usb 4-3: SerialNumber: LGH8128*****
[ 634.039727] usb 4-3: USB disconnect, device number 7
[ 634.380272] usb 4-3: new high-speed USB device number 8 using ehci-pci
[ 634.535800] usb 4-3: New USB device found, idVendor=1004, idProduct=633e
[ 634.535807] usb 4-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 634.535812] usb 4-3: Product: LGE Android Phone
[ 634.535816] usb 4-3: Manufacturer: LG Electronics Inc.
[ 634.535820] usb 4-3: SerialNumber: LGH8128*****
I have consulted http://www.catb.org/gpsd/troubleshooting.html but to no avail.
Procedure I am following out of Kali Linux out-of-the-box setup:
1) Define kali sources and do:
apt-get update
apt-get install gpsd
apt-get install gpsd-clients
apt-get install android-tools-adb
2) Plug in your Anroid phone and verify with lsusb and dmesg
3) Start the Android daemon: adb devices
4) Download BlueNMEA app from Playstore on to your phone and start it.
5) adb forward tcp:4352 tcp:4352
6) If necessary, killall gpsd
rm /var/run/gpsd.sock
7) Start the GPS server: gpsd -N -n D5 tcp://localhost:4352
And bang this is where I run into trouble.
**Now here's the kicker, I was able to duplicate this procedure and run it successfully on a virtual machine with the Kali-Linux .ova VM image hosted on my other Dell Win10 laptop in VMware workstation!
So something leads me to believe that the physical laptop I am using (tried this on both a Dell E6400 XFR and regular Dell E56400 latitude) has a problem with interacting the phone via USB. I myself am actually very new to Linux, and have spent the majority of my life being a windows sys admin.
I guess my question is:
Is there something extra like some sort of driver/package that is required to make this work? (whereas the Kali-VM .ova image/VMware workstation player may provide that the regular Kali ISO distribution doesn't have?)
Any help from anyone would be appreciated.
Happy holidays,
Thanks!