Hi,
---> Port GPS HAL layer for your target hardware
---> connect GPS device on UART port or USB port (enable usb option in kernel)
---> switch ON real GPS
device
----> After android booting its
showing below log messages (on my target board).
D/libhardware( 642): GPS hardware on this device start
D/LocationManagerService( 642): Found dir /data/location/gps
D/LocationManagerService( 642): name = gps
D/GpsLocationProvider( 642): enable
D/gps_celestial( 642): gps will read from /dev/ttyS2
D/gps_celestial( 642): gps state initialized
D/GpsLocationProvider( 642): GpsNetworkThread start
D/gps_celestial( 642): gps thread running
D/GpsLocationProvider( 642): GpsEventThread starting
D/GpsLocationProvider( 642): NetworkThread starting
...
...
....