Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,214 Members 38,246 Now Online
XDA Developers Android and Mobile Development Forum

GPS.CONF

Tip us?
 
axel_marchi
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Jun 2010
Default GPS.CONF

For those people use GPS on HTC DESIRE and it works after root.

Someone can post gps.conf file located at /system/etc.

I think it contains parameter to config gps module and I want to compare my gps.conf on my HTC DESIRE .

My HTC DESIRE gps module dont' fix anymore satellite position after root and flashing ROM

Thank you
 
Daelyn
Old
(Last edited by Daelyn; 18th July 2010 at 10:15 PM.)
#2  
Daelyn's Avatar
Senior Member
Thanks Meter 152
Posts: 666
Join Date: Dec 2006
Code:
# cat /system/etc/gps.conf
NTP_SERVER=europe.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=supl.google.com
SUPL_PORT=7276
Breakdown of contents:
NTP server is used to get accurate time, without you can't get a correct GPS loc.
XTRA is the GPS Satellite position servers.
SUPL is the Location server uses for A-GPS. in this case Google's own.
 

========== Current hardware =================
Sony Xperia Z1 Black > Awaiting AOSP
Samsung Galaxy S3 Mini > Running AOSP
=============== Stolen =====================
Samsung Galaxy SIII // Pebble Blue
ROM: The cleanest AOSP found.
============= Retired section ================
HTC Desire AMOLED // Custom H-Boot
ROM: Oxygen 2.3.2 Clean and lean!
Radio: 32.54.00.32U_5.14.05.17 + RIL
The Following User Says Thank You to Daelyn For This Useful Post: [ Click to Expand ]
 
tienhn
Old
#3  
Member
Thanks Meter 15
Posts: 47
Join Date: Jul 2008
Quote:
Originally Posted by Daelyn View Post
Code:
# cat /system/etc/gps.conf
NTP_SERVER=europe.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=supl.google.com
SUPL_PORT=7276
Breakdown of contents:
NTP server is used to get accurate time, without you can't get a correct GPS loc.
XTRA is the GPS Satellite position servers.
SUPL is the Location server uses for A-GPS. in this case Google's own.
This kind of puzzled me, why GPS need NTP to get fixed. The whole purpose of GPS is to be able to fixed based on the time data coming down from the satellite signals.
In fact I have tried to turned my N1 to flight mode (i.e. no signal at all) and the GPS still fixed its position just fine.
 
jjwa
Old
#4  
Senior Member
Thanks Meter 10
Posts: 220
Join Date: Jun 2010
Location: Enschede
On my 2.2 Galaxy S I got a black screen at first too. But after about 5 seconds I got a PowerUser popup asking for root permission. I checked the gps.conf before and after. It does exactly what it promised to do, so that's confirmed .

Now let's hope it helps the GPS.
 
maxmax0
Old
(Last edited by maxmax0; 11th November 2010 at 01:36 PM.)
#5  
Member
Thanks Meter 11
Posts: 70
Join Date: Oct 2010
Quote:
Originally Posted by tienhn View Post
The whole purpose of GPS is to be able to fixed based on the time data coming down from the satellite signals.
there is no "time data" that would be "coming down from the satellite signals". The signal you refer to is pseudorandom code and not time data.

Quote:
Originally Posted by tienhn View Post
In fact I have tried to turned my N1 to flight mode (i.e. no signal at all) and the GPS still fixed its position just fine.
of course gps will also work on its own (i.e. when you switch to flight mode), but it will take longer to get a fix. MUCH longer in fact, depending on the situation. thats the point of a-gps, providing supplement data that allows you to get a faster fix.
 
ozmanic
Old
#6  
ozmanic's Avatar
Member
Thanks Meter 4
Posts: 53
Join Date: Feb 2007
damn,i got really really sick now..
have ROOTED droid and cannot ACCESS to gps.conf.using root explorer.
cannot disable R/O for this file.
any suggestion whats goin wrong here?

2.3.1 gingerbread
HTC HD2
★HyperDroidGBX★
 
dexter93
Old
#7  
dexter93's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 1,952
Posts: 11,454
Join Date: Jul 2010

 
DONATE TO ME
Quote:
Originally Posted by ozmanic View Post
damn,i got really really sick now..
have ROOTED droid and cannot ACCESS to gps.conf.using root explorer.
cannot disable R/O for this file.
any suggestion whats goin wrong here?

2.3.1 gingerbread
Why don't you try via adb?
(in order to edit that via root explorer you have to be s-off, while via adb you don't)

Sent from my HTC Desire using XDA App
Initiator of the HTC Unbricking Project
Sensation | MyTouch 4G Slide | Amaze 4G | Vivid, Raider, Velocity | EVO 3D GSM | EVO 3D CDMA | Jetstream | EVO 4G LTE | HTC ONE
Support is NOT given via pm.
~*~
Juopunutbear S-OFF | LazyPanda S-OFF
finally here... http://unlimited.io
~*~
OTA Updates for everyone!
https://otaupdatecenter.pro
~*~
 
The Don

 
Jarod_
Old
#8  
Member
Thanks Meter 10
Posts: 45
Join Date: Jul 2010
Quote:
Originally Posted by ozmanic View Post
damn,i got really really sick now..
have ROOTED droid and cannot ACCESS to gps.conf.using root explorer.
cannot disable R/O for this file.
any suggestion whats goin wrong here?

2.3.1 gingerbread
Use "Terminal Emulator", then type :
$ su
# cd /system/etc
#*remount rw
# vi gps.conf

(you need to know how to use "vi")

As you can see, you need to do a "remount rw" to make it writable. You can do that with adb too.
 
Outbreak Monkey
Old
#9  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Jun 2011
Default Remount HTC Desire

Bit of an old thread,

But I've never had the remount work on my HTC Desire (rooted, running Oxygen 2.2.2/Amon RA 2.0.2 Recovery)..

What I do is reboot in to recovery, mount /system and then use ADB to shell in and edit the files.

If I do a remount rw, It appears to edit the file, but as soon as I reboot, any changes are gone..

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Give Your Android Wear Device a Lock Screen with Lockable

Without a doubt,Android Wear is one of the most frequently talked abouttopics of … more

Forums Added for the LG G Watch R and Samsung Gear S

A little over a week ago, LG “inadvertently” let the world know about the … more

Secrecy App Goes Open Source, New LG Android Wear Device! – XDA Developer TV

Secrecy encryption app goes open source! That and much … more

Pushbullet Updated with SMS Send Ability

Pushbullet is one of thoseapplications that every Android lover should have installed on his or … more