GPS tester for Android ROMs
This program uses Android's HAL functionality to completely bypass Java Framework layer and directly connect to GPS satelites and then outputs received information into the terminal.
How to use
-
Make sure Android NDK is installed and
ndk-build
is in your path. -
Create
build_config.local
file with your environment configuration. Example`
export ANDROID_SRCDIR=/mnt/android-workspace
export SYSDIR=/mnt/android-workspace/out/target/product/gtexslte/
export AUTOPUSH=true
-
Run
build.sh
. -
By default copy gps-test menually to your device or use
AUTOPUSH
setting inbuild_config.local
to do that automatically after compilation. -
Use
adb shell /data/data/gps-test
to get the output. You can also execute the program from any terminal inside Android.
NOTE: Inspired by "Android GPS using libhardware".