Android port that aims to bring both user- and developer-friendly experience in using AOSP with a set of single-board computers (SBC), phones and other devices.
Step 0:
Using this code enable GNSS in the modem.rc file.
adb shell
$ su
# echo 1 > /sys/class/modem-power/modem-power/device/powered
# cat /dev/ttyUSB1 &
# echo AT+QGPS=1,30,50,0,2 > /dev/ttyUSB2
You should see GPS data on the screen.
To disable GPS:
# echo AT+QGPSEND > /dev/ttyUSB2
Now as we have working mm-radio HAL (https://github.com/GloDroid/mm-radio), same approach can be used to bring-up modem-manager based GNSS HAL, (mm-gnss).
Step 0: Using this code enable GNSS in the
modem.rc
file.Step 1. Try to use GNSS@1.0 with existing library: https://github.com/zxcwhale/android7_gnss_hal_driver
Step 2: Use AOSP GNSS@2 mock implementation and integrate library's logic from Step 1 into it.