How to enable GPS location on Android?

Outstanding news @Terry

@Terry
You have finally found a library for GPS receivers. Well.
Now to support all receivers, you need to add all USB serial drivers in kernel (PL2303, CH341, CP210X, FTDI_SIO) and add the ability to select the port and speed in the build.prop file. Also need to add 666 rights in ueventd.amlogic.rc file for ttyS4 and ttyUSB too.
Also, if you want GPS receivers to be defined as ttyGPS, you need to correct the drivers/usb/class/cdc-acm.c file.

Any ideas on how to add some additional touch drivers too?

Did you means USB touch module?

Now it’s only support USB GPS and not for UART GPS. :grinning:

No, it’s wrong. You use Voodik’s library. It supports all receivers, just need to add speed and port in build.prop file, for example:

ro.kernel.android.gps=ttyS4
ro.kernel.android.gps.speed=9600

I use it with UART port on all khadas board for the last 3 years.

1 Like

I means our official ROM not means the gps library. :sweat:

1 Like

Everyone can try my VIM3 ROM for car usage.
I activated UART GPS support.
ROM supports all USB and UART receivers, just need to add speed and port in /vendor/build.prop file, for example:

ro.kernel.android.gps=ttyS3
ro.kernel.android.gps.speed=9600

U-blox receivers are defined as ttyGPS. Also added all USB serial drivers in kernel (PL2303, CH341, CP210X, FTDI_SIO).
The maximum number of steps to adjust the volume, everyone can set the desired volume value, need to adjust the lines “ro.dmf.media.levels=30” - multimedia channel, “ro.dmf.notification.levels=15” - notification channel, “ro.dmf.alarm.levels=15” - alarm channel in the file /vendor/build.prop.
Shutdown by holding the POWER button for a long time without the confirmation menu.

My next steps:
Need to add VESA resolutions and ignoring an active Bluetooth connection, playing music, and a network connection for fast enter to deepsleep mode.

3 Likes

Ссылка больше не работает, можно ли еще скачать эту прошивку?
А может есть библиотека gps отдельно? Спасибо.