1- Install the app called Share GPS from Google PlayStore
NOTE: The steps for this part are different for each phone model, so please do your own research. The general steps are: activate the Developer Options (by clicking in the build information) and then activate the USB debugging option.
TIP: Run adb devices
on a console and it should return that your phone is connected
- Activity: Share my GPS with a laptop...using NMEA
- Connection Method: Use USB to send NMEA or host a GPSD server
- Name: PC (choose anything memorable)
NOTE: The status on GPS STATUS
tab should be 3D Fix (green), if not, try to go to an outdoor place for some minutes or until the phone locks the position
TIP: For normal usage, just open the app and follow the step 7 instructions again