The whole "flash a TouchWiz rom and restore your cm13 rom to get a gps lock" fix wasn't cutting it for me so I went a little further and implemented some gps fixes I've researched and implemented in the past when I was trying to get the best gps for playing ingress.
First thing I noticed was that the cm13 Roms I installed had every gps.conf suggestion I've ever read worked on any phone ever. Here is an area where, in my opinion, more is not better. I stripped it down to just one xtra server, and one ntp server, picking ones for my geographical location.
I don't need the debugging anymore so I set it to 0, and I removed references to supl servers because we are not using those correctly, they require a supl certificate to be created specifically for you device, if you don't do that, yet have supl servers in your gps.conf, you are slowing down your lock time.
For capabilities, you'll notice that 17 is what all the different numbers add up to, meaning all those features are enabled and will be used if your (our) phone supports it.
I also changed the LPP to 3 to enable both user and control plane.
Last change was turning intermediate position on and setting threshold at 5000, turning this off (either by placing a hashtag in front of code or changing "1" to "0" ) will slow down gps lock time.
Try this out by opening your gps.conf file in the system/etc folder of your rooted cm13 rom and paste this text. Make sure the file permissions stay rw r r and restart your phone ,then enjoy your cm13 rom with quick gps locks.
First thing I noticed was that the cm13 Roms I installed had every gps.conf suggestion I've ever read worked on any phone ever. Here is an area where, in my opinion, more is not better. I stripped it down to just one xtra server, and one ntp server, picking ones for my geographical location.
I don't need the debugging anymore so I set it to 0, and I removed references to supl servers because we are not using those correctly, they require a supl certificate to be created specifically for you device, if you don't do that, yet have supl servers in your gps.conf, you are slowing down your lock time.
For capabilities, you'll notice that 17 is what all the different numbers add up to, meaning all those features are enabled and will be used if your (our) phone supports it.
I also changed the LPP to 3 to enable both user and control plane.
Last change was turning intermediate position on and setting threshold at 5000, turning this off (either by placing a hashtag in front of code or changing "1" to "0" ) will slow down gps lock time.
Try this out by opening your gps.conf file in the system/etc folder of your rooted cm13 rom and paste this text. Make sure the file permissions stay rw r r and restart your phone ,then enjoy your cm13 rom with quick gps locks.
Code:
XTRA_SERVER_1=http://ift.tt/1u05zMX
# XTRA_SERVER_2=http://ift.tt/1rtjugN
# XTRA_SERVER_3=http://ift.tt/1u05ybH
# Error Estimate
# _SET = 1
# _CLEAR = 0
ERR_ESTIMATE=0
#Test
# NTP_SERVER=time.gpsonextra.net
#Asia
# NTP_SERVER=asia.pool.ntp.org
#Europe
# NTP_SERVER=europe.pool.ntp.org
#North America
NTP_SERVER=north-america.pool.ntp.org
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
# If DEBUG_LEVEL is commented, Android's logging levels will be used
DEBUG_LEVEL = 0
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=1
# supl version 1.0
# SUPL_VER=0x10000
# GPS Capabilities bit mask
# SCHEDULING = 0x01
# MSB = 0x02
# MSA = 0x04
# ON_DEMAND_TIME = 0x10
# default = ON_DEMAND_TIME | MSA | MSB | SCHEDULING
CAPABILITIES=0x17
# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
ACCURACY_THRES=5000
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
# SUPL_HOST=supl.host.com or IP
# SUPL_PORT=1234
# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234
####################################
# LTE Positioning Profile Settings
####################################
# 0: Enable RRLP on LTE(Default)
# 1: Enable LPP_User_Plane on LTE
# 2: Enable LPP_Control_Plane
# 3: Enable both LPP_User_Plane and LPP_Control_Plane
LPP_PROFILE = 3
################################
# EXTRA SETTINGS
################################
# NMEA provider (1=Modem Processor, 0=Application Processor)
NMEA_PROVIDER=0
##################################################
# Select Positioning Protocol on A-GLONASS system
##################################################
# 0x1: RRC CPlane
# 0x2: RRLP UPlane
# 0x4: LLP Uplane
A_GLONASS_POS_PROTOCOL_SELECT = 0x4
from xda-developers http://ift.tt/2bBW3PJ
via IFTTT
No comments:
Post a Comment