GloDroid / glodroid_manifest

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.
472 stars 66 forks source link

pinephone: Implement GNSS HAL #104

Open rsglobal opened 4 years ago

rsglobal commented 4 years ago

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

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.

rsglobal commented 1 year ago

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).