Sunday, October 18, 2015

One Plus One (bacon) GPS fix

1. Backup /system/etc/gps.conf

2. Copy this file to /system/etc/gps.conf 
This enables AGPS and SGLTE


####################################
#  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
# Mark if it is a SGLTE target (1=SGLTE, 0=nonSGLTE)
SGLTE_TARGET=1


3. Get the nearest NTP server from here : http://www.pool.ntp.org/en/ and update it in your gps.conf

4. change permissions of /system/etc/gps.conf to RW-R--R-- (644)

5. Use GPS Status Test & Fix app to reset & download AGPS data : https://play.google.com/store/apps/details?id=com.cochibo.gpsstatus&hl=en

6. I changed 'Tmobile US LTE' APN type from default,supl,mms to
default,supl,mms,agps. For your provider the settings may be different

7. Reboot and toggle Location to "High Accuracy"

PS: If you install Greenify, Amplify profile, custom kernel, disable service, wakelock fix, underclocking, build.prop flashable zip from here location services get disabled and the fix does not work