Android, CyanogenMod and the GPS fix


There are a lot of people around providing gps fixes for Android. Most of them don't really help at all. I want to explain here what variables the code recognizes and what they do. The other thing is SuplCert which is the certificate to verify the ssl connection for the supl server. Most of the time poeple provide the wrong certificate. gps.conf There are two locations in the code which read the gps.conf file. GpsLocationProvider.java [1] GpsXtraDownloader.java [2] and loc_eng_cfg.cpp [3]. The GpsLocationProvider reads the following variables from the config: SUPL_HOST SUPL_PORT C2K_HOST C2K_PORT GpsXtraDownloader.java XTRA_SERVER_1 XTRA_SERVER_2 XTRA_SERVER_3 This is pretty obvious. It then calls a function from libloc_api called loc_eng_set_server() to set the agps server. libloc_api itself reads also…